Skip to content

v4.10.2 & v4.10.0 KaravanStartupLoader] (main) Error during services project creation: java.lang.NullPointerException #1531

Description

@yueyijingque

Describe the bug

I deployed the 4.10.2 image in microk8s 1.31. The following errors were found in the log:

2025-06-09 01:19:47,128 INFO  [org.apa.cam.kar.KaravanStartupLoader] (main) Add configuration project
2025-06-09 01:19:47,143 INFO  [org.apa.cam.kar.KaravanStartupLoader] (main) Add dev services project
2025-06-09 01:19:47,143 ERROR [org.apa.cam.kar.KaravanStartupLoader] (main) Error during services project creation: java.lang.NullPointerException
	at java.base/java.util.Objects.requireNonNull(Objects.java:209)
	at org.apache.camel.karavan.service.CodeService.listResources(CodeService.java:435)
	at org.apache.camel.karavan.service.CodeService.getDevServicesFiles(CodeService.java:244)
	at org.apache.camel.karavan.service.CodeService_ClientProxy.getDevServicesFiles(Unknown Source)
	at org.apache.camel.karavan.KaravanStartupLoader.addServicesProject(KaravanStartupLoader.java:224)
	at org.apache.camel.karavan.KaravanStartupLoader.tryStart(KaravanStartupLoader.java:110)
	at org.apache.camel.karavan.KaravanStartupLoader.onStart(KaravanStartupLoader.java:93)
	at org.apache.camel.karavan.KaravanStartupLoader_Observer_onStart_t31YlvCWzsNKY9Dr1PgVKKlHpOE.notify(Unknown Source)
	at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:365)
	at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:347)
	at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:81)
	at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:163)
	at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:114)
	at io.quarkus.runner.recorded.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source)
	at io.quarkus.runner.recorded.LifecycleEventsBuildStep$startupEvent1144526294.deploy(Unknown Source)
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:121)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:77)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:48)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:137)
	at io.quarkus.runner.GeneratedMain.main(Unknown Source)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions