Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4599

Session Externalization - NPE NearCacheService.createNearCache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • RHDG 8.2 CR2
    • None
    • False
    • False
    • Undefined
    • Hide

      Set maxActiveSessions to 0.

      e.g.
      <Manager className="org.wildfly.clustering.tomcat.hotrod.HotRodManager" maxActiveSessions="0" ... />

      Show
      Set maxActiveSessions to 0. e.g. <Manager className="org.wildfly.clustering.tomcat.hotrod.HotRodManager" maxActiveSessions="0" ... />
    • Hide

      Download jws-5.4.0-application-server.zip, redhat-datagrid-8.2.0.CR2-server.zip and redhat-datagrid-8.2.0.CR2-tomcat9.0-session-client.zip

      Git clone https://github.com/infinispan/jdg-functional-tests/

      Put run-test.sh and settings_mead_jdg.xml into jdg-functional-tests

      Put the downloaded files into SERVERS_HOME ( edit the path in run-test.sh )

      Run run-test.sh

      Show
      Download jws-5.4.0-application-server.zip, redhat-datagrid-8.2.0.CR2-server.zip and redhat-datagrid-8.2.0.CR2-tomcat9.0-session-client.zip Git clone https://github.com/infinispan/jdg-functional-tests/ Put run-test.sh and settings_mead_jdg.xml into jdg-functional-tests Put the downloaded files into SERVERS_HOME ( edit the path in run-test.sh ) Run run-test.sh

      18-May-2021 12:47:51.613 INFO [HotRod-client-async-pool-1-1] org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.updateTopologyInfo ISPN004014: New server added(127.0.0.1:11222), adding to the pool.
      18-May-2021 12:47:51.615 INFO [HotRod-client-async-pool-1-1] org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.updateTopologyInfo ISPN004014: New server added(127.0.0.1:11322), adding to the pool.
      18-May-2021 12:47:51.646 SEVERE [http-nio-8280-exec-2] org.apache.catalina.core.StandardContext.startInternal The session manager failed to start
              org.apache.catalina.LifecycleException: Failed to start component [HotRodManager[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/jws-session-non-dist]]]
                      at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
                      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
                      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156)
                      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
                      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
                      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
                      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
                      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
                      at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1642)
                      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288)
                      at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
                      at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
                      at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1593)
                      at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849)
                      at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:454)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:663)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:666)
                      at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:348)
                      at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:53)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
                      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
                      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
                      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
                      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
                      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
                      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                      at java.base/java.lang.Thread.run(Thread.java:834)
              Caused by: java.lang.NullPointerException
                      at org.infinispan.client.hotrod.near.NearCacheService.createNearCache(NearCacheService.java:111)
                      at org.infinispan.client.hotrod.near.NearCacheService.start(NearCacheService.java:59)
                      at org.infinispan.client.hotrod.impl.InvalidatedNearRemoteCache.start(InvalidatedNearRemoteCache.java:184)
                      at org.infinispan.client.hotrod.RemoteCacheManager.startRemoteCache(RemoteCacheManager.java:609)
                      at org.infinispan.client.hotrod.RemoteCacheManager.createRemoteCache(RemoteCacheManager.java:564)
                      at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:317)
                      at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:281)
                      at org.infinispan.client.hotrod.impl.RemoteCacheManagerAdminImpl.getOrCreateCache(RemoteCacheManagerAdminImpl.java:74)
                      at org.wildfly.clustering.tomcat.hotrod.HotRodManager$1.getCache(HotRodManager.java:202)
                      at org.wildfly.clustering.web.hotrod.session.HotRodSessionMetaDataFactory.<init>(HotRodSessionMetaDataFactory.java:57)
                      at org.wildfly.clustering.web.hotrod.session.HotRodSessionManagerFactory.<init>(HotRodSessionManagerFactory.java:65)
                      at org.wildfly.clustering.tomcat.hotrod.HotRodManager.startInternal(HotRodManager.java:222)
                      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                      ... 44 more
      

        1. my.war
          12 kB
          Diego Lovison
        2. org.infinispan.test.integration.thirdparty.embedded.InfinispanCoreIT-output.txt
          35 kB
          Diego Lovison
        3. run-test.sh
          1 kB
          Diego Lovison
        4. session_externalization.xml
          6 kB
          Diego Lovison
        5. session-ext.xml
          3 kB
          Diego Lovison
        6. settings_mead_jdg.xml
          4 kB
          Diego Lovison

              pferraro@redhat.com Paul Ferraro
              dlovison@redhat.com Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: