org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (10,9) in /home/user/IdeaProjects/TestKt/src/test/Test.kt PsiElement: object : Outer.Inner() { override fun foo() { println("yes, ${this@test}!") } } The root cause was thrown at: ImplementationBodyCodegen.java:397

YouTrack | 8 months ago
  1. 0

    Error generating constructors of class null with kind IMPLEMENTATION on anonymous object inheriting from nested class of super class

    YouTrack | 8 months ago
    org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (10,9) in /home/user/IdeaProjects/TestKt/src/test/Test.kt PsiElement: object : Outer.Inner() { override fun foo() { println("yes, ${this@test}!") } } The root cause was thrown at: ImplementationBodyCodegen.java:397
  2. 0

    Compiler crashes when inherit local class inside extension function from inner class

    YouTrack | 8 months ago
    org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Error generating constructors of class FooC with kind IMPLEMENTATION Cause: Error generating constructors of class FooC with kind IMPLEMENTATION File being compiled and position: (8,5) in /home/user/Personal/Kt/src/kt/ws/ws.kt PsiElement: class FooC : A.AB() The root cause was thrown at: ImplementationBodyCodegen.java:411
  3. 0

    Internal Error, Couldn't find declaration file for kotlin/KotlinPackage

    YouTrack | 11 months ago
    org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'DoubleArray' into { ix: Int -> DoubleArray(ny, { iy: Int -> init(ix, iy) }) } cause: Not generated Cause: Couldn't find declaration file for kotlin/KotlinPackage File being compiled and position: (12,9) in /home/chris/dev/scigraph/src/main/kotlin/com/welty/grid/Utils.kt PsiElement: DoubleArray(ny, { iy: Int -> init(ix, iy) }) The root cause was thrown at: InlineCodegenUtil.java:151
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Compiler error: Unresolved java classifier.

    YouTrack | 10 months ago
    org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Error type encountered: ('[ERROR : Unresolved java classifier: less<A, Tuple2<T, U>>]'..'[ERROR : Unresolved java classifier: less<A, Tuple2<T, U>>]?') (DelegatingFlexibleType). Cause: Error type encountered: ('[ERROR : Unresolved java classifier: less<A, Tuple2<T, U>>]'..'[ERROR : Unresolved java classifier: less<A, Tuple2<T, U>>]?') (DelegatingFlexibleType). File being compiled and position: (10,144) in C:/Users/Micah/Source/StubKafkaBroker/src/main/kotlin/com/zoltu/extensions/ScalaExtensions.kt PsiElement: toMap(scala.`Predef$`.`MODULE$`.conforms<scala.Tuple2<TKey, TValue>>()) The root cause was thrown at: JetTypeMapper.java:418
  6. 0

    CompilationException: ErrorUtils$UninferredParameterTypeConstructor encountered

    YouTrack | 2 years ago
    org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Failed to generate function foo Cause: no descriptor for type constructor of Captured(in CharSequence) File being compiled and position: (10,1) in /home/sufix/work/kotlin-experiments/src/foo.kt PsiElement: fun foo(o: Obs<CharSequence>) { o.lift(SwOperator()) } The root cause was thrown at: JetTypeMapper.java:424

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jetbrains.kotlin.codegen.CompilationException

      Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (10,9) in /home/user/IdeaProjects/TestKt/src/test/Test.kt PsiElement: object : Outer.Inner() { override fun foo() { println("yes, ${this@test}!") } } The root cause was thrown at: ImplementationBodyCodegen.java:397

      at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified()
    2. org.jetbrains.kotlin
      CompileServiceImpl.remoteIncrementalCompile
      1. org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:312)
      2. org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:275)
      3. org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:318)
      4. org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:322)
      5. org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:2232)
      6. org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:49)
      7. org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:69)
      8. org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:392)
      9. org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:218)
      10. org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:150)
      11. org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:125)
      12. org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:190)
      13. org.jetbrains.kotlin.codegen.PackagePartCodegen.generateBody(PackagePartCodegen.java:95)
      14. org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:127)
      15. org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:128)
      16. org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:63)
      17. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99)
      18. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77)
      19. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44)
      20. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:432)
      21. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:147)
      22. org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:168)
      23. org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:55)
      24. org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:206)
      25. org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:154)
      26. org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(CLICompiler.java:73)
      27. org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:247)
      28. org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:70)
      29. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:421)
      30. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:70)
      31. org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
      32. org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:454)
      33. org.jetbrains.kotlin.daemon.CompileServiceImpl.access$checkedCompile(CompileServiceImpl.kt:70)
      34. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:420)
      35. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:70)
      36. org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive(CompileServiceImpl.kt:565)
      37. org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive$default(CompileServiceImpl.kt:504)
      38. org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:411)
      39. org.jetbrains.kotlin.daemon.CompileServiceImpl.remoteIncrementalCompile(CompileServiceImpl.kt:244)
      39 frames
    3. Java RT
      TCPTransport$ConnectionHandler.lambda$run$241
      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)
      5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
      6. sun.rmi.transport.Transport$1.run(Transport.java:200)
      7. sun.rmi.transport.Transport$1.run(Transport.java:197)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      10. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
      11. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
      12. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$241(TCPTransport.java:683)
      12 frames