Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14637

[GSS](7.1.z) HHH-12508 HHH-12520 Web administration console not reporting application status because of NullPointerException when accessing entity-cache resource

XMLWordPrintable

    • CR1
    • Hide
      • download the EAP 7.1
      • apply the CP 1 on top of that
      • start EAP at domain mode
      • deploy the kitchensink-ear.ear artifact from EAP 7.1 Quickstart download
      • From /jboss-eap/7.1.1/domain/servers/server-three/log/server.log
      ~~~
      2018-04-16 11:45:15,815 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 77) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
          ("deployment" => "kitchensink-ear.ear"),
          ("subdeployment" => "kitchensink-ear-ejb.jar"),
          ("subsystem" => "jpa"),
          ("hibernate-persistence-unit" => "kitchensink-ear.ear/kitchensink-ear-ejb.jar#primary"),
          ("entity-cache" => "org.jboss.as.quickstarts.kitchensink_ear.model.Member")
      ]): java.lang.NullPointerException
              at org.hibernate.internal.CacheImpl.getSecondLevelCacheRegion(CacheImpl.java:376)
      ~~~
      
      * From EAP Console Management --> Deployments --> Server Groups --> other-server-group --> kitchensink-ear.ear
      
      ~~~
      kitchensink-ear.ear
      
      There's no server running in server group 'other-server-group'.
      
        No running server
      ~~~
      
      Show
      download the EAP 7.1 apply the CP 1 on top of that start EAP at domain mode deploy the kitchensink-ear.ear artifact from EAP 7.1 Quickstart download From /jboss-eap/7.1.1/domain/servers/server-three/log/server.log ~~~ 2018-04-16 11:45:15,815 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 77) WFLYCTL0013: Operation ("read-attribute") failed - address: ([ ("deployment" => "kitchensink-ear.ear"), ("subdeployment" => "kitchensink-ear-ejb.jar"), ("subsystem" => "jpa"), ("hibernate-persistence-unit" => "kitchensink-ear.ear/kitchensink-ear-ejb.jar#primary"), ("entity-cache" => "org.jboss.as.quickstarts.kitchensink_ear.model.Member") ]): java.lang.NullPointerException at org.hibernate.internal.CacheImpl.getSecondLevelCacheRegion(CacheImpl.java:376) ~~~ * From EAP Console Management --> Deployments --> Server Groups --> other-server-group --> kitchensink-ear.ear ~~~ kitchensink-ear.ear There's no server running in server group 'other-server-group'. No running server ~~~
    • EAP 7.1.3

      The customer is in process of migrating their application servers from EAP 7.0.9 to EAP 7.1.1.

      Application server starts without errors and applications are deployed without problems. However, when accessing web administration console to show application status (deployments --> server groups --> server group --> application) it shows an error "There's no server running in server group".

      2018-04-12 15:03:55,871 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 14) WFLYCTL0013: Operación ("read-attribute") falló - dirección: ([
          ("deployment" => "CCADPF10.ear"),
          ("subdeployment" => "CCADPF10_WAR-0.0.1-SNAPSHOT.war"),
          ("subsystem" => "jpa"),
          ("hibernate-persistence-unit" => "CCADPF10.ear/CCADPF10_WAR-0.0.1-SNAPSHOT.war#CCADPF10_JPA"),
          ("entity-cache" => "es.ccasa.ccad.model.Acceso")
      ]): java.lang.NullPointerException
      	at org.hibernate.internal.CacheImpl.getSecondLevelCacheRegion(CacheImpl.java:376)
      	at org.hibernate.internal.SessionFactoryImpl.getSecondLevelCacheRegion(SessionFactoryImpl.java:1171)
      	at org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics(ConcurrentStatisticsImpl.java:334)
      	at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics.getStatistics(HibernateEntityCacheStatistics.java:94)
      	at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics$4.invoke(HibernateEntityCacheStatistics.java:126)
      	at org.jboss.as.jpa.hibernate5.management.HibernateAbstractStatistics.getValue(HibernateAbstractStatistics.java:99)
      	at org.jboss.as.jpa.management.ManagementResourceDefinition$1.handle(ManagementResourceDefinition.java:130)
      	at org.jboss.as.jpa.management.ManagementResourceDefinition$AbstractMetricsHandler.executeRuntimeStep(ManagementResourceDefinition.java:268)
      	at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:59)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1402)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:418)
      	at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      	at org.jboss.as.controller.ModelControllerImpl.dt_access$1285(ModelControllerImpl.java)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      

      Error in the logs seems to imply there's a problem when accessing the second level cache. However, the customer applications are not configured to use a second level cache in JPA.

            hpehl@redhat.com Harald Pehl
            rhn-support-wqueiroz Wagner Queiroz
            Jiří Bílek Jiří Bílek (Inactive)
            Jiří Bílek Jiří Bílek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: