Service Virtualization

  • 1.  CodeSV - Error running samples with Maven

    Posted Sep 16, 2018 05:22 PM

    Trying to run this GetAndPostExample.java (Github samples) with Maven, and encounter this error. 

     

    Caused by: javassist.NotFoundException: com.ca.codesv.agent.Agent
    at javassist.ClassPool.get(ClassPool.java:452) ~[javassist-3.21.0-GA.jar:?]
    at com.ca.codesv.agent.util.AgentJarUtils.getAgentJarPathFromTemp(AgentJarUtils.java:90) ~[codesv-dist-jar-1.2.0.jar:1.2.0]
    ... 37 more

    Attached the output of "mvn clean test" (mvn_test.log) for the details. 

     

    What could I be missing? I need to execute these tests as Maven projects, and not Gradle because we find Maven more prevalent than Gradle with our customers.

    Attachment(s)

    zip
    pom.xml.zip   714 B 1 version
    zip
    mvn_test.log.zip   3 KB 1 version


  • 2.  Re: CodeSV - Error running samples with Maven
    Best Answer

    Posted Sep 18, 2018 12:31 AM

    Was using Java 10 and that seems to have been the problem. Switching to Java 8 works.