Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2939

Infinispan client - NPE during cache configuration

XMLWordPrintable

    • Hide
      git clone git@github.com:fedinskiy/reproducer.git -b feature/inifinispan-native
      mvn clean install -Pnative -Dquarkus.platform.version=2.15.3.Final  #version 2.13.1.Final also affected 
      target/infinispan-1.0.0-SNAPSHOT-runner 
      Show
      git clone git@github.com:fedinskiy/reproducer.git -b feature/inifinispan- native mvn clean install -Pnative -Dquarkus.platform.version=2.15.3.Final #version 2.13.1.Final also affected target/infinispan-1.0.0-SNAPSHOT-runner
    • Hide
      == Infinispan client: Null Pointer Exception during cache configuration in native mode

      Configuring the Infinispan client's cache with `application.properties` results in a Null Pointer Exception (NPE) when running the application in native mode. This issue is similar to the original issue described here: https://github.com/quarkusio/quarkus/issues/29592.

      Although the application should launch successfully in native mode, it fails to start and logs an error message similar to the following example:
      ```
      2023-01-11 10:42:26,409 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.NullPointerException
      ```

      This issue is likely due to an incomplete or incorrect cache configuration, causing the application to fail during initialization.

      Workaround: There is no known workaround at the time of this release. Users encountering this issue should follow updates on the original GitHub issue for possible solutions or fixes in future releases.
      Show
      == Infinispan client: Null Pointer Exception during cache configuration in native mode Configuring the Infinispan client's cache with `application.properties` results in a Null Pointer Exception (NPE) when running the application in native mode. This issue is similar to the original issue described here: https://github.com/quarkusio/quarkus/issues/29592 . Although the application should launch successfully in native mode, it fails to start and logs an error message similar to the following example: ``` 2023-01-11 10:42:26,409 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.NullPointerException ``` This issue is likely due to an incomplete or incorrect cache configuration, causing the application to fail during initialization. Workaround: There is no known workaround at the time of this release. Users encountering this issue should follow updates on the original GitHub issue for possible solutions or fixes in future releases.
    • ---

      I am trying to add cache configuration via application.properties (scenario very similar to this one[1]). When I build and run resulting application in native mode it fails with the same error as in original issue.

      [1]https://github.com/quarkusio/quarkus/issues/29592

      Expected behavior

      The application should start in native mode

      Actual behavior

      2023-01-11 10:42:26,409 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.NullPointerException
      	at io.quarkus.infinispan.client.runtime.InfinispanClientProducer.builderFromProperties(InfinispanClientProducer.java:239)
      	at io.quarkus.infinispan.client.runtime.InfinispanClientProducer.initialize(InfinispanClientProducer.java:66)
      	at io.quarkus.infinispan.client.runtime.InfinispanClientProducer.remoteCacheManager(InfinispanClientProducer.java:367)
      	at io.quarkus.infinispan.client.runtime.InfinispanClientProducer_ProducerMethod_remoteCacheManager_b4943dc6282b3982ac4ff16d7d4370041f920ead_Bean.create(Unknown Source)
      	at io.quarkus.infinispan.client.runtime.InfinispanClientProducer_ProducerMethod_remoteCacheManager_b4943dc6282b3982ac4ff16d7d4370041f920ead_Bean.get(Unknown Source)
      	at io.quarkus.infinispan.client.runtime.InfinispanClientProducer_ProducerMethod_remoteCacheManager_b4943dc6282b3982ac4ff16d7d4370041f920ead_Bean.get(Unknown Source)
      	at io.quarkus.ts.infinispan.client.InfinispanClientApp_Bean.create(Unknown Source)
      	at io.quarkus.ts.infinispan.client.InfinispanClientApp_Bean.create(Unknown Source)
      	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:113)
      	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:37)
      	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:34)
      	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
      	at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
      	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:34)
      	at io.quarkus.ts.infinispan.client.InfinispanClientApp_Observer_onStart_e42ebeb6c77764031cb851cfc650b8cff43d9f5b.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) 

       

            karestig@redhat.com Katia Aresti
            rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
            Michal Jurc Michal Jurc
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: