Skip to content

Troubleshooting

mjok edited this page Sep 24, 2020 · 3 revisions

Problem: Getting the "java.lang.VerifyError"

Solution: some of the instrumented classes seems to be compiled with version prior to Java 1.5. You can enable property "java15safe" in remora.properties, this should fix the problem.

<..>
com.jkoolcloud.remora.advices.BaseTransformers.java15safe=true

<..>

Problem: JBoss (WildFly) won't start with remoraJ with "WFLYCTL0079: Failed initializing module org.jboss.as.logging" caused by "WFLYLOG0078: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"

Solution:

You need to configure jboss logMananger early start using java options.

Your startup script should contain

-Djava.util.logging.manager=org.jboss.logmanager.LogManager"

In order to start LogManager it should be appended to classpath:

set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:c:/EAP-7.2.0-fresh/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.5.Final-redhat-00001.jar"

And ensure that logManager is loaded by system classloader:

set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.logmanager"

Other options might be relevant to JBoss and environment versions. The whole additional options used to start JBoss Version 7.2.0.GA on Oracle Java 11

@setlocal
set JAVA_HOME=c:\java\jdk11\

set "JAVA_OPTS=%JAVA_OPTS% -javaagent:c:\remora\remora-0.2.0-SNAPSHOT\remora.jar"

set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.logmanager"


set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:c:/EAP-7.2.0-fresh/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.5.Final-redhat-00001.jar"
set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:c:\EAP-7.2.0\modules\system\layers\base\org\wildfly\common\main\wildfly-common-1.4.0.Final-redhat-1.jar"

rem set "JAVA_OPTS=%JAVA_OPTS% --illegal-access=debug -Dsun.util.logging.disableCallerCheck=true  -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
set "JAVA_OPTS=%JAVA_OPTS% -Dsun.util.logging.disableCallerCheck=true  -Djava.util.logging.manager=org.jboss.logmanager.LogManager"



C:\EAP-7.2.0-fresh\bin\standalone.bat -c standalone-full.xml
Clone this wiki locally