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

YouTrack | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    YouTrack | 1 year 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
  2. 0

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

    YouTrack | 1 year 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
  3. 0

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

    YouTrack | 1 year 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 | 1 year 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 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

      at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified()
    2. org.jetbrains.kotlin
      CompileServiceImpl.remoteIncrementalCompile
      1. org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:304)
      2. org.jetbrains.kotlin.codegen.ExpressionCodegen.genStatement(ExpressionCodegen.java:344)
      3. org.jetbrains.kotlin.codegen.ExpressionCodegen.generateBlock(ExpressionCodegen.java:1590)
      4. org.jetbrains.kotlin.codegen.ExpressionCodegen.generateBlock(ExpressionCodegen.java:1543)
      5. org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitBlockExpression(CodegenStatementVisitor.java:56)
      6. org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitBlockExpression(CodegenStatementVisitor.java:22)
      7. org.jetbrains.kotlin.psi.KtBlockExpression.accept(KtBlockExpression.java:44)
      8. org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:285)
      9. org.jetbrains.kotlin.codegen.ExpressionCodegen.genStatement(ExpressionCodegen.java:344)
      10. org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:314)
      11. org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:1935)
      12. org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:50)
      13. org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:72)
      14. org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:382)
      15. org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:217)
      16. org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:147)
      17. org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:122)
      18. org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:180)
      19. org.jetbrains.kotlin.codegen.PackagePartCodegen.generateBody(PackagePartCodegen.java:94)
      20. org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117)
      21. org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:117)
      22. org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:61)
      23. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99)
      24. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77)
      25. org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44)
      26. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:415)
      27. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:143)
      28. org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:173)
      29. org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:49)
      30. org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:195)
      31. org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:152)
      32. org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(CLICompiler.java:77)
      33. org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:248)
      34. org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:71)
      35. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:422)
      36. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:71)
      37. org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
      38. org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:455)
      39. org.jetbrains.kotlin.daemon.CompileServiceImpl.access$checkedCompile(CompileServiceImpl.kt:71)
      40. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:421)
      41. org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:71)
      42. org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive(CompileServiceImpl.kt:540)
      43. org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive$default(CompileServiceImpl.kt:505)
      44. org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:412)
      45. org.jetbrains.kotlin.daemon.CompileServiceImpl.remoteIncrementalCompile(CompileServiceImpl.kt:245)
      45 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