org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 5: Cannot pop operand off an empty stack. File being compiled and position: (7,5) in /Simplest version.kt PsiElement: @JvmOverloads fun a(a: Boolean = false, b: Boolean = false) {} The root cause was thrown at: MethodTransformer.java:34

YouTrack | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    @JvmOverloads does not work in interfaces, causing an exception in compiler

    YouTrack | 1 year ago
    org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 5: Cannot pop operand off an empty stack. File being compiled and position: (7,5) in /Simplest version.kt PsiElement: @JvmOverloads fun a(a: Boolean = false, b: Boolean = false) {} The root cause was thrown at: MethodTransformer.java:34
  2. 0

    Exception from bytecode optimizier on try-catch inside function literal

    YouTrack | 3 years ago
    org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 53: Cannot pop operand off an empty stack. File being compiled and position: (1,1) in /Users/geevee/sandbox/src/run.kt PsiElement: fun f(events: List<String>) { events.map { try { } catch(e: Exception) { } } } The root cause was thrown at: MethodTransformer.java:37
  3. 0

    REPL: IOB exception from code with try-catch

    YouTrack | 3 years ago
    java.lang.RuntimeException: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerExcepti on: Error at instruction 27: Cannot pop operand off an empty stack.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Did Find in Files. Results showed a matching node. Clicking it caused an exception

    Netbeans Bugzilla | 1 decade ago | martyd2
    java.lang.IndexOutOfBoundsException: Invalid line index=42 >= lineCount=39 at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:54) at org.openide.text.NbDocument.findLineOffset(NbDocument.java:124) at org.openide.text.DocumentLine$Set.getOriginal(DocumentLine.java:743) at org.netbeans.modules.debugger.jpda.LineBreakpoint.set(LineBreakpoint.java:524) at org.netbeans.modules.debugger.jpda.LineBreakpoint.set(LineBreakpoint.java:477) at org.netbeans.modules.debugger.jpda.LineBreakpoint.exec(LineBreakpoint.java:379) at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:107)
  6. 0

    "Mcconvert experience" generates an out of bounds exception

    GitHub | 1 year ago | BornToDoStuff
    java.lang.IndexOutOfBoundsException: Index: 0 04.03 20:52:58 [Server] WARN [mcMMO] Task #447 for mcMMO v1.5.04-SNAPSHOT-b92 generated an exception **command used:** /mcconvert experience exponential The variable Exp_Modifier was set to 2.875 ingame there is a message given: Starting conversion from UNKNOWN to EXPONENTIAL converting to LINEAR was also tried but it appears that it is unable to determine what type it is starting from in the first place. **Full Error Log:**

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      Cannot pop operand off an empty stack.

      at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.pop()
    2. org.jetbrains.org
      Analyzer.analyze
      1. org.jetbrains.org.objectweb.asm.tree.analysis.Frame.pop(Frame.java:221)
      2. org.jetbrains.org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:612)
      3. org.jetbrains.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:200)
      3 frames
    3. org.jetbrains.kotlin
      KotlinCodegenFacade.compileCorrectFiles
      1. org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.runAnalyzer(MethodTransformer.java:31)
      2. org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.analyze(MethodTransformer.java:44)
      3. org.jetbrains.kotlin.codegen.optimization.boxing.RedundantNullCheckMethodTransformer.removeRedundantNullCheckPass(RedundantNullCheckMethodTransformer.java:40)
      4. org.jetbrains.kotlin.codegen.optimization.boxing.RedundantNullCheckMethodTransformer.transform(RedundantNullCheckMethodTransformer.java:33)
      5. org.jetbrains.kotlin.codegen.optimization.OptimizationMethodVisitor.visitEnd(OptimizationMethodVisitor.java:82)
      6. org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(FunctionCodegen.java:496)
      7. org.jetbrains.kotlin.codegen.DefaultParameterValueSubstitutor.generateOverloadWithSubstitutedParameters(DefaultParameterValueSubstitutor.kt:216)
      8. org.jetbrains.kotlin.codegen.DefaultParameterValueSubstitutor.generateOverloadsIfNeeded(DefaultParameterValueSubstitutor.kt:89)
      9. org.jetbrains.kotlin.codegen.FunctionCodegen.generateOverloadsWithDefaultValues(FunctionCodegen.java:129)
      10. org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:121)
      11. org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:180)
      12. org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateDeclaration(ClassBodyCodegen.java:124)
      13. org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:74)
      14. org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117)
      15. org.jetbrains.kotlin.codegen.ImplementationBodyCodegen.generateDefaultImplsIfNeeded(ImplementationBodyCodegen.java:245)
      16. org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:80)
      17. org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117)
      18. org.jetbrains.kotlin.codegen.MemberCodegen.genClassOrObject(MemberCodegen.java:231)
      19. org.jetbrains.kotlin.codegen.PackageCodegen.generateClassOrObject(PackageCodegen.java:147)
      20. org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:98)
      21. org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:61)
      22. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99)
      23. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77)
      24. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44)
      24 frames
    4. org.jetbrains.webdemo
      BackendHttpServlet.service
      1. org.jetbrains.webdemo.backend.responseHelpers.CompileAndRunExecutor.getResult(CompileAndRunExecutor.java:86)
      2. org.jetbrains.webdemo.backend.MyHttpSession.sendExecutorResult(MyHttpSession.java:86)
      3. org.jetbrains.webdemo.backend.MyHttpSession.handle(MyHttpSession.java:47)
      4. org.jetbrains.webdemo.backend.ServerHandler.handle(ServerHandler.java:41)
      5. org.jetbrains.webdemo.backend.BackendHttpServlet.service(BackendHttpServlet.java:126)
      5 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      1 frame
    6. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    7. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    8. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
      10 frames
    9. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
      3 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:744)
      3 frames