emt4j: java.lang.NoSuchMethodException: org.eclipse.emt4j.agent.common.rule.AgentReferenceClassRule.set(java.lang.String)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.eclipse.emt4j.agent.jdk8.MainAgent.premain(MainAgent.java:82)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.emt4j.agent.jdk8.MainAgent.premain(MainAgent.java:61)
... 6 more
Caused by: java.lang.RuntimeException: org.eclipse.emt4j.common.JdkMigrationException: InstanceRuleManager init exception!
at org.eclipse.emt4j.agent.common.AgentInit.init(AgentInit.java:30)
... 11 more
Caused by: org.eclipse.emt4j.common.JdkMigrationException: InstanceRuleManager init exception!
at org.eclipse.emt4j.common.rule.InstanceRuleManager.init(InstanceRuleManager.java:88)
at org.eclipse.emt4j.agent.common.AgentFacade.initInstanceRules(AgentFacade.java:94)
at org.eclipse.emt4j.agent.common.AgentFacade.init(AgentFacade.java:72)
at org.eclipse.emt4j.agent.common.AgentInit.init(AgentInit.java:27)
... 11 more
Caused by: java.lang.NoSuchMethodException: org.eclipse.emt4j.agent.common.rule.AgentReferenceClassRule.set(java.lang.String)
at java.lang.Class.getMethod(Class.java:1786)
at org.eclipse.emt4j.common.rule.InstanceRuleManager.setValue(InstanceRuleManager.java:93)
at org.eclipse.emt4j.common.rule.InstanceRuleManager.init(InstanceRuleManager.java:78)
... 14 more
When I usse
<plugin>
<groupId>org.eclipse.emt4j</groupId>
<artifactId>emt4j-maven-plugin</artifactId>
<version>0.8.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>inject-agent</goal>
</goals>
</execution>
<execution>
<id>check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<fromVersion>8</fromVersion>
<toVersion>17</toVersion>
<outputFile>report_running.html</outputFile>
</configuration>
</plugin>
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (26 by maintainers)
OK, i will submit it in a few days