Coder Social home page Coder Social logo

com.cedarsoft.maven.instrumentation-plugin's People

Contributors

jschneider avatar

Watchers

 avatar  avatar

com.cedarsoft.maven.instrumentation-plugin's Issues

Exception when instrumenting inner classes

[ERROR] Failed to execute goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests (instrument-test-classes) on project ui: Execution instrument-test-classes of goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests failed: Should not happen. Failed to convert a valid compiled class into bytecode: by java.lang.IllegalAccessError: class de.avat.service.ui.testPages.TestMainPageDemo$MyTestMainPageLineModel cannot access its superinterface de.avat.service.ui.testPages.TestMainPageLineModel -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests (instrument-test-classes) on project ui: Execution instrument-test-classes of goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests failed: Should not happen. Failed to convert a valid compiled class into bytecode
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution instrument-test-classes of goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests failed: Should not happen. Failed to convert a valid compiled class into bytecode
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.RuntimeException: Should not happen. Failed to convert a valid compiled class into bytecode
at com.cedarsoft.maven.instrumentation.plugin.util.ClassFile.transform(ClassFile.java:85)
at com.cedarsoft.maven.instrumentation.plugin.AbstractInstrumentationMojo.transformClass(AbstractInstrumentationMojo.java:116)
at com.cedarsoft.maven.instrumentation.plugin.AbstractInstrumentationMojo.performClassTransformation(AbstractInstrumentationMojo.java:108)
at com.cedarsoft.maven.instrumentation.plugin.AbstractInstrumentationMojo.execute(AbstractInstrumentationMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
... 20 more
Caused by: javassist.CannotCompileException: by java.lang.IllegalAccessError: class de.avat.service.ui.testPages.TestMainPageDemo$MyTestMainPageLineModel cannot access its superinterface de.avat.service.ui.testPages.TestMainPageLineModel
at javassist.ClassPool.toClass(ClassPool.java:1099)
at javassist.CtClass.toClass(CtClass.java:1265)
at com.cedarsoft.maven.instrumentation.plugin.util.ClassFile.doTransform(ClassFile.java:97)
at com.cedarsoft.maven.instrumentation.plugin.util.ClassFile.transform(ClassFile.java:79)
... 24 more
Caused by: java.lang.IllegalAccessError: class de.avat.service.ui.testPages.TestMainPageDemo$MyTestMainPageLineModel cannot access its superinterface de.avat.service.ui.testPages.TestMainPageLineModel
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at javassist.ClassPool.toClass2(ClassPool.java:1112)
at javassist.ClassPool.toClass(ClassPool.java:1093)
... 27 more
[ERROR]

VerifyError on multiple annotations?

If annotated with @UiThread and one parameter is annotated with @nonnull, it seems that a VerifyError: "Expecting a stackmap frame at branch target" is thrown.

Maybe caused by multiple instrumentations?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.