Details
-
Bug
-
Resolution: Done
-
Critical
-
JBossAS-4.0.2 Final
-
None
-
None
Description
It seems to be an URL encoding problem. I have an MBean who use the persistent mechanism (using the persistent manager) org.jboss.mx.persistence.DelegatingPersistenceManager.
After restarting JBoss, it complains that it cannot find the server/default/data/xmbean-attrs/IBL%253Aservice%253DIBLConfiguration.xml.
Looking in the directory I have a file called: server/default/data/xmbean-attrs/IBL%3Aservice%3DIBLConfiguration.xml.
The URL is different, that explains why it cannot load the configuration. My MBean failed to deploy.
Here is the stack trace:
Caused by: MBeanException: preRegister() failed: [ObjectName='IBL:service=IBLConfiguration', Class=com.mycompany.service.common.mbean.Configuration (com.mycompany.service.common.mbean.Configuration@1996bbd)] Cause: MBeanException: null Cause: java.io.FileNotFoundException: /usr/local/jboss-4.0.2/server/default/data/xmbean-attrs/IBL%253Aservice%253DIBLConfiguration.xml
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:707)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:197)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
... 95 more
Caused by: MBeanException: null Cause: java.io.FileNotFoundException: /usr/local/jboss-4.0.2/server/default/data/xmbean-attrs/IBL%253Aservice%253DIBLConfiguration.xml
at org.jboss.mx.persistence.DelegatingPersistenceManager.load(DelegatingPersistenceManager.java:89)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.load(ModelMBeanInvoker.java:395)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:507)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:470)
at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:639)
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:691)
Attachments
Issue Links
- is blocked by
-
JBAS-1988 Rafactor the XMLAttributePersistenceManager to avoid xml parser issues.
- Closed