-
Bug
-
Resolution: Done
-
Major
-
14.0.0.Final
-
None
Currently, the following "Unknown entity" error shows up in the server console:
2018-09-04 12:01:32,740 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "JpaStatisticsTestCase.jar" (runtime-name : "JpaStatisticsTestCase.jar") 2018-09-04 12:01:32,810 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("read-attribute") failed - address: ([ ("deployment" => "JpaStatisticsTestCase.jar"), ("subsystem" => "jpa"), ("hibernate-persistence-unit" => "JpaStatisticsTestCase.jar#mypc"), ("entity" => "org.jboss.as.test.integration.jpa.secondlevelcache.Company") ]): org.hibernate.MappingException: Unknown entity: entity-update-count at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:670) at org.hibernate.stat.internal.StatisticsImpl.lambda$getEntityStatistics$0(StatisticsImpl.java:215) at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) at org.hibernate.stat.internal.StatisticsImpl.getEntityStatistics(StatisticsImpl.java:213) at org.hibernate.stat.internal.StatisticsImpl.getEntityStatistics(StatisticsImpl.java:32) at org.jboss.as.jpa.hibernate5.management.HibernateEntityStatistics.getStatistics(HibernateEntityStatistics.java:86) at org.jboss.as.jpa.hibernate5.management.HibernateEntityStatistics.access$000(HibernateEntityStatistics.java:37) at org.jboss.as.jpa.hibernate5.management.HibernateEntityStatistics$5.invoke(HibernateEntityStatistics.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:999) at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743) at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467) at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1411) at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423) at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243) at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:265) at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:231) at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243) at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:240) at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:138) at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:162) at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:158) at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:289) at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:246) at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254) at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225) at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:158) at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70) at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378) at java.lang.Thread.run(Thread.java:748) at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Fix this bug and add test to testsuite for this.
- is cloned by
-
JBEAP-15337 JPA statistics do not show in the management console
- Closed