Failed to inject Gerrit push UI: javassist.CannotCompileException: [source error] cannot find constructor
See original GitHub issueThis change breaks Javassist reflection magic: https://github.com/JetBrains/intellij-community/commit/1ab27885afa82e46eba4715829c88f0de494b652
Plugin version: 1.1.2-146 IntelliJ version: IntelliJ IDEA 2019.3 IU-193.2956.37 OS: Mac OS X 10.11.6 Java: JetBrains s.r.o 11.0.4
javassist.CannotCompileException: [source error] cannot find constructor com.urswolfer.intellij.plugin.gerrit.push.GerritPushTargetPanel(git4idea.push.GitPushSupport,git4idea.repo.GitRepository,git4idea.push.GitPushSource,com.urswolfer.intellij.plugin.gerrit.push.GerritPushOptionsPanel)
at javassist.CtBehavior.setBody(CtBehavior.java:474)
at javassist.CtBehavior.setBody(CtBehavior.java:440)
at com.urswolfer.intellij.plugin.gerrit.push.GerritPushExtension.modifyGitBranchPanel(GerritPushExtension.java:84)
at com.urswolfer.intellij.plugin.gerrit.push.GerritPushExtension.initComponent(GerritPushExtension.java:57)
at com.urswolfer.intellij.plugin.gerrit.push.GerritPushExtension$Proxy.initComponent(GerritPushExtension.java:139)
at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:41)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:91)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:70)
at com.intellij.serviceContainer.PlatformComponentManagerImpl.createComponents(PlatformComponentManagerImpl.kt:200)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadComponents$4(ApplicationImpl.java:361)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:592)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:538)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(ApplicationImpl.java:361)
at com.intellij.idea.ApplicationLoader$startApp$5$1.run(ApplicationLoader.kt:173)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:443)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: compile error: cannot find constructor com.urswolfer.intellij.plugin.gerrit.push.GerritPushTargetPanel(git4idea.push.GitPushSupport,git4idea.repo.GitRepository,git4idea.push.GitPushSource,com.urswolfer.intellij.plugin.gerrit.push.GerritPushOptionsPanel)
at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:777)
at javassist.compiler.TypeChecker.atNewExpr(TypeChecker.java:171)
at javassist.compiler.ast.NewExpr.accept(NewExpr.java:75)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:266)
at javassist.compiler.CodeGen.compileExpr(CodeGen.java:253)
at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:641)
at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:443)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:393)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:381)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53)
at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:321)
at javassist.compiler.Javac.compileBody(Javac.java:228)
at javassist.CtBehavior.setBody(CtBehavior.java:466)
... 30 more
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
javassist.CannotCompileException: [source error] ) is missing ...
Javassist can read and modify a class file of inner/anonymous class. You are attempting to inject an anonymous Runnable class, so it won't...
Read more >[JDK11] javassist.CannotCompileException: [source error] the ...
A simple instrumentation WITHOUT any modification should work. However, javassist.CannotCompileException: [source error] the called constructor is private was ...
Read more >Starting Gerrit Code Review: FAILED - Google Groups
1) Error injecting constructor, com.google.gwtorm.server.OrmException: fetch failure on accounts. at com.google.gerrit.server.account.AccountManager.
Read more >Display clusters with different colors, ImageJ2 and ImgLib2
Suppose I have some 3 sets of (x,y) points, and I would like to draw them on a canvas with different customizable colors....
Read more >Uses of Class javassist.CannotCompileException
Modifier and Type Method Description
void CtClass. addConstructor(CtConstructor c) Adds a constructor.
void CtClass. addField(CtField f) Adds a field.
void CtClass. addMethod(CtMethod m) Adds a method....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@singalen Thanks for your help - it was easier than I’ve expected! 😃
Fix released. Please update your plugin.
If you would like to support an official API for injecting this push dialog extension, please vote for this request: https://youtrack.jetbrains.com/issue/IDEA-136937