[jboss-jira] [JBoss JIRA] (AS7-4441) JPA hibernate.cache.region_prefix property fails JConsole to connect to JBoss
Osten Forshed (JIRA)
jira-events at lists.jboss.org
Tue Apr 10 07:26:47 EDT 2012
Osten Forshed created AS7-4441:
----------------------------------
Summary: 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
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
More information about the jboss-jira
mailing list