Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error in building: no protocol

843834Apr 3 2002 — edited Apr 4 2002
I am trying to build an XML Document from the String I receive via a socket.
when I attempt to build the document - I get an error saying, "no protocol"??

I am able to build an XML Document, from a File with the same text.
The text String is quite simple <log><eventMsg>John Wheels</log></eventMsg>

here is the dump I get:

error with xml test org.jdom.JDOMException: Error in building: no protocol: John
Wheels<log><eventMsg>John Wheels</eventMsg></log>
org.jdom.JDOMException: Error in building: no protocol: John Wheels<log><eventMs
g>John Wheels</eventMsg></log>
at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
at com.boeing.connexion.controlpanel.systeminterface.net.CommServer.broa
dcastMessage(CommServer.java:162)
at com.boeing.connexion.controlpanel.systeminterface.net.socketMan$socke
tThread.run(socketMan.java:54)
Root cause: java.net.MalformedURLException: no protocol: John Wheels<log><eventM
sg>John Wheels</eventMsg></log>
at java.net.URL.<init>(URL.java:473)
at java.net.URL.<init>(URL.java:376)
at java.net.URL.<init>(URL.java:330)
at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.
java:740)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntity
Manager.java:685)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocum
entScannerImpl.java:252)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:499)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1157)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
at com.boeing.connexion.controlpanel.systeminterface.net.CommServer.broa
dcastMessage(CommServer.java:162)
at com.boeing.connexion.controlpanel.systeminterface.net.socketMan$socke
tThread.run(socketMan.java:54)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2002
Added on Apr 3 2002
1 comment
863 views