Hi, your observation is correct. Since 0.8.5 the startup fails when the JaCoCo runtime cannot be initialised as configured:
https://github.com/jacoco/jacoco/pull/910 <https://github.com/jacoco/jacoco/pull/910> Before that the exception was only logged to the console but no coverage data was available. Because this causes a lot of confusion for our users (why would we allow running a disfunctional coverage agent?) we implemented "fail fast". Please consult the Jetty project how to configure only the JVM which you want to collect code coverage from. Regards, -marc > On 7. Dec 2021, at 09:16, winter <qiaomei....@gmail.com> wrote: > > jetty service start with two java processes, jetty container and application > service > /usr/local/java8/bin/java -jar $JETTY_HOME/start.jar > -Dapp.workdir=$APP_WORK_HOME > > then jacoco throws java.net.BindException: Address already in use, cause both > processes create agent use the same port. I found in lower version, Agent > class won't throw any Exception, so it can works with lower version such as > 0.7.x , while , in 0.8.x, the method throws Exception, so my jetty service > cannot start normally, can I remove the exception? > <92427450-DD61-40B2-AAE4-C5A3ECBDF87C.png> > > -- > 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+unsubscr...@googlegroups.com > <mailto:jacoco+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/c205eb4c-349f-49d4-843d-af530b11cca8n%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/c205eb4c-349f-49d4-843d-af530b11cca8n%40googlegroups.com?utm_medium=email&utm_source=footer>. > <92427450-DD61-40B2-AAE4-C5A3ECBDF87C.png> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/66029CC5-B875-4B3A-9090-88814B2605CF%40mountainminds.com.