Service Virtualization

  • 1.  Getting ClassNotFoundException while running the suite

    Posted Dec 29, 2015 07:35 AM

    Hi All,

    After placed custom jar file in hotDeploy folder I have created one test case which internally using classes of that jar file. While running through ITR utility

    I am able to execute test case but when executing that test case in suite getting below error.

    I restarted the registry and workstation too but not able to find the actual cause. Please help me to resolve this issue.

     

    Custom Step: DynExecNode Exception on com.custom.UserAuth of

    ============================================================================

    | Exception:

    ============================================================================

    | Message: Error building Call object com.custom.UserAuth

    ----------------------------------------------------------------------------

    | Trapped Exception: com.custom.UserAuth

    | Trapped Message: java.lang.ClassNotFoundException: com.custom.UserAuth

    ----------------------------------------------------------------------------

    STACK TRACE

    java.lang.ClassNotFoundException: com.custom.UserAuth

    at java.net.URLClassLoader$1.run(Unknown Source)

    at java.net.URLClassLoader$1.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Unknown Source)

    at com.itko.lisa.dynexec.Ctor.readCtor(Ctor.java:598)

    at com.itko.lisa.dynexec.ComplexObj.readSubAttributes(ComplexObj.java:588)

    at com.itko.lisa.dynexec.DynObject.readDynObject(DynObject.java:1026)

    at com.itko.lisa.dynexec.DynObject.readDynObject(DynObject.java:991)

    at com.itko.lisa.dynexec.DynObject.readDynObject(DynObject.java:984)

    at com.itko.lisa.dynexec.DynExecNode.getObjectStream(DynExecNode.java:173)

    at com.itko.lisa.dynexec.DynExecNode.execute(DynExecNode.java:207)

    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:973)

    at com.itko.lisa.test.TestCase.execute(TestCase.java:1230)

    at com.itko.lisa.test.TestCase.execute(TestCase.java:1145)

    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1130)

    at com.itko.lisa.utils.ExecSubProcessNode.doFullExec(ExecSubProcessNode.java:353)

    at com.itko.lisa.utils.ExecSubProcessNode.execute(ExecSubProcessNode.java:267)

    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:973)

    at com.itko.lisa.test.TestCase.execute(TestCase.java:1230)

    at com.itko.lisa.test.TestCase.execute(TestCase.java:1145)

    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1130)

    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1074)

    at com.itko.lisa.coordinator.Instance.run(Instance.java:204)

    ============================================================================

     

    Thanks,

    Amit



  • 2.  Re: Getting ClassNotFoundException while running the suite

    Broadcom Employee
    Posted Dec 29, 2015 07:50 AM

    Do you have the custom jar file in hot deploy folder of the Simulator & Coordinator instances?



  • 3.  Re: Getting ClassNotFoundException while running the suite

    Posted Dec 30, 2015 01:59 AM

     

    Thanks for your suggestion Prem. I don’t have access of DevTest Server so we wouldn't place custom jar file in hotDeploy folder of the Simulator and Coordinator instances. Is there any mechanism to handle this scenario?



  • 4.  Re: Getting ClassNotFoundException while running the suite
    Best Answer

    Posted Dec 30, 2015 03:19 AM

    Hi Amit,

     

    I believe there is no workaround for it. Your Test Case is running on other machine where it is looking for the custom jar. You can ask the admin team to drop the Jar to the server and restart it.

     

    Thanks,

    Monika Mehta



  • 5.  Re: Getting ClassNotFoundException while running the suite

    Posted Dec 30, 2015 06:24 AM

    Thanks Monika.