Maximo Open Forum

 View Only
  • 1.  Mas9 cannot find UnitTestService file

    Posted 8 days ago

    hello everyone:
    When starting MAS9, the backend reports' java. lang. ClassNotFoundException: psdi. nittest. UnitTestService ', but the file' UnitTestService 'cannot be found


    #Administration

    ------------------------------
    Ethan Williams
    secrecy
    ------------------------------


  • 2.  RE: Mas9 cannot find UnitTestService file

    Posted 8 days ago

    Hello,

    If this is the stack trace you see on start up 

    psdi.util.MXSystemException: BMXAA3757E - The service ServiceStorage: UNITTEST could not be configured. Ensure that the service class that is specified in the MAXSERVICE table exists. See the log files in the home director for more details on the error. Restart the system after the error is
     resolved.
            psdi.unittest.UnitTestService
            at psdi.server.ServiceStorage.configure(ServiceStorage.java:221) ~[businessobjects.jar:?]
            at psdi.server.ServiceCoordinator.configure(ServiceCoordinator.java:102) [businessobjects.jar:?]
            at psdi.server.MXServer.configure(MXServer.java:2720) [businessobjects.jar:?]
            at psdi.server.MXServer.start(MXServer.java:3893) [businessobjects.jar:?]
            at psdi.servlet.MAXIMOStartupServlet.init(MAXIMOStartupServlet.java:116) [classes/:?]
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:307) [com.ibm.ws.webcontainer_1.1.98.jar:?]
            at [internal classes]
            at com.ibm.ws.webcontainer.osgi.WebContainer.access$100(WebContainer.java:113) [com.ibm.ws.webcontainer_1.1.98.jar:?]
            at com.ibm.ws.webcontainer.osgi.WebContainer$3.run(WebContainer.java:996) [com.ibm.ws.webcontainer_1.1.98.jar:?]
            at [internal classes]
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
            at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
            at java.lang.Thread.run(Thread.java:853) [?:?]
    Caused by: java.lang.ClassNotFoundException: psdi.unittest.UnitTestService
            at java.lang.Class.forNameImpl(Native Method) ~[?:?]
            at java.lang.Class.forName(Class.java:358) ~[?:?]
            at psdi.mbo.ServiceInfo.getServiceClass(ServiceInfo.java:98) ~[businessobjects.jar:?]
            at psdi.server.ServiceStorage.configure(ServiceStorage.java:217) ~[businessobjects.jar:?]
            ... 21 more
    

    I see it every time I start up a Maximo Manage environment. It doesn't cause any issues that I know of or have come across yet in any of my environments, however there is an IBM post here about it where it was causing issues.

    On that post they simply disabled the service which obviously isn't doing anything anyways as the classes for it don't exist.

    I have disabled it in one of my environments and the stack trace is no longer there on start up.

    As to why the service is there in first place, I think it used to exist in 76 as there as Java Docs for it here and has been partially removed from MAS but not fully - likely just a bug where that service will eventually get removed in a future release.

    Cheers.



    ------------------------------
    Chris Brown
    Naviam
    ------------------------------



  • 3.  RE: Mas9 cannot find UnitTestService file

    Posted 5 days ago

    Thank you for your reply. He has been very helpful to me



    ------------------------------
    Ethan Williams
    secrecy
    ------------------------------



  • 4.  RE: Mas9 cannot find UnitTestService file

    Posted 4 days ago

    Hi @Ethan Williams,

    I reached out to IBM Development about this and the short answer is:

    You need to raise a support case/PMR to get this fixed.

    Some Maximo tests still use this and it is an important element.

    If you raise it then it should get fixed. 



    ------------------------------
    mark robbins
    Cohesive
    IBM Champion 2017-2024 Inclusive
    See my blog on Maximo support related topics here:
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------



  • 5.  RE: Mas9 cannot find UnitTestService file

    Posted 4 days ago

    Mark,

    That's really good to know thank you for the information. 

    Do you know what in Maximo still utilizes this as when I searched for references I couldn't find anything referencing it and made my assumptions from there?

    Thanks.



    ------------------------------
    Chris Brown
    Naviam
    ------------------------------



  • 6.  RE: Mas9 cannot find UnitTestService file

    Posted 4 days ago

    I don't believe that it is used internally by Maximo. It is used by some automated test cases.to test Maximo's functionality.



    ------------------------------
    mark robbins
    Cohesive
    IBM Champion 2017-2024 Inclusive
    See my blog on Maximo support related topics here:
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------