Hi,

I am trying to start an api-service using an instrumented jar in order to run 
automated test cases, when the service is trying to start with jacoco agent the 
next exception has been thrown: 

INFO  [] org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean: 
Creating Service {http://api.enterprise.com/soap}TokenService from class 
com.enterprise.api.resource.soap.TokenService
java.lang.IllegalStateException: Different class names 
com/enterprise/api/dto/TokenRequestDTO$JaxbAccessorM_getPassword_setPassword_java_lang_String
 and 
com/enterprise/api/dto/TokenRequestDTO$JaxbAccessorM_getSecret_setSecret_java_lang_String
 for id 3f788295c470c3f4.
java.nio.channels.OverlappingFileLockException
        at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
        at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
        at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1063)
        at java.nio.channels.FileChannel.lock(FileChannel.java:1053)
        at 
org.jacoco.agent.rt.internal_c13123e.output.FileOutput.openFile(FileOutput.java:69)
        at 
org.jacoco.agent.rt.internal_c13123e.output.FileOutput.writeExecutionData(FileOutput.java:53)
        at org.jacoco.agent.rt.internal_c13123e.Agent.shutdown(Agent.java:137)
        at org.jacoco.agent.rt.internal_c13123e.Agent$1.run(Agent.java:54)


Steps. Please, correct me if I am doing something wrong.
1. Instrument jar file

java -jar jacoco-0.8.1/lib/jacococli.jar instrument 
build/libs/service-1.0.0-SNAPSHOT-fat.jar --dest build/libs/instrumented

2.Run it with JaCoCo agent in the class path

java -Djacoco-agent.output=tcpserver -Duser.timezone="UTC"  
-XX:MaxPermSize=512M -Xmx4G  -cp 
/var/www/html/api/service/jacoco-0.8.1/lib/jacocoagent.jar:/var/www/html/api/service/build/libs/instrumented/service-1.0.0-SNAPSHOT-fat.jar
 com.enterprise.custom.metadata.ServiceRun server config-service.yml

3. When the server is trying to start the above exception mentioned is thrown.

Any idea what is whappening ? or Any hint ?

If you need any further information please let me know.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/c79f6fa1-3076-47a5-86a2-25abde4bfe93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to