I am using Jacoco agent to generate code coverage report on my Websphere server following this blog (https://dzone.com/articles/verifying-end-to-end-test-code-coverage-using-jaco). To start the jacoco agent, I added the scripts to my jvm.options and the server started successfully:
-Djavaagent=<path to jaccoc>/jacocoagent.jar=port=6300,destfile=jacoco-remote.exec,output=tcpserver,address=*
-DXshareclasses=none
After that, I tried to do automation RestAPI tests and the tests have passed. The tests are built with maven and successfully configured for Jacoco. But there are no exec files generated on the server. I cannot pull jacoco data from my server neither.
And here is the error:
[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.1:dump (pull-test-data) on project auto.root: Unable to dump coverage data: Connection refused (Connection refused) -> [Help 1]
I doubt that the jacoco agent is not running on my server. But I do not find more solutions to this problem.
Thanks for the help 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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/9aac6d39-afc6-44c0-930c-226697bdf0e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,-Dkey=value is how you add system properties. Take a look at our documentation how to specify a JVM agent:Regards,-marc
On 9. Aug 2018, at 20:57, Immonnan <xiaohangao2017@u.northwestern.edu> wrote:
Hi there,
I am using Jacoco agent to generate code coverage report on my Websphere server following this blog (https://dzone.com/articles/verifying-end-to-end-test-code-coverage-using-jaco). To start the jacoco agent, I added the scripts to my jvm.options and the server started successfully:
-Djavaagent=<path to jaccoc>/jacocoagent.jar=port=6300,destfile=jacoco-remote.exec,output=tcpserver,address=*
-DXshareclasses=none
After that, I tried to do automation RestAPI tests and the tests have passed. The tests are built with maven and successfully configured for Jacoco. But there are no exec files generated on the server. I cannot pull jacoco data from my server neither.
And here is the error:
[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.1:dump (pull-test-data) on project auto.root: Unable to dump coverage data: Connection refused (Connection refused) -> [Help 1]
I doubt that the jacoco agent is not running on my server. But I do not find more solutions to this problem.
Thanks for the help 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 jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/9aac6d39-afc6-44c0-930c-226697bdf0e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/_n7hMYaRasE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/B864DF0A-5F7D-4B00-806F-BF18A4899FEA%40mountainminds.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RedAqc9%3DamtAW8dtnd0umKfWZ9jnyAdMN--85DYGc8rgA%40mail.gmail.com.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Unrecognized option: -javaagent=<path to jacoco>/jacocoagent.jar=port=6300,destfile=jacoco-remote.exec,output=tcpserver,address=*
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I’s just one character:WRONG: -DjavagentCORRECT: -javaagent
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RedAqc9%3DamtAW8dtnd0umKfWZ9jnyAdMN--85DYGc8rgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/_n7hMYaRasE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/35661D2E-D8C4-4F73-ADC8-514C06CAAB70%40mountainminds.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RcHOU%2BGdFcuuv1uDnN7ujLf3zTfQ9j9uwOQL%3DbKMOWzmQ%40mail.gmail.com.
Did you replace "<path to jacoco>” with the actual location on your system???
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RcHOU%2BGdFcuuv1uDnN7ujLf3zTfQ9j9uwOQL%3DbKMOWzmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/_n7hMYaRasE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/4964BB54-B71F-4107-B50E-3957E5FE9D19%40mountainminds.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RcNTx0YXksJ3%3Dwn9gBSZvj9udSYQmGhngBRNTx2%3DK%2Bgsw%40mail.gmail.com.
Because then it is plain system property definition which will not have any effect at all.
On 9. Aug 2018, at 22:38, Xiaohan Gao <xiaohangao2017@u.northwestern.edu> wrote:
The problem is that only after I adding 'D' before 'javaagent', there will be no more error message
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RcNTx0YXksJ3%3Dwn9gBSZvj9udSYQmGhngBRNTx2%3DK%2Bgsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/_n7hMYaRasE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/6E570F5E-5F0C-4567-900F-0C8761E9391A%40mountainminds.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RcA%2BC7NPm-Ki4WyvzKT0GHex96ceOTQm%3DVG9jXxknkjDg%40mail.gmail.com.
Is there any other thing I can do?
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Unrecognized option: -javaagent=jacoco-0.8.1/jacocoagent.jar=port=6300,destfile=jacoco-remote.exec,output=tcpserver,address=*
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/d41cc8f5-3347-4a64-aceb-01a2f5fb3c47%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RcBggGpf4-GJbgQVrkh0_5%2BgTEf%3D_xvNy%2B4nC6590g8bA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/13aa8522-e9be-4464-883e-7b658bb48b2a%40googlegroups.com.
On 9. Aug 2018, at 23:03, Xiaohan Gao <xiaohan...@u.northwestern.edu> wrote:
Oh gosh, I finally see it.Sorry about that stupid mistake and many thanks for your help.
On Thu, Aug 9, 2018 at 2:00 PM, Evgeny Mandrikov <mand...@gmail.com> wrote:
Let me repeat again: after "-javaagent" should be colon!
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4Re5EtVyAZ5g%2BXUP5xxvsLdSNLAwzyb1a_%3D8OFWbRODuJA%40mail.gmail.com.
Hi,
glad to hear and thanks for the update! Maybe you can share your findings here so others can learn from it?
Cheers,
-marc
On 2018-08-16 00:04, Xiaohan Gao wrote:
Hi,I have solved all these stupid problems. Thanks to all of your help. Jacoco is great
On Tue, Aug 14, 2018 at 3:41 PM, Xiaohan Gao <xiaohan...@u.northwestern.edu> wrote:
Hi there,
I found that my jacoco agent on the server side is now working correctly and produced a jacoco.exec file. No need to worry about my previous two mails. This file seems to have correct coverage rate as I have opened it in eclipse - coverage view.The only problem is that I am not sure how to pull down the class files from my remote server, to make the classes in "report" phase match the classes used when generating the exec file.
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CADhY4RfG8gEJ8uKu5NsFvO6hOMgdkxyFN2iy_7vJeOt%3Dw3wBbw%40mail.gmail.com.