[jboss-cvs] JBossAS SVN: r63746 - trunk/ejb3/src/main/org/jboss/ejb3/clientmodule.
Adrian
abrock at redhat.com
Fri Jun 29 11:02:09 EDT 2007
The real fix is to enclose that part of the object name in quotes,
e.g.
ObjectName name = new ObjectName(domain:kernel='" + scopedKernelName +
"'");
That way you avoid all possible malformed elements, not just :
On Fri, 2007-06-29 at 10:48 -0400, jboss-cvs-commits at lists.jboss.org
wrote:
> Author: thomas.diesler at jboss.com
> Date: 2007-06-29 10:48:22 -0400 (Fri, 29 Jun 2007)
> New Revision: 63746
>
> Modified:
> trunk/ejb3/src/main/org/jboss/ejb3/clientmodule/ClientENCInjectionContainer.java
> Log:
> MalformedObjectNameException: Invalid character ':' in value part of property
>
> Modified: trunk/ejb3/src/main/org/jboss/ejb3/clientmodule/ClientENCInjectionContainer.java
> ===================================================================
> --- trunk/ejb3/src/main/org/jboss/ejb3/clientmodule/ClientENCInjectionContainer.java 2007-06-29 13:46:32 UTC (rev 63745)
> +++ trunk/ejb3/src/main/org/jboss/ejb3/clientmodule/ClientENCInjectionContainer.java 2007-06-29 14:48:22 UTC (rev 63746)
> @@ -166,7 +166,7 @@
> {
> String scopedKernelName = "";
> if (ear != null) scopedKernelName += ",ear=" + ear.getShortName();
> - scopedKernelName += ",jar=" + unit.getName();
> + scopedKernelName += ",jar=" + unit.getName().replace(':', '/');
> return scopedKernelName;
> }
>
>
> _______________________________________________
> jboss-cvs-commits mailing list
> jboss-cvs-commits at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-cvs-commits
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Chief Scientist
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
More information about the jboss-cvs-commits
mailing list