[
https://issues.jboss.org/browse/AS7-4441?page=com.atlassian.jira.plugin.s...
]
Scott Marlow commented on AS7-4441:
-----------------------------------
Also, add the user forum post where this issue discussed (if there is one). Why are you
setting the hibernate.cache.region_prefix to an empty string? Internally, EE JPA
container managed applications will have this set automatically (to a unique name that
includes the deployment and persistence unit name). But, that only happens if you
don't specify the hibernate.cache.region_prefix value.
JPA hibernate.cache.region_prefix property fails JConsole to connect
to JBoss
-----------------------------------------------------------------------------
Key: AS7-4441
URL:
https://issues.jboss.org/browse/AS7-4441
Project: Application Server 7
Issue Type: Bug
Components: JMX, JPA / Hibernate, Server
Affects Versions: 7.1.1.Final
Environment: Windows Vista 64 bit, JDK 1.6.0_18
Reporter: Osten Forshed
Assignee: John Bailey
Priority: Minor
If a web app is deployed (standalone) with a persistence.xml containing:
<property name="hibernate.cache.region_prefix" value=""/>
Then it is not possible to connect to the MBean Server with JConsole using instructions
here:
https://community.jboss.org/wiki/UsingJconsoleToConnectToJMXOnAS7
Following stack trace is written to JBoss log:
12:27:03,406 WARN [org.jboss.remotingjmx.protocol.v1.ServerProxy] (pool-5-thread-16)
Unexpected internal error: java.lang.NullPointerException
at
org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:49)
at
org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:55)
at
org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:55)
at
org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:55)
at
org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:55)
at
org.jboss.as.jmx.model.RootResourceIterator.iterate(RootResourceIterator.java:39)
at
org.jboss.as.jmx.model.ModelControllerMBeanHelper.queryNames(ModelControllerMBeanHelper.java:136)
at
org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.queryNames(ModelControllerMBeanServerPlugin.java:124)
at
org.jboss.as.jmx.PluggableMBeanServerImpl.queryNames(PluggableMBeanServerImpl.java:280)
at
org.jboss.remotingjmx.protocol.v1.ServerProxy$QueryNamesHandler.handle(ServerProxy.java:1197)
at
org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_18]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_18]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18]
If property is removed from persistence.xml it is possible to connect using JConsole and
browse the MBeans.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira