|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
monitor xml failedd to import(Urgent) |
« View previous topic :: View next topic » |
Author |
Message
|
kaki |
Posted: Fri May 05, 2006 5:51 am Post subject: monitor xml failedd to import(Urgent) |
|
|
Newbie
Joined: 04 May 2006 Posts: 5
|
Hi all,
I am getting the following error while i am importing the xml in to monitor.
Error due to: java.rmi.RemoteException:; nested exception is: org.jdom.IllegalNameException: The name "Processes" is not legal for JDOM/XML elements: Element names cannot contain colons.
Any one please help me to sort out this issue.
Environment: woorkflow 3.6,
monitor: 4.2.4,fixpack 3
os:AIX 5.
Thanks. |
|
Back to top |
|
 |
awouda |
Posted: Mon May 29, 2006 4:18 am Post subject: |
|
|
Newbie
Joined: 29 May 2006 Posts: 1
|
Hi,
did you find a solution for this problem?
We encountered the exact same error message for an Element wich name is defined as a static final String (with of course no colon in it), and still the error message...
Our environment is somewhat different:
Websphere Application server 5.1
Windows 2000 / Windows 2003
Websphere MQ series.
We have the following situation:
The piece of code:
Code: |
private static final String ROOT_ELEMENT_NAME = "HGRQ";
......
org.jdom.Element rootElement = new Element(ROOT_ELEMENT_NAME);
org.jdom.Document doc = new Document(rootElement);
|
The implementation from Jdom:
Code: |
public Element(String name)
{
this(name, ((Namespace) (null)));
}
public Element(String name, Namespace namespace)
{
setName(name);
setNamespace(namespace);
}
public Element setName(String name)
{
String reason;
if((reason = Verifier.checkElementName(name)) != null)
{
throw new IllegalNameException(name, "element", reason);
} else
{
this.name = name;
return this;
}
} |
The Verifier code from Jdom:
Code: |
public static final String checkElementName(String name)
{
String reason;
if((reason = checkXMLName(name)) != null)
return reason;
if(name.indexOf(":") != -1)
return "Element names cannot contain colons";
else
return null;
} |
The error:
Code: |
The name "HGRQ" is not legal for JDOM/XML elements: Element names cannot contain colons |
The stacktrace:
Code: |
org.jdom.IllegalNameException: The name "HGRQ" is not legal for JDOM/XML elements: Element names cannot contain colons.
at org.jdom.Element.setName(Element.java(Inlined Compiled Code))
at org.jdom.Element.<init>(Element.java(Inlined Compiled Code))
at org.jdom.Element.<init>(Element.java(Inlined Compiled Code))
at nl.spaarbeleg.connection.mq.MQMessageDefinitionABA.<init>(MQMessageDefinitionABA.java(Inlined Compiled Code))
|
We we're tinking of some codepage problem but shouldn't there be a colon in the error message like
Code: |
The name "HG:Q" is not legal etc. etc.
|
Could it be some JVM bug or something? I.e. the jvm points to an address where a colon is in the string?
The thing is, our application is deployed, test scripts are run and several XML messages are build, a couple of 100. And then at some point the XML is not build correctly anymore because of the error "colon-issue".
[/code] |
|
Back to top |
|
 |
kaki |
Posted: Thu Jun 08, 2006 11:05 am Post subject: element contains Colons(:) |
|
|
Newbie
Joined: 04 May 2006 Posts: 5
|
we solved the issue.
The problem is with JVM only. you can fix the problem with JVM 1.4.2
Thanks. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|