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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via YouTrack by Unknown author, 1 year ago
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
via YouTrack by Unknown author, 1 year ago
Error at instruction 97: Cannot pop operand off an empty stack. File being compiled and position: (300,5) in /data/store/mbrickman/google_drive/kotlin/projects/e-gility/library/src/library/general/ClassTemplate.kt PsiElement: SPLIT_PAIRS
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
at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.pop(Frame.java:221)
at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:612)
at org.jetbrains.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:200)
at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.runAnalyzer(MethodTransformer.java:31)
at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.analyze(MethodTransformer.java:44)
at org.jetbrains.kotlin.codegen.optimization.boxing.RedundantNullCheckMethodTransformer.removeRedundantNullCheckPass(RedundantNullCheckMethodTransformer.java:40)
at org.jetbrains.kotlin.codegen.optimization.boxing.RedundantNullCheckMethodTransformer.transform(RedundantNullCheckMethodTransformer.java:33)
at org.jetbrains.kotlin.codegen.optimization.OptimizationMethodVisitor.visitEnd(OptimizationMethodVisitor.java:82)
at org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(FunctionCodegen.java:496)
at org.jetbrains.kotlin.codegen.DefaultParameterValueSubstitutor.generateOverloadWithSubstitutedParameters(DefaultParameterValueSubstitutor.kt:216)
at org.jetbrains.kotlin.codegen.DefaultParameterValueSubstitutor.generateOverloadsIfNeeded(DefaultParameterValueSubstitutor.kt:89)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateOverloadsWithDefaultValues(FunctionCodegen.java:129)
at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:121)
at org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:180)
at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateDeclaration(ClassBodyCodegen.java:124)
at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:74)
at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117)
at org.jetbrains.kotlin.codegen.ImplementationBodyCodegen.generateDefaultImplsIfNeeded(ImplementationBodyCodegen.java:245)
at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:80)
at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117)
at org.jetbrains.kotlin.codegen.MemberCodegen.genClassOrObject(MemberCodegen.java:231)
at org.jetbrains.kotlin.codegen.PackageCodegen.generateClassOrObject(PackageCodegen.java:147)
at org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:98)
at org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:61)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44)
at org.jetbrains.webdemo.backend.responseHelpers.CompileAndRunExecutor.getResult(CompileAndRunExecutor.java:86)
at org.jetbrains.webdemo.backend.MyHttpSession.sendExecutorResult(MyHttpSession.java:86)
at org.jetbrains.webdemo.backend.MyHttpSession.handle(MyHttpSession.java:47)
at org.jetbrains.webdemo.backend.ServerHandler.handle(ServerHandler.java:41)
at org.jetbrains.webdemo.backend.BackendHttpServlet.service(BackendHttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.