java.lang.instrument.IllegalClassFormatException: Error while instrumenting class org/eclipse/milo/opcua/stack/core/Identifiers.

GitHub | kartben | 12 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    "java.lang.RuntimeException: Method code too large!" when building Eclipse Milo

    GitHub | 12 months ago | kartben
    java.lang.instrument.IllegalClassFormatException: Error while instrumenting class org/eclipse/milo/opcua/stack/core/Identifiers.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Method code too large!

      at org.jacoco.agent.rt.internal_4236f75.asm.MethodWriter.getSize()
    2. org.jacoco.agent
      CoverageTransformer.transform
      1. org.jacoco.agent.rt.internal_4236f75.asm.MethodWriter.getSize(MethodWriter.java:2036)
      2. org.jacoco.agent.rt.internal_4236f75.asm.ClassWriter.toByteArray(ClassWriter.java:827)
      3. org.jacoco.agent.rt.internal_4236f75.core.instr.Instrumenter.instrument(Instrumenter.java:84)
      4. org.jacoco.agent.rt.internal_4236f75.core.instr.Instrumenter.instrument(Instrumenter.java:101)
      5. org.jacoco.agent.rt.internal_4236f75.CoverageTransformer.transform(CoverageTransformer.java:91)
      5 frames
    3. Java RT
      ClassLoader.loadClass
      1. sun.instrument.TransformerManager.transform(TransformerManager.java:188)
      2. sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
      3. java.lang.ClassLoader.defineClass1(Native Method)
      4. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      5. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      6. java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
      7. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      8. java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      9. java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      10. java.security.AccessController.doPrivileged(Native Method)
      11. java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      12. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      13. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      14. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      14 frames
    4. org.eclipse.milo
      OpcUaClientIT.startClientAndServer
      1. org.eclipse.milo.opcua.stack.core.types.structured.UserTokenPolicy.<clinit>(UserTokenPolicy.java:28)
      2. org.eclipse.milo.opcua.sdk.server.api.config.OpcUaServerConfig.<clinit>(OpcUaServerConfig.java:33)
      3. org.eclipse.milo.opcua.sdk.client.OpcUaClientIT.startClientAndServer(OpcUaClientIT.java:104)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. TestNG
      TestNG.run
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
      2. org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:514)
      3. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:215)
      4. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
      5. org.testng.TestRunner.beforeRun(TestRunner.java:656)
      6. org.testng.TestRunner.run(TestRunner.java:624)
      7. org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
      8. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
      9. org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
      10. org.testng.SuiteRunner.run(SuiteRunner.java:268)
      11. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      12. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      13. org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
      14. org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
      15. org.testng.TestNG.run(TestNG.java:1064)
      15 frames
    7. org.apache.maven
      TestNGProvider.invoke
      1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
      2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
      3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
      4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
      4 frames
    8. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      3 frames