Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-8208

[SW] - NPE on Service Discovery when running native mode

    XMLWordPrintable

Details

    • False
    • None
    • False
    • Workaround Exists
    • Hide

      Seems that the issue happens when a required system property is not set, it will fail.
      Setting the required properties seems to fix the problem.

      Show
      Seems that the issue happens when a required system property is not set, it will fail. Setting the required properties seems to fix the problem.
    • Hide

      Build the integration-tests-jobs-service-quarkus-knative-eventing as native and run it without any property.

      Running with these properties fixes the problem:

       

      ./target/integration-tests-jobs-service-quarkus-knative-eventing-2.0.0-SNAPSHOT-runner -Dkogito.service.url=http://host.testcontainers.internal:58286 -Dkogito.jobs-service.url=http://localhost:49184  -Dkogito.sink-mock.url=http://localhost:32943

      Show
      Build the integration-tests-jobs-service-quarkus-knative-eventing as native and run it without any property. Running with these properties fixes the problem:   ./target/integration-tests-jobs-service-quarkus-knative-eventing-2.0.0-SNAPSHOT-runner -Dkogito.service.url= http://host.testcontainers.internal:58286 -Dkogito.jobs-service.url= http://localhost:49184  -Dkogito.sink-mock.url= http://localhost:32943
    • ---
    • ---
    • 2022 Week 44-46 (from Oct 31)

    Description

      Service Discovery NPE when running the integration-tests-jobs-service-quarkus-knative-eventing in native mode:

      2022-11-03 12:32:36,479 ERROR [org.kie.kog.add.qua.k8s.KubeDiscoveryConfigSourceInterceptor] (main) Service Discovery has failed: java.lang.NullPointerException
      	at org.kie.kogito.addons.quarkus.k8s.KubeDiscoveryConfigSourceInterceptor.isValidURI(KubeDiscoveryConfigSourceInterceptor.java:64)
      	at org.kie.kogito.addons.quarkus.k8s.KubeDiscoveryConfigSourceInterceptor.getValue(KubeDiscoveryConfigSourceInterceptor.java:50)
      	at io.smallrye.config.SmallRyeConfigSourceInterceptorContext.proceed(SmallRyeConfigSourceInterceptorContext.java:20)
      	at io.smallrye.config.PropertyNamesConfigSourceInterceptor.getValue(PropertyNamesConfigSourceInterceptor.java:17)
      	at io.smallrye.config.SmallRyeConfigSourceInterceptorContext.proceed(SmallRyeConfigSourceInterceptorContext.java:20)
      	at io.smallrye.config.SmallRyeConfig.getConfigValue(SmallRyeConfig.java:320)
      	at io.smallrye.config.SmallRyeConfig.getValue(SmallRyeConfig.java:226)
      	at io.smallrye.config.SmallRyeConfig.getOptionalValue(SmallRyeConfig.java:337)
      	at io.smallrye.reactive.messaging.providers.impl.ConnectorConfig.getOptionalValue(ConnectorConfig.java:119)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorOutgoingConfiguration.getUrl(QuarkusHttpConnectorOutgoingConfiguration.java:27)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorOutgoingConfiguration.validate(QuarkusHttpConnectorOutgoingConfiguration.java:97)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorOutgoingConfiguration.<init>(QuarkusHttpConnectorOutgoingConfiguration.java:16)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnector.getSubscriberBuilder(QuarkusHttpConnector.java:98)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnector_Subclass.getSubscriberBuilder$$superforward1(Unknown Source)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnector_Subclass$$function$$3.apply(Unknown Source)
      	at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
      	at io.quarkus.smallrye.reactivemessaging.runtime.DuplicatedContextConnectorFactoryInterceptor.intercept(DuplicatedContextConnectorFactoryInterceptor.java:39)
      	at io.quarkus.smallrye.reactivemessaging.runtime.DuplicatedContextConnectorFactoryInterceptor_Bean.intercept(Unknown Source)
      	at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42)
      	at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
      	at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:33)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnector_Subclass.getSubscriberBuilder(Unknown Source)
      	at io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnector_ClientProxy.getSubscriberBuilder(Unknown Source)
      	at io.smallrye.reactive.messaging.providers.impl.ConnectorFactories.lambda$wrap$5(ConnectorFactories.java:84)
      	at io.smallrye.reactive.messaging.providers.impl.ConfiguredChannelFactory.createSubscriber(ConfiguredChannelFactory.java:190)
      	at io.smallrye.reactive.messaging.providers.impl.ConfiguredChannelFactory.register(ConfiguredChannelFactory.java:145)
      	at io.smallrye.reactive.messaging.providers.impl.ConfiguredChannelFactory.initialize(ConfiguredChannelFactory.java:106)
      	at io.smallrye.reactive.messaging.providers.impl.ConfiguredChannelFactory_ClientProxy.initialize(Unknown Source)
      	at java.util.Iterator.forEachRemaining(Iterator.java:133)
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
      	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
      	at io.smallrye.reactive.messaging.providers.extension.MediatorManager.start(MediatorManager.java:206)
      	at io.smallrye.reactive.messaging.providers.extension.MediatorManager_ClientProxy.start(Unknown Source)
      	at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle.onApplicationStart(SmallRyeReactiveMessagingLifecycle.java:52)
      	at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle_Observer_onApplicationStart_7f54e4b27c1b49e5e062caa58f1e82797fa01393.notify(Unknown Source)
      	at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:326)
      	at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:308)
      	at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:76)
      	at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:131)
      	at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:100)
      	at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source)
      	at io.quarkus.deployment.steps.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:110)
      	at io.quarkus.runtime.Quarkus.run(Quarkus.java:69)
      	at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
      	at io.quarkus.runtime.Quarkus.run(Quarkus.java:122)
      	at io.quarkus.runner.GeneratedMain.main(Unknown Source)
      
      

      Attachments

        Activity

          People

            rhn-support-fspolti Filippe Spolti
            rhn-support-fspolti Filippe Spolti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: