]
Tom Fennelly commented on JBESB-2318:
-------------------------------------
I tried the fix and it's good. Thanks Kev.
LifecycleController: tries to construct an ObjectName instance using
an invalid character
-----------------------------------------------------------------------------------------
Key: JBESB-2318
URL:
https://jira.jboss.org/jira/browse/JBESB-2318
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.4, 4.4 CP2
Reporter: Tom Fennelly
Assignee: Kevin Conner
Fix For: 4.5, 4.4 CP3
LifecycleController.getObjectName() tries to construc an ObjectName instance using a
string that contains a ":" character, resulting in a
MalformedObjectNameException.
The offending code:
listObjectName = new ObjectName("jboss.esb:" + objectName.toString());
The exception:
[java] +----------------------------------------------------------+
[java] Reading config from
H:\Jboss\ESB\trunk\product\samples\quickstarts\aggregator\inbound_splitter\jbossesb.xml
[java] 15:13:59,218 ERROR [main][LifecycleController]
[java] javax.management.MalformedObjectNameException: Invalid character ':' in
value part of property
[java] at javax.management.ObjectName.construct(ObjectName.java:529)
[java] at javax.management.ObjectName.<init>(ObjectName.java:1304)
[java] at
org.jboss.soa.esb.listeners.lifecycle.LifecycleController.getObjectName(LifecycleController.java:349)
[java] at
org.jboss.soa.esb.listeners.lifecycle.LifecycleController.<init>(LifecycleController.java:82)
[java] at
org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.<init>(AbstractManagedLifecycle.java:115)
[java] at
org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.<init>(AbstractThreadedManagedLifecycle.java:78)
[java] at
org.jboss.soa.esb.listeners.message.MessageAwareListener.<init>(MessageAwareListener.java:105)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
[java] at
org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(LifecycleUtil.java:154)
[java] at
org.jboss.soa.esb.listeners.LifecycleUtil.getListeners(LifecycleUtil.java:75)
[java] at
org.jboss.soa.esb.listeners.config.ConfigurationController.startController(ConfigurationController.java:345)
[java] at
org.jboss.soa.esb.listeners.config.ConfigurationController.startController(ConfigurationController.java:341)
[java] at
org.jboss.soa.esb.listeners.config.ConfigurationController.processConfiguration(ConfigurationController.java:327)
[java] at
org.jboss.soa.esb.listeners.config.ConfigurationController.<init>(ConfigurationController.java:129)
[java] at
org.jboss.soa.esb.listeners.StandAloneBootStrapper.initiateController(StandAloneBootStrapper.java:227)
[java] at
org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(StandAloneBootStrapper.java:155)
[java] at
org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(StandAloneBootStrapper.java:131)
[java] at
org.jboss.soa.esb.listeners.StandAloneBootStrapper.main(StandAloneBootStrapper.java:98)
[java] 15:13:59,296 ERROR [main][LifecycleController]
Looking at the code from ObjectName:
while ((in_index < len) && ((c1 = name_chars[in_index]) !=
','))
switch (c1) {
// ',' considered to be the value separator
case '*' :
case '?' :
case '=' :
case ':' :
case '"' :
case '\n' :
final String ichar = ((c1=='\n')?"\\n":""+c1);
throw new MalformedObjectNameException(
"Invalid character '" + c1 +
"' in value part of property");
default : in_index++;
}
value_length = in_index - value_index;
}
I encountered this running the aggregator quickstart... at step #2 (see readme).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: