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

NPE when reading hibernate cache statistics

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • JPA / Hibernate
    • None

      Using the kitchensink jsp example:

      [standalone@localhost:9990 /] /deployment=*/subsystem=jpa:read-resource(recursive=true,include-runtime=true)
      {
          "outcome" => "failed",
          "result" => [{
              "address" => [
                  ("deployment" => "jboss-as-kitchensink-jsp.war"),
                  ("subsystem" => "jpa")
              ],
              "outcome" => "failed",
              "rolled-back" => true
          }],
          "rolled-back" => true
      }
      
      

      reveals (server.log):

      13:31:14,221 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 7) JBAS014612: Operation ("read-attribute") failed - address: ([
          ("deployment" => "jboss-as-kitchensink-jsp.war"),
          ("subsystem" => "jpa"),
          ("hibernate-persistence-unit" => "jboss-as-kitchensink-jsp.war#primary"),
          ("entity-cache" => "org.jboss.as.quickstarts.kitchensinkjsp.model.Member")
      ]): java.lang.NullPointerException
      	at org.jboss.as.jpa.hibernate4.management.HibernateEntityCacheStatistics$6.invoke(HibernateEntityCacheStatistics.java:136)
      	at org.jboss.as.jpa.hibernate4.management.HibernateAbstractStatistics.getValue(HibernateAbstractStatistics.java:99)
      	at org.jboss.as.jpa.management.ManagementResourceDefinition$1.handle(ManagementResourceDefinition.java:118)
      	at org.jboss.as.jpa.management.ManagementResourceDefinition$AbstractMetricsHandler.executeRuntimeStep(ManagementResourceDefinition.java:256)
      
      

            smarlow1@redhat.com Scott Marlow
            rhn-support-hbraun Heiko Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: