<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
MalformedObjectNameException and jndi-local-name
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/re92">re92</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/623036#623036">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span>I'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 (</span><a class="jive-link-external-small" href="http://localhost:8080/web-console" target="_blank">http://localhost:8080/web-console</a><span>), I see the exception at the bottom of this post, perhaps from the navigation applet on the left hand side.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>When I set a breakpoint for the exception, I can see that the ObjectName.construct method is getting called with this string: </p><p>jboss.j2ee:service=EJB,jndiName=java:ejb/CommandServiceBean</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The default jboss.xml file that JBPM comes with has this snippet:</p><p>{code:xml}</p><p>      <local-jndi-name>java:ejb/CommandServiceBean</local-jndi-name></p><p>{code:xml}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If I modify that to </p><p>{code:xml}</p><p>      <local-jndi-name>ejb/CommandServiceBean</local-jndi-name></p><p>{code:xml}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>then the error goes away. I'm not too familiar with JNDI naming format. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks!</p><p>Raj</p><p>{noformat}</p><p>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</p><p>16:26:24,836 ERROR [STDERR] javax.management.MalformedObjectNameException: Invalid character ':' in value part of property</p><p>16:26:24,836 ERROR [STDERR]     at javax.management.ObjectName.construct(ObjectName.java:529)</p><p>16:26:24,836 ERROR [STDERR]     at javax.management.ObjectName.<init>(ObjectName.java:1314)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.plugins.EJBModuleLister.createContainerName(EJBModuleLister.java:133)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.plugins.EJBModuleLister.createBeans(EJBModuleLister.java:79)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.plugins.EJBModuleLister.getTreeForResource(EJBModuleLister.java:159)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.plugins.helpers.AbstractPluginWrapper.getSubTreeForResource(AbstractPluginWrapper.java:215)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.manager.PluginManager.getTreesForResource(PluginManager.java:407)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.manager.PluginManager.getTreeForProfile(PluginManager.java:207)</p><p>16:26:24,836 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>16:26:24,836 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>16:26:24,836 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>16:26:24,836 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.remote.InvokerServlet.processRequest(InvokerServlet.java:105)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.console.remote.InvokerServlet.doPost(InvokerServlet.java:148)</p><p>16:26:24,836 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)</p><p>16:26:24,836 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>16:26:24,836 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)</p><p>16:26:24,836 ERROR [STDERR]     at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)</p><p>16:26:24,836 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)</p><p>{noformat}</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/623036#623036">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>