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

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

Solutions on the web

via YouTrack by Unknown author, 1 year ago
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
via Stack Overflow by netimen
, 1 year ago
$UninferredParameterTypeConstructor@68754e6 (ErrorTypeImpl). File being compiled and position: (24,9) in /home/d/work/workspace/Hitch-hiking-Stats/app/src/main/java/ru/netimen/hitch_hikingstats/MemoryRepo.kt PsiElement: val resultObservable = Observable.just(dangerousOperation()).compose(wrapResult(::getErrorMessage)) The root cause was thrown at: JetTypeMapper.java:435
via YouTrack by Unknown author, 1 year ago
Back-end (JVM) Internal error: null Cause: java.lang.NullPointerException File being compiled and position: (16,9) in /home/ache/jb-projects/143/kotlin-examples-master/gradle/mixed-java-kotlin-hello-world/src/test/kotlin/tests.kt PsiElement: assertEquals(example.getJoinedGreeting(), "Hi Harry and Ron and Hermione") The root cause was thrown at: JetTypeMapper.java:269
via YouTrack by Unknown author, 1 year ago
Back-end (JVM) Internal error: Error generating constructors of class Bar with kind IMPLEMENTATION Cause: Error generating constructors of class Bar with kind IMPLEMENTATION File being compiled and position: (36,5) in XXX PsiElement: class Bar(foo: Foo) The root cause was thrown at: ImplementationBodyCodegen.java:415
via YouTrack by Unknown author, 1 year ago
Back-end (JVM) Internal error: Error generating primary constructor of class A with kind IMPLEMENTATION Cause: Error generating primary constructor of class A with kind IMPLEMENTATION File being compiled and position: (9,9) in /home/sufix/work/kotlin-experiments/src/test.kt PsiElement: class A : B() The root cause was thrown at: ImplementationBodyCodegen.java:385
via YouTrack by Unknown author, 1 year ago
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
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(ExpressionCodegen.java:304)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genStatement(ExpressionCodegen.java:344)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.generateBlock(ExpressionCodegen.java:1590)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.generateBlock(ExpressionCodegen.java:1543)
at org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitBlockExpression(CodegenStatementVisitor.java:56)
at org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitBlockExpression(CodegenStatementVisitor.java:22)
at org.jetbrains.kotlin.psi.KtBlockExpression.accept(KtBlockExpression.java:44)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:285)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genStatement(ExpressionCodegen.java:344)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:314)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:1935)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:50)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:72)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:382)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:217)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:147)
at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:122)
at org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:180)
at org.jetbrains.kotlin.codegen.PackagePartCodegen.generateBody(PackagePartCodegen.java:94)
at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117)
at org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:117)
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.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:415)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:143)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:173)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:49)
at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:195)
at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:152)
at org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(CLICompiler.java:77)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:248)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:71)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:422)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:71)
at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:455)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.access$checkedCompile(CompileServiceImpl.kt:71)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:421)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:71)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive(CompileServiceImpl.kt:540)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive$default(CompileServiceImpl.kt:505)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:412)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.remoteIncrementalCompile(CompileServiceImpl.kt:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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