Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10260

NullPointerException when read deployment with jpa

XMLWordPrintable

      There is a bug when reading deployment information with runtime and recursive.

      Looks like this is a regression from an older bug WFLY-1753

      /host=master/server=server-three/deployment=kitchensink.war/subsystem=jpa:read-resource(include-runtime,recursive)
      
      [Server:server-three] 12:16:11,551 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 75) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
      [Server:server-three]     ("deployment" => "kitchensink.war"),
      [Server:server-three]     ("subsystem" => "jpa"),
      [Server:server-three]     ("hibernate-persistence-unit" => "kitchensink.war#primary"),
      [Server:server-three]     ("entity-cache" => "org.jboss.as.quickstarts.kitchensink.model.Member")
      [Server:server-three] ]): java.lang.NullPointerException
      [Server:server-three]   at org.hibernate.internal.CacheImpl.getSecondLevelCacheRegion(CacheImpl.java:376)
      [Server:server-three]   at org.hibernate.internal.SessionFactoryImpl.getSecondLevelCacheRegion(SessionFactoryImpl.java:1171)
      [Server:server-three]   at org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics(ConcurrentStatisticsImpl.java:334)
      [Server:server-three]   at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics.getStatistics(HibernateEntityCacheStatistics.java:94)
      [Server:server-three]   at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics$4.invoke(HibernateEntityCacheStatistics.java:126)
      [Server:server-three]   at org.jboss.as.jpa.hibernate5.management.HibernateAbstractStatistics.getValue(HibernateAbstractStatistics.java:99)
      [Server:server-three]   at org.jboss.as.jpa.management.ManagementResourceDefinition$1.handle(ManagementResourceDefinition.java:130)
      [Server:server-three]   at org.jboss.as.jpa.management.ManagementResourceDefinition$AbstractMetricsHandler.executeRuntimeStep(ManagementResourceDefinition.java:268)
      [Server:server-three]   at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:59)
      [Server:server-three]   at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
      [Server:server-three]   at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
      [Server:server-three]   at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
      [Server:server-three]   at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
      [Server:server-three]   at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
      [Server:server-three]   at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      [Server:server-three]   at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      [Server:server-three]   at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      [Server:server-three]   at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler.internalExecute(TransactionalProtocolOperationHandler.java:249)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler.doExecute(TransactionalProtocolOperationHandler.java:190)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:143)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:139)
      [Server:server-three]   at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      [Server:server-three]   at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      [Server:server-three]   at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:162)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:158)
      [Server:server-three]   at java.security.AccessController.doPrivileged(Native Method)
      [Server:server-three]   at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHandler.java:158)
      [Server:server-three]   at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      [Server:server-three]   at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      [Server:server-three]   at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      [Server:server-three]   at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      [Server:server-three]   at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      [Server:server-three]   at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
      [Server:server-three]   at java.lang.Thread.run(Thread.java:748)
      [Server:server-three]   at org.jboss.threads.JBossThread.run(JBossThread.java:485)
      
      

            gbadner@redhat.com Gail Badner (Inactive)
            cmiranda@redhat.com Claudio Miranda
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: