MalformedObjectNameException and jndi-local-name
re92 Aug 25, 2011 5:12 PMI'm running JBoss 4.2.3 with Java 1.5.0_18, and have JBPM 3.3.1 deployed. When I log in to my JBoss console (http://localhost:8080/web-console), I see the exception at the bottom of this post, perhaps from the navigation applet on the left hand side.
When I set a breakpoint for the exception, I can see that the ObjectName.construct method is getting called with this string:
jboss.j2ee:service=EJB,jndiName=java:ejb/CommandServiceBean
The default jboss.xml file that JBPM comes with has this snippet:
<local-jndi-name>java:ejb/CommandServiceBean</local-jndi-name>
If I modify that to
<local-jndi-name>ejb/CommandServiceBean</local-jndi-name>
then the error goes away. I'm not too familiar with JNDI naming format.
Does the exception point to some name format conflict between JBoss and JBPM? Is it a benign issue I can ignore? Any suggestions on how I can fix it?
Thanks!
Raj
16:25:26,992 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 2m:2s:954ms
16:26:24,836 ERROR [STDERR] javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
16:26:24,836 ERROR [STDERR] at javax.management.ObjectName.construct(ObjectName.java:529)
16:26:24,836 ERROR [STDERR] at javax.management.ObjectName.<init>(ObjectName.java:1314)
16:26:24,836 ERROR [STDERR] at org.jboss.console.plugins.EJBModuleLister.createContainerName(EJBModuleLister.java:133)
16:26:24,836 ERROR [STDERR] at org.jboss.console.plugins.EJBModuleLister.createBeans(EJBModuleLister.java:79)
16:26:24,836 ERROR [STDERR] at org.jboss.console.plugins.EJBModuleLister.getTreeForResource(EJBModuleLister.java:159)
16:26:24,836 ERROR [STDERR] at org.jboss.console.plugins.helpers.AbstractPluginWrapper.getSubTreeForResource(AbstractPluginWrapper.java:215)
16:26:24,836 ERROR [STDERR] at org.jboss.console.manager.PluginManager.getTreesForResource(PluginManager.java:407)
16:26:24,836 ERROR [STDERR] at org.jboss.console.manager.PluginManager.getTreeForProfile(PluginManager.java:207)
16:26:24,836 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:26:24,836 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
16:26:24,836 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:26:24,836 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
16:26:24,836 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
16:26:24,836 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
16:26:24,836 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
16:26:24,836 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
16:26:24,836 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
16:26:24,836 ERROR [STDERR] at org.jboss.console.remote.InvokerServlet.processRequest(InvokerServlet.java:105)
16:26:24,836 ERROR [STDERR] at org.jboss.console.remote.InvokerServlet.doPost(InvokerServlet.java:148)
16:26:24,836 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
16:26:24,836 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
16:26:24,836 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
16:26:24,836 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
16:26:24,836 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
16:26:24,836 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
16:26:24,836 ERROR [STDERR] at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
16:26:24,836 ERROR [STDERR] at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
16:26:24,836 ERROR [STDERR] at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
16:26:24,836 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)