Skip to content

Unable to find extension point configuration extensions/compiler.xml when running in docker #480

Open
@StefanLobbenmeierObjego

Description

@StefanLobbenmeierObjego

Full error is this:

Unable to initialize repl compiler:
  DEBUG Using JDK home inferred from java.home: /usr/local/openjdk-21
  DEBUG Using JVM IR backend
  DEBUG Using JVM IR backend
  ERROR Unable to find extension point configuration extensions/compiler.xml (cp:
  null): java.lang.IllegalStateException: Unable to find extension point configuration extensions/compiler.xml (cp:
  null)

I was using the spring starter:

    implementation("org.jetbrains.kotlinx:kotlin-jupyter-spring-starter:0.12.0-463")

And running the application in an container based on

FROM openjdk:21-slim

I am using spring version "3.3.6"

This is my port forward:

kubectl port-forward -n namespace podname 50500:50500 50501:50501 50502:50502 50503:50503 50504:50504 50505:50505

So far I have tried:

  • using non slim version of the container (no difference)
  • running locally instead (works, but not what I wanted to do)
  • using a buildpack instead of Dockerfile (also same result)
pack build  --platform linux/amd64 \
            --builder paketobuildpacks/builder-jammy-base:latest \
            --buildpack paketo-buildpacks/java \
            --buildpack paketo-buildpacks/opentelemetry \
            --path "$jar_path" \
            --env BP_JVM_VERSION=21 \
            --env BP_OPENTELEMETRY_ENABLED=true \
            "$container_tag
  • learned that buildpack uses jvm by default, tried using jdk instead but that version crashed
  • instead tried a different jdk image FROM eclipse-temurin:21-jdk-noble, same error message

I get an error in the stdout as well:

{
  "header": {
    "msg_id": "10bf93b9-5f04-4aac-9783-2d45d99f7b84",
    "msg_type": "execute_reply",
    "session": "1ac2bd70-0125-4669-b7c4-ea8ce97b2afe",
    "username": "username",
    "version": "5.3",
    "date": "2025-07-02T16:12:01.747055880+00:00[Etc/UTC]"
  },
  "parent_header": {
    "msg_id": "68776a8b-a5c5-4171-9ee7-1455ce8ed127",
    "msg_type": "execute_request",
    "session": "1ac2bd70-0125-4669-b7c4-ea8ce97b2afe",
    "username": "username",
    "version": "5.5"
  },
  "metadata": {
    "engine": "1ac2bd70-0125-4669-b7c4-ea8ce97b2afe",
    "status": "error",
    "started": "2025-07-02T16:12:01.641491095+00:00[Etc/UTC]",
    "eval_metadata": {
      "newClasspath": [],
      "newSources": [],
      "compiledData": {
        "scripts": [],
        "sources": []
      },
      "newImports": [],
      "evaluatedVariablesState": {}
    }
  },
  "content": {
    "status": "error",
    "execution_count": 2,
    "ename": "org.jetbrains.kotlinx.jupyter.exceptions.ReplCompilerException",
    "evalue": "Unable to initialize repl compiler:\n  DEBUG Using JDK home inferred from java.home: /opt/java/openjdk\n  DEBUG Using JVM IR backend\n  DEBUG Using JVM IR backend\n  ERROR Unable to find extension point configuration extensions/compiler.xml (cp:\n  null): java.lang.IllegalStateException: Unable to find extension point configuration extensions/compiler.xml (cp:\n  null)",
    "traceback": [
      "org.jetbrains.kotlinx.jupyter.exceptions.ReplCompilerException: Unable to initialize repl compiler:",
      "  DEBUG Using JDK home inferred from java.home: /opt/java/openjdk",
      "  DEBUG Using JVM IR backend",
      "  DEBUG Using JVM IR backend",
      "  ERROR Unable to find extension point configuration extensions/compiler.xml (cp:",
      "  null): java.lang.IllegalStateException: Unable to find extension point configuration extensions/compiler.xml (cp:",
      "  null)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.JupyterCompilerImpl.compileSync(JupyterCompilerImpl.kt:208)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.InternalEvaluatorImpl.eval(InternalEvaluatorImpl.kt:126)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl$execute$1$result$1.invoke(CellExecutorImpl.kt:80)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl$execute$1$result$1.invoke(CellExecutorImpl.kt:78)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withHost(ReplForJupyterImpl.kt:779)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl.execute-L4Nmkdk(CellExecutorImpl.kt:78)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.execution.CellExecutor$DefaultImpls.execute-L4Nmkdk$default(CellExecutor.kt:13)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evaluateUserCode-wNURfNM(ReplForJupyterImpl.kt:601)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalExImpl(ReplForJupyterImpl.kt:459)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.access$evalExImpl(ReplForJupyterImpl.kt:140)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl$evalEx$1.invoke(ReplForJupyterImpl.kt:452)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl$evalEx$1.invoke(ReplForJupyterImpl.kt:451)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withEvalContext(ReplForJupyterImpl.kt:432)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalEx(ReplForJupyterImpl.kt:451)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1$1.invoke(IdeCompatibleMessageRequestProcessor.kt:160)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1$1.invoke(IdeCompatibleMessageRequestProcessor.kt:159)",
      "\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
      "\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedIn(IdeCompatibleMessageRequestProcessor.kt:354)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.access$withForkedIn(IdeCompatibleMessageRequestProcessor.kt:55)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$evalWithIO$1$1.invoke(IdeCompatibleMessageRequestProcessor.kt:368)",
      "\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
      "\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedErr(IdeCompatibleMessageRequestProcessor.kt:343)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.access$withForkedErr(IdeCompatibleMessageRequestProcessor.kt:55)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$evalWithIO$1.invoke(IdeCompatibleMessageRequestProcessor.kt:367)",
      "\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
      "\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedOut(IdeCompatibleMessageRequestProcessor.kt:335)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO(IdeCompatibleMessageRequestProcessor.kt:366)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1.invoke(IdeCompatibleMessageRequestProcessor.kt:159)",
      "\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1.invoke(IdeCompatibleMessageRequestProcessor.kt:158)",
      "\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$Task.execute(JupyterExecutorImpl.kt:41)",
      "\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$executorThread$1.invoke(JupyterExecutorImpl.kt:83)",
      "\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$executorThread$1.invoke(JupyterExecutorImpl.kt:80)",
      "\tat kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)",
      "Caused by: java.lang.IllegalStateException: Unable to initialize repl compiler:",
      "  DEBUG Using JDK home inferred from java.home: /opt/java/openjdk",
      "  DEBUG Using JVM IR backend",
      "  DEBUG Using JVM IR backend",
      "  ERROR Unable to find extension point configuration extensions/compiler.xml (cp:",
      "  null): java.lang.IllegalStateException: Unable to find extension point configuration extensions/compiler.xml (cp:",
      "  null)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.compiler.plugin.impl.KJvmReplCompilerBase$Companion.createCompilationState(KJvmReplCompilerBase.kt:337)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.ide_services.compiler.KJvmReplCompilerWithIdeServices$1.invoke(KJvmReplCompilerWithIdeServices.kt:30)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.ide_services.compiler.KJvmReplCompilerWithIdeServices$1.invoke(KJvmReplCompilerWithIdeServices.kt:29)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.compiler.plugin.repl.JvmReplCompilerState.initializeCompilation(jvmReplCompilation.kt:61)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.compiler.plugin.repl.JvmReplCompilerState.getCompilationState(jvmReplCompilation.kt:47)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.compiler.plugin.impl.KJvmReplCompilerBase.compile$suspendImpl(KJvmReplCompilerBase.kt:74)",
      "\tat ktnb.org.jetbrains.kotlin.scripting.compiler.plugin.impl.KJvmReplCompilerBase.compile(KJvmReplCompilerBase.kt)",
      "\tat kotlin.script.experimental.api.ReplCompiler.compile$suspendImpl(replCompilation.kt:49)",
      "\tat kotlin.script.experimental.api.ReplCompiler.compile(replCompilation.kt)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.JupyterCompilerImpl$compileSync$resultWithDiagnostics$1.invokeSuspend(JupyterCompilerImpl.kt:201)",
      "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)",
      "\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)",
      "\tat io.opentelemetry.javaagent.instrumentation.kotlinxcoroutines.RunnableWrapper.lambda$stopPropagation$0(RunnableWrapper.java:16)",
      "\tat kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)",
      "\tat kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)",
      "\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)",
      "\tat kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)",
      "\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)",
      "\tat kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)",
      "\tat org.jetbrains.kotlinx.jupyter.repl.impl.JupyterCompilerImpl.compileSync(JupyterCompilerImpl.kt:201)",
      "\t... 35 more",
      ""
    ],
    "additionalInfo": {
    }
  }
}

Anything else I can try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions