Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup command is broken java.lang.NullPointerException #246

Closed
clementguillot opened this issue Oct 28, 2024 · 0 comments · Fixed by #248
Closed

Cleanup command is broken java.lang.NullPointerException #246

clementguillot opened this issue Oct 28, 2024 · 0 comments · Fixed by #248

Comments

@clementguillot
Copy link
Owner

Description

Due to recent updates of ProjectGraph object (#221), the domain mapper is broken and throws exceptions:

2024-10-28 00:05:17,968 INFO  [org.mon.dri.cluster] (cluster-ClusterId{value='671ed53d3aa2d04175b305c6', description='null'}-nx-cloud-ce-1.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017) Discovered replica set primary nx-cloud-ce-1.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017 with max election id 7fffffff000000000000020f and max set version 5
2024-10-28 00:05:17,969 INFO  [org.mon.dri.cluster] (cluster-ClusterId{value='671ed53d3aa2d04175b305c6', description='null'}-nx-cloud-ce-2.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017) Monitor thread successfully connected to server with description ServerDescription{address=nx-cloud-ce-2.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017, type=REPLICA_SET_SECONDARY, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=25, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=2014536, setName='nx-cloud-ce', canonicalAddress=nx-cloud-ce-2.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017, hosts=[nx-cloud-ce-1.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017, nx-cloud-ce-0.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017, nx-cloud-ce-2.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017], passives=[], arbiters=[], primary='nx-cloud-ce-1.nx-cloud-ce-svc.nx-cloud-ce.svc.cluster.local:27017', tagSet=TagSet{[]}, electionId=null, setVersion=5, topologyVersion=TopologyVersion{processId=671c6d54c8e00454e70391ab, counter=3}, lastWriteDate=Mon Oct 28 00:05:16 GMT 2024, lastUpdateTimeNanos=619034001352388}
2024-10-28 00:05:18,576 ERROR [io.qua.run.Application] (main) Failed to start application: java.lang.NullPointerException
	at org.nxcloudce.server.gateway.persistence.RunMapperKt.toDomain$lambda$7(RunMapper.kt:205)
	at org.nxcloudce.server.domain.run.model.Run$Companion.invoke(Run.kt:12)
	at org.nxcloudce.server.gateway.persistence.RunMapperKt.toDomain(RunMapper.kt:10)
	at org.nxcloudce.server.gateway.persistence.RunRepositoryImpl$findAllByCreationDateOlderThan$$inlined$map$1$2.emit(Emitters.kt:220)
	at kotlinx.coroutines.flow.FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(Channels.kt:33)
	at kotlinx.coroutines.flow.FlowKt__ChannelsKt.access$emitAllImpl$FlowKt__ChannelsKt(Channels.kt:1)
	at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at org.nxcloudce.server.presentation.command.CleanupCommand.run(CleanupCommand.kt:16)
	at org.nxcloudce.server.presentation.command.CleanupCommand_ClientProxy.run(Unknown Source)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:140)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
	at org.nxcloudce.server.Cleanup.run(ServerCommand.kt:50)
	at com.github.ajalt.clikt.core.CoreCliktCommandKt.parse(CoreCliktCommand.kt:107)
	at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:78)
	at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
	at org.nxcloudce.server.ServerMain$Companion.main(ServerMain.kt:11)
	at org.nxcloudce.server.ServerMain.main(ServerMain.kt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant