[
https://issues.jboss.org/browse/AS7-4441?page=com.atlassian.jira.plugin.s...
]
Anna Manukyan commented on AS7-4441:
------------------------------------
Hi,
I'm having the same issue with the following configuration and would like to know,
whether this case is also fixed or no:
I'm using own infinispan configuration (not AS7 infinispan subsystem) for Hibernate
2LC.
My Infinispan configuration is:
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:infinispan:config:5.1"
xsi:schemaLocation="urn:infinispan:config:5.1
http://www.infinispan.org/schemas/infinispan-config-5.1.xsd">
<global>
<globalJmxStatistics enabled="true" jmxDomain="infinispan"
allowDuplicateDomains="true" />
</global>
.......
</infinispan>
My persistence.xml file contains the following line:
<property name="hibernate.cache.region_prefix" value="test"/> or
<property name="hibernate.cache.region_prefix" value=""/>
Following happens: when the server is started and I'm deploying the real app using
maven jbossas plugin, the following exception occurs:
http://pastie.org/4317161
The thing is that, if I'm starting already deployed server (with the config described
above), the exception doesn't occur and the app is accessible via browser. If I'm
redeploying app with jboss-as-maven-plugin, then the exception again occurs and the app is
not accessible any more.
The removal of <globalJmxStatistics /> tag fixes the problem.
My Environment: Jboss AS 7.1.1, JDK 1.7.0_04
Thanks in advance.
Regards,
Anna.
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: Scott Marlow
Priority: Minor
Fix For: 7.1.2.Final (EAP), 7.2.0.Alpha1
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