--
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/24302a95-cbc1-4b6e-bbac-884b2d9ba510%40googlegroups.com.
Marc,
Thanks for the response.
You are right – it occurs with the normal Run mode…
So this would be an Eclipse problem with the Junit runner, probably.
I love the EclEmma/JaCoCo code coverage tools. I use them all the time, and have for many years.
I’ll contact Eclipse now.
Thanks again,
JD
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/2DCA27FD-EB3C-44F3-889C-389E9EDBA8B3%40mountainminds.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/000401d52848%24cddf56a0%24699e03e0%24%40smithoptimalsolutions.com.
Marc,
A separate issue I have seen when I tried to upgrade to the latest version of JaCoCo 0.8.4.
I get ArrayIndexOutOfBoundsExceptions with 0.8.4 version, on command line builds.
I am running JaCoCo in combination with JMockit 1.46.
This does not occur with version 0.8.3.
From command line build:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.sos.saloons.service.rest.GlobalPropertiesTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.872 s - in com.sos.saloons.service.rest.GlobalPropertiesTest
[INFO] Running com.sos.saloons.service.rest.resources.AboutResourceTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.797 s <<< FAILURE! - in com.sos.saloons.service.rest.resources.AboutResourceTest
[ERROR] getAboutTest Time elapsed: 0.017 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 18729 out of bounds for length 159
[INFO] Running com.sos.saloons.service.rest.resources.ContactUsResourceTest
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.899 s <<< FAILURE! - in com.sos.saloons.service.rest.resources.ContactUsResourceTest
[ERROR] submitContactUsTest Time elapsed: 0.014 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 10767 out of bounds for length 6722
[ERROR] submitContactUsExceptionTest Time elapsed: 0.001 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 10767 out of bounds for length 6722
[ERROR] submitContactUsValidatorErrorsTest Time elapsed: 0 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException
[INFO] Running com.sos.saloons.service.rest.resources.CrashReportResourceTest
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.223 s <<< FAILURE! - in com.sos.saloons.service.rest.resources.CrashReportResourceTest
[ERROR] submitCrashReportTest Time elapsed: 0.019 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 41100 out of bounds for length 17578
[ERROR] submitCrashReportValidationErrorTest Time elapsed: 0 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 41100 out of bounds for length 17578
[ERROR] submitContactUsExceptionTest Time elapsed: 0.001 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 41100 out of bounds for length 17578
If you would like me to post an issue about the JaCoCo 0.8.4 ArrayIndexOutOfBoundsException, let me know.
Thanks again,
JD
From: jac...@googlegroups.com <jac...@googlegroups.com> On Behalf Of Marc Hoffmann
Sent: Friday, June 21, 2019 9:21 AM
To: jac...@googlegroups.com
Subject: Re: [java code coverage] Eclipse 2019-03 EclEmma plugin is causing UnsupportedOperationException
Does this error also occur when you run your tests in Eclipse in normal “run” mode (no coverage)?
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/2DCA27FD-EB3C-44F3-889C-389E9EDBA8B3%40mountainminds.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/001101d5284c%2436f85e90%24a4e91bb0%24%40smithoptimalsolutions.com.
Does this error also occur when you run your tests in Eclipse in normal “run” mode (no coverage)?In this case JaCoCo or EclEmma is not involved in your runtime classpath at all. And even when you run your application with with JaCoCo the JaCoCo agent includes its own repackaged version of ASM which will not interfere with other ASM versions on the class path.Regards,-marc
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
Marc,
A separate issue I have seen when I tried to upgrade to the latest version of JaCoCo 0.8.4.
I get ArrayIndexOutOfBoundsExceptions with 0.8.4 version, on command line builds.
I am running JaCoCo in combination with JMockit 1.46.
This does not occur with version 0.8.3.
Not sure what role Eclipse IDE plays here.Please compare the classpath used when run on command vs when launched from Eclipse (select properties on the process object in the Debug view and you will see the full command line created by Eclipse). I assume some subtil differences like different JAR versions or ordering.
java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the class NestHost or NestMembers attribute
at java.instrument/sun.instrument.InstrumentationImpl.redefineClasses0(Native Method)
at java.instrument/sun.instrument.InstrumentationImpl.redefineClasses(InstrumentationImpl.java:193)
at mockit.internal.startup.Startup.redefineMethods(Startup.java:159)
Marc,
I ran mvn clean install -X, but there isn’t any additional stack trace info available.
But a little more information from -X, which is probably useless for analysis:
[DEBUG] Determined Maven Process ID 66056
[DEBUG] boot classpath: C:\Users\John\.m2\repository\org\apache\maven\surefire\surefire-booter\3.0.0-M3\surefire-booter-3.0.0-M3.jar C:\Users\John\.m2\repository\org\apache\maven\surefire\surefire-api\3.0.0-M3\surefire-api-3.0.0-M3.jar C:\Users\John\.m2\repository\org\apache\maven\surefire\surefire-logger-api\3.0.0-M3\surefire-logger-api-3.0.0-M3.jar C:\SOSDevelopmentGit\restwebservice\target\test-classes C:\SOSDevelopmentGit\restwebservice\target\classes C:\Users\John\.m2\repository\com\sos\saloons\xmlschema\1.20.0-SNAPSHOT\xmlschema-1.20.0-SNAPSHOT.jar C:\Users\John\.m2\repository\com\sos\saloons\db-hibernate\1.23.0-SNAPSHOT\db-hibernate-1.23.0-SNAPSHOT.jar C:\Users\John\.m2\repository\org\hibernate\hibernate-core\5.1.16.Final\hibernate-core-5.1.16.Final.jar C:\Users\John\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar C:\Users\John\.m2\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar C:\Users\John\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar C:\Users\John\.m2\repository\org\apache\geronimo\specs\geronimo-jta_1.1_spec\1.1.1\geronimo-jta_1.1_spec-1.1.1.jar C:\Users\John\.m2\repository\org\jboss\jandex\2.0.3.Final\jandex-2.0.3.Final.jar C:\Users\John\.m2\repository\com\fasterxml\classmate\1.3.0\classmate-1.3.0.jar C:\Users\John\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar C:\Users\John\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar C:\Users\John\.m2\repository\org\hibernate\hibernate-c3p0\5.1.16.Final\hibernate-c3p0-5.1.16.Final.jar C:\Users\John\.m2\repository\com\mchange\c3p0\0.9.2.1\c3p0-0.9.2.1.jar C:\Users\John\.m2\repository\com\mchange\mchange-commons-java\0.2.3.4\mchange-commons-java-0.2.3.4.jar C:\Users\John\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.0.1.Final\hibernate-commons-annotations-5.0.1.Final.jar C:\Users\John\.m2\repository\mysql\mysql-connector-java\5.1.38\mysql-connector-java-5.1.38.jar C:\Users\John\.m2\repository\com\sos\saloons\saloons-common\1.24.0-SNAPSHOT\saloons-common-1.24.0-SNAPSHOT.jar C:\Users\John\.m2\repository\org\openjfx\javafx-graphics\12.0.1\javafx-graphics-12.0.1.jar C:\Users\John\.m2\repository\org\openjfx\javafx-graphics\12.0.1\javafx-graphics-12.0.1-win.jar C:\Users\John\.m2\repository\org\openjfx\javafx-swing\12.0.1\javafx-swing-12.0.1.jar C:\Users\John\.m2\repository\org\openjfx\javafx-swing\12.0.1\javafx-swing-12.0.1-win.jar C:\Users\John\.m2\repository\com\drewnoakes\metadata-extractor\2.9.1\metadata-extractor-2.9.1.jar C:\Users\John\.m2\repository\com\adobe\xmp\xmpcore\5.1.2\xmpcore-5.1.2.jar C:\Users\John\.m2\repository\com\sun\mail\javax.mail\1.5.5\javax.mail-1.5.5.jar C:\Users\John\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar C:\Users\John\.m2\repository\com\sun\mail\smtp\1.5.5\smtp-1.5.5.jar C:\Users\John\.m2\repository\org\openjfx\javafx-base\12.0.1\javafx-base-12.0.1.jar C:\Users\John\.m2\repository\org\openjfx\javafx-base\12.0.1\javafx-base-12.0.1-win.jar C:\Users\John\.m2\repository\org\hibernate\hibernate-hikaricp\5.1.16.Final\hibernate-hikaricp-5.1.16.Final.jar C:\Users\John\.m2\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar C:\Users\John\.m2\repository\com\zaxxer\HikariCP-java6\2.3.9\HikariCP-java6-2.3.9.jar C:\Users\John\.m2\repository\org\slf4j\slf4j-api\1.8.0-alpha2\slf4j-api-1.8.0-alpha2.jar C:\Users\John\.m2\repository\org\apache\logging\log4j\log4j-slf4j18-impl\2.11.1\log4j-slf4j18-impl-2.11.1.jar C:\Users\John\.m2\repository\org\apache\logging\log4j\log4j-api\2.11.1\log4j-api-2.11.1.jar C:\Users\John\.m2\repository\org\apache\logging\log4j\log4j-core\2.11.1\log4j-core-2.11.1.jar C:\Users\John\.m2\repository\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar C:\Users\John\.m2\repository\commons-io\commons-io\2.5\commons-io-2.5.jar C:\Users\John\.m2\repository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar C:\Users\John\.m2\repository\org\springframework\spring-context\4.3.1.RELEASE\spring-context-4.3.1.RELEASE.jar C:\Users\John\.m2\repository\org\springframework\spring-aop\4.3.1.RELEASE\spring-aop-4.3.1.RELEASE.jar C:\Users\John\.m2\repository\org\springframework\spring-beans\4.3.1.RELEASE\spring-beans-4.3.1.RELEASE.jar C:\Users\John\.m2\repository\org\springframework\spring-core\4.3.1.RELEASE\spring-core-4.3.1.RELEASE.jar C:\Users\John\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar C:\Users\John\.m2\repository\org\springframework\spring-expression\4.3.1.RELEASE\spring-expression-4.3.1.RELEASE.jar C:\Users\John\.m2\repository\commons-beanutils\commons-beanutils-core\1.8.3\commons-beanutils-core-1.8.3.jar C:\Users\John\.m2\repository\javax\ws\rs\javax.ws.rs-api\2.1\javax.ws.rs-api-2.1.jar C:\Users\John\.m2\repository\org\glassfish\jersey\core\jersey-server\2.27\jersey-server-2.27.jar C:\Users\John\.m2\repository\org\glassfish\jersey\core\jersey-client\2.27\jersey-client-2.27.jar C:\Users\John\.m2\repository\org\glassfish\hk2\external\javax.inject\2.5.0-b42\javax.inject-2.5.0-b42.jar C:\Users\John\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar C:\Users\John\.m2\repository\org\glassfish\jersey\core\jersey-common\2.27\jersey-common-2.27.jar C:\Users\John\.m2\repository\org\glassfish\hk2\osgi-resource-locator\1.0.1\osgi-resource-locator-1.0.1.jar C:\Users\John\.m2\repository\org\glassfish\jersey\inject\jersey-hk2\2.27\jersey-hk2-2.27.jar C:\Users\John\.m2\repository\org\glassfish\hk2\hk2-locator\2.5.0-b42\hk2-locator-2.5.0-b42.jar C:\Users\John\.m2\repository\org\glassfish\hk2\external\aopalliance-repackaged\2.5.0-b42\aopalliance-repackaged-2.5.0-b42.jar C:\Users\John\.m2\repository\org\glassfish\hk2\hk2-api\2.5.0-b42\hk2-api-2.5.0-b42.jar C:\Users\John\.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar C:\Users\John\.m2\repository\org\glassfish\hk2\hk2-utils\2.5.0-b42\hk2-utils-2.5.0-b42.jar C:\Users\John\.m2\repository\org\glassfish\jersey\containers\jersey-container-servlet\2.27\jersey-container-servlet-2.27.jar C:\Users\John\.m2\repository\org\glassfish\jersey\containers\jersey-container-servlet-core\2.27\jersey-container-servlet-core-2.27.jar C:\Users\John\.m2\repository\org\glassfish\jersey\containers\jersey-container-grizzly2-http\2.27\jersey-container-grizzly2-http-2.27.jar C:\Users\John\.m2\repository\org\glassfish\grizzly\grizzly-http-server\2.4.0\grizzly-http-server-2.4.0.jar C:\Users\John\.m2\repository\org\glassfish\grizzly\grizzly-http\2.4.0\grizzly-http-2.4.0.jar C:\Users\John\.m2\repository\org\glassfish\grizzly\grizzly-framework\2.4.0\grizzly-framework-2.4.0.jar C:\Users\John\.m2\repository\org\glassfish\jersey\containers\jersey-container-grizzly2-servlet\2.27\jersey-container-grizzly2-servlet-2.27.jar C:\Users\John\.m2\repository\javax\servlet\javax.servlet-api\4.0.0\javax.servlet-api-4.0.0.jar C:\Users\John\.m2\repository\org\glassfish\grizzly\grizzly-http-servlet\2.4.0\grizzly-http-servlet-2.4.0.jar C:\Users\John\.m2\repository\org\glassfish\jersey\media\jersey-media-jaxb\2.27\jersey-media-jaxb-2.27.jar C:\Users\John\.m2\repository\org\glassfish\jersey\media\jersey-media-moxy\2.27\jersey-media-moxy-2.27.jar C:\Users\John\.m2\repository\org\glassfish\jersey\ext\jersey-entity-filtering\2.27\jersey-entity-filtering-2.27.jar C:\Users\John\.m2\repository\org\eclipse\persistence\org.eclipse.persistence.moxy\2.7.2\org.eclipse.persistence.moxy-2.7.2.jar C:\Users\John\.m2\repository\org\eclipse\persistence\org.eclipse.persistence.core\2.7.2\org.eclipse.persistence.core-2.7.2.jar C:\Users\John\.m2\repository\org\eclipse\persistence\org.eclipse.persistence.asm\2.7.2\org.eclipse.persistence.asm-2.7.2.jar C:\Users\John\.m2\repository\org\glassfish\javax.json\1.0.4\javax.json-1.0.4.jar C:\Users\John\.m2\repository\org\glassfish\jersey\media\jersey-media-json-jackson\2.27\jersey-media-json-jackson-2.27.jar C:\Users\John\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.8.10\jackson-databind-2.8.10.jar C:\Users\John\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.8.10\jackson-core-2.8.10.jar C:\Users\John\.m2\repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.10\jackson-module-jaxb-annotations-2.8.10.jar C:\Users\John\.m2\repository\org\glassfish\jersey\media\jersey-media-multipart\2.27\jersey-media-multipart-2.27.jar C:\Users\John\.m2\repository\org\jvnet\mimepull\mimepull\1.9.6\mimepull-1.9.6.jar C:\Users\John\.m2\repository\javax\xml\bind\jaxb-api\2.3.0\jaxb-api-2.3.0.jar C:\Users\John\.m2\repository\com\sun\xml\bind\jaxb-core\2.3.0\jaxb-core-2.3.0.jar C:\Users\John\.m2\repository\com\sun\xml\bind\jaxb-impl\2.3.0\jaxb-impl-2.3.0.jar C:\Users\John\.m2\repository\com\restfb\restfb\2.10.0\restfb-2.10.0.jar C:\Users\John\.m2\repository\com\google\api-client\google-api-client\1.22.0\google-api-client-1.22.0.jar C:\Users\John\.m2\repository\com\google\oauth-client\google-oauth-client\1.22.0\google-oauth-client-1.22.0.jar C:\Users\John\.m2\repository\com\google\http-client\google-http-client\1.22.0\google-http-client-1.22.0.jar C:\Users\John\.m2\repository\org\apache\httpcomponents\httpclient\4.0.1\httpclient-4.0.1.jar C:\Users\John\.m2\repository\org\apache\httpcomponents\httpcore\4.0.1\httpcore-4.0.1.jar C:\Users\John\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar C:\Users\John\.m2\repository\com\google\http-client\google-http-client-jackson2\1.22.0\google-http-client-jackson2-1.22.0.jar C:\Users\John\.m2\repository\com\google\guava\guava-jdk5\17.0\guava-jdk5-17.0.jar C:\Users\John\.m2\repository\org\jmockit\jmockit\1.46\jmockit-1.46.jar C:\Users\John\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar C:\Users\John\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.2.0\junit-jupiter-engine-5.2.0.jar C:\Users\John\.m2\repository\org\apiguardian\apiguardian-api\1.0.0\apiguardian-api-1.0.0.jar C:\Users\John\.m2\repository\org\junit\platform\junit-platform-engine\1.2.0\junit-platform-engine-1.2.0.jar C:\Users\John\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.2.0\junit-jupiter-api-5.2.0.jar C:\Users\John\.m2\repository\org\opentest4j\opentest4j\1.1.0\opentest4j-1.1.0.jar C:\Users\John\.m2\repository\org\junit\platform\junit-platform-commons\1.2.0\junit-platform-commons-1.2.0.jar C:\Users\John\.m2\repository\org\apache\maven\surefire\surefire-logger-api\2.21.0\surefire-logger-api-2.21.0.jar C:\Users\John\.m2\repository\javax\annotation\javax.annotation-api\1.2\javax.annotation-api-1.2.jar C:\Users\John\.m2\repository\org\apache\maven\surefire\surefire-api\2.21.0\surefire-api-2.21.0.jar C:\Users\John\.m2\repository\org\apache\maven\surefire\common-java5\2.21.0\common-java5-2.21.0.jar C:\Users\John\.m2\repository\org\junit\platform\junit-platform-surefire-provider\1.2.0\junit-platform-surefire-provider-1.2.0.jar C:\Users\John\.m2\repository\org\junit\platform\junit-platform-launcher\1.3.1\junit-platform-launcher-1.3.1.jar C:\Users\John\.m2\repository\org\ow2\asm\asm\7.1\asm-7.1.jar
[DEBUG] boot(compact) classpath: surefire-booter-3.0.0-M3.jar surefire-api-3.0.0-M3.jar surefire-logger-api-3.0.0-M3.jar test-classes classes xmlschema-1.20.0-SNAPSHOT.jar db-hibernate-1.23.0-SNAPSHOT.jar hibernate-core-5.1.16.Final.jar hibernate-jpa-2.1-api-1.0.0.Final.jar javassist-3.20.0-GA.jar antlr-2.7.7.jar geronimo-jta_1.1_spec-1.1.1.jar jandex-2.0.3.Final.jar classmate-1.3.0.jar dom4j-1.6.1.jar xml-apis-1.0.b2.jar hibernate-c3p0-5.1.16.Final.jar c3p0-0.9.2.1.jar mchange-commons-java-0.2.3.4.jar hibernate-commons-annotations-5.0.1.Final.jar mysql-connector-java-5.1.38.jar saloons-common-1.24.0-SNAPSHOT.jar javafx-graphics-12.0.1.jar javafx-graphics-12.0.1-win.jar javafx-swing-12.0.1.jar javafx-swing-12.0.1-win.jar metadata-extractor-2.9.1.jar xmpcore-5.1.2.jar javax.mail-1.5.5.jar activation-1.1.jar smtp-1.5.5.jar javafx-base-12.0.1.jar javafx-base-12.0.1-win.jar hibernate-hikaricp-5.1.16.Final.jar jboss-logging-3.3.0.Final.jar HikariCP-java6-2.3.9.jar slf4j-api-1.8.0-alpha2.jar log4j-slf4j18-impl-2.11.1.jar log4j-api-2.11.1.jar log4j-core-2.11.1.jar commons-lang3-3.5.jar commons-io-2.5.jar commons-collections4-4.1.jar spring-context-4.3.1.RELEASE.jar spring-aop-4.3.1.RELEASE.jar spring-beans-4.3.1.RELEASE.jar spring-core-4.3.1.RELEASE.jar commons-logging-1.2.jar spring-expression-4.3.1.RELEASE.jar commons-beanutils-core-1.8.3.jar javax.ws.rs-api-2.1.jar jersey-server-2.27.jar jersey-client-2.27.jar javax.inject-2.5.0-b42.jar validation-api-1.1.0.Final.jar jersey-common-2.27.jar osgi-resource-locator-1.0.1.jar jersey-hk2-2.27.jar hk2-locator-2.5.0-b42.jar aopalliance-repackaged-2.5.0-b42.jar hk2-api-2.5.0-b42.jar javax.inject-1.jar hk2-utils-2.5.0-b42.jar jersey-container-servlet-2.27.jar jersey-container-servlet-core-2.27.jar jersey-container-grizzly2-http-2.27.jar grizzly-http-server-2.4.0.jar grizzly-http-2.4.0.jar grizzly-framework-2.4.0.jar jersey-container-grizzly2-servlet-2.27.jar javax.servlet-api-4.0.0.jar grizzly-http-servlet-2.4.0.jar jersey-media-jaxb-2.27.jar jersey-media-moxy-2.27.jar jersey-entity-filtering-2.27.jar org.eclipse.persistence.moxy-2.7.2.jar org.eclipse.persistence.core-2.7.2.jar org.eclipse.persistence.asm-2.7.2.jar javax.json-1.0.4.jar jersey-media-json-jackson-2.27.jar jackson-databind-2.8.10.jar jackson-core-2.8.10.jar jackson-module-jaxb-annotations-2.8.10.jar jersey-media-multipart-2.27.jar mimepull-1.9.6.jar jaxb-api-2.3.0.jar jaxb-core-2.3.0.jar jaxb-impl-2.3.0.jar restfb-2.10.0.jar google-api-client-1.22.0.jar google-oauth-client-1.22.0.jar google-http-client-1.22.0.jar httpclient-4.0.1.jar httpcore-4.0.1.jar commons-codec-1.3.jar google-http-client-jackson2-1.22.0.jar guava-jdk5-17.0.jar jmockit-1.46.jar jsr305-3.0.2.jar junit-jupiter-engine-5.2.0.jar apiguardian-api-1.0.0.jar junit-platform-engine-1.2.0.jar junit-jupiter-api-5.2.0.jar opentest4j-1.1.0.jar junit-platform-commons-1.2.0.jar surefire-logger-api-2.21.0.jar javax.annotation-api-1.2.jar surefire-api-2.21.0.jar common-java5-2.21.0.jar junit-platform-surefire-provider-1.2.0.jar junit-platform-launcher-1.3.1.jar asm-7.1.jar
[DEBUG] Forking command line: cmd.exe /X /C "C:\SmithOptimalSolutions\tools\java\jdk-11.0.1\bin\java -javaagent:C:\Users\John\.m2\repository/org/jmockit/jmockit/1.46/jmockit-1.46.jar -javaagent:C:\Users\John\.m2\repository/org/jacoco/org.jacoco.agent/0.8.4/org.jacoco.agent-0.8.4-runtime.jar=destfile=target/jacoco.exec -jar C:\Users\John\AppData\Local\Temp\surefire601947270429409764\surefirebooter17843377533820913165.jar C:\Users\John\AppData\Local\Temp\surefire601947270429409764 2019-06-23T16-06-20_271-jvmRun1 surefire11281765326892054096tmp surefire_117997587047849790947tmp"
[INFO] Running com.sos.saloons.service.rest.resources.AboutResourceTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.719 s <<< FAILURE! - in com.sos.saloons.service.rest.resources.AboutResourceTest
[ERROR] getAboutTest Time elapsed: 0.016 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: Index 18729 out of bounds for length 159
JD
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/163A7AC0-9E44-4E76-B739-D98AD9B51CC9%40mountainminds.com.
Evgeny,
Thanks for the response.
JMockit 1.47 isn’t released yet, according to the JMockit website. That is why I upgraded to 1.46 rather than 1.47. And 1.47 isn’t available on Maven Central yet.
I looked at the classpath of the project in Eclipse, which is generated from the Maven pom.xml, and it has JMockit 1.46. In the pom.xml, for the maven-surefire-plugin, I have explicitly specified the ASM 7.1 as a dependency. I even explicitly added ASM 7.1 to be a test dependency in the pom.xml (outside of maven-surefire-plugin), and that didn’t fix it either.
Since this builds correctly on the command line, and does not in Eclipse 2019-03, and the dependencies are correct in Eclipse for the project, this has to be an Eclipse problem. There is something internal to Eclipse that is pulling in an older version of ASM that doesn’t have the NestHost/NestMembers problem fix, as you pointed out in the stack trace.
Thanks,
JD
From: jac...@googlegroups.com <jac...@googlegroups.com> On Behalf Of Evgeny Mandrikov
Sent: Friday, June 21, 2019 10:28 AM
To: JaCoCo and EclEmma Users <jac...@googlegroups.com>
Subject: Re: [java code coverage] Eclipse 2019-03 EclEmma plugin is causing UnsupportedOperationException
In addition to what was said by Marc:
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/24302a95-cbc1-4b6e-bbac-884b2d9ba510%40googlegroups.com.
--
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/8c3098dd-c07e-4bf0-a108-2a7c5f398d5c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/005701d52a10%24d003a200%24700ae600%24%40smithoptimalsolutions.com.
Marc,
No additional info in AboutResoruceTest.txt:
-------------------------------------------------------------------------------
Test set: com.sos.saloons.service.rest.resources.AboutResourceTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.75 s <<< FAILURE! - in com.sos.saloons.service.rest.resources.AboutResourceTest
getAboutTest Time elapsed: 0.032 s <<< ERROR!
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/E4785494-DE5C-407F-BE7B-6B6732ACA7D3%40mountainminds.com.
Marc,
No additional info in AboutResoruceTest.txt
Evgeny,
Thanks for the response.
JMockit 1.47 isn’t released yet, according to the JMockit website. That is why I upgraded to 1.46 rather than 1.47. And 1.47 isn’t available on Maven Central yet.
I looked at the classpath of the project in Eclipse, which is generated from the Maven pom.xml, and it has JMockit 1.46.
In the pom.xml, for the maven-surefire-plugin, I have explicitly specified the ASM 7.1 as a dependency. I even explicitly added ASM 7.1 to be a test dependency in the pom.xml (outside of maven-surefire-plugin), and that didn’t fix it either.
Since this builds correctly on the command line, and does not in Eclipse 2019-03, and the dependencies are correct in Eclipse for the project, this has to be an Eclipse problem. There is something internal to Eclipse that is pulling in an older version of ASM that doesn’t have the NestHost/NestMembers problem fix, as you pointed out in the stack trace.