-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Labels
Milestone
Description
Steps to reproduce
- JaCoCo version: since 0.8.9
- Operating system: Windows (but also Linux)
- Tool integration: jacoco agent in wildfly
- Steps:
- Download latest wildfly (32.0.1.Final)
- copy jacocoagent.jar (0.8.9 or higher) into downloaded_wildfly/bin/
- modify downloaded_wildfly/bin/standalone.conf.bat
set "JAVA_HOME=C:\Program Files\Java\jdk-21.0.3"
...
set "MODULE_OPTS=-javaagent:jacocoagent.jar=destfile=C:\_your_volume_\_your-application-wildfly-coverage.exec_,includes=com._your_package_.*,append=true,output=file,jmx=true"
- run downloaded_wildfly/bin/standalone.bat
Expected behaviour
Wildfly should start without exceptions (like it did running on java 17 with jacoco 0.8.8)
Actual behaviour
Wildfly starting process failes because of NPE
Calling "C:\arm\Programme\wildfly-32.0.1.Final - jacoco\wildfly-32.0.1.Final\bin\standalone.conf.bat"
Setting JAVA property to "C:\Program Files\Java\jdk-21.0.3\bin\java"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: "C:\arm\Programme\wildfly-32.0.1.Final - jacoco\wildfly-32.0.1.Final"
JAVA: "C:\Program Files\Java\jdk-21.0.3\bin\java"
JAVA_OPTS: "-javaagent:"C:\arm\Programme\wildfly-32.0.1.Final - jacoco\wildfly-32.0.1.Final\jboss-modules.jar" -Dprogram.name=standalone.bat -Xms64M -Xmx4096M -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djdk.serialFilter="maxbytes=10485760;maxdepth=128;maxarray=100000;maxrefs=300000" --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldaps=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED -Djava.security.manager=allow"
===============================================================================
14:24:53,335 INFO [org.jboss.modules] (main) JBoss Modules version 2.1.5.Final
Execution of premain method failed: java.lang.NullPointerException: Cannot invoke "java.io.InputStream.read(byte[])" because "is" is null
Exception seems to occur in org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/AgentModule.java
Related to
- Change from Pull request 1334 seems to cause this issue
- Maybe Pull request 1425 is related too
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Candidates