Hello
Can anyone please help me on the following problem?
I have a servlet which gets an XML document from a certain URL. When
trying to parse the XML it receives, the following error occurs:
Error occurred obtaining Document 'http://.......':
org.xml.sax.SAXParseException: The markup declarations contained or
pointed to by the document type declaration must be well-formed.
at org.apache.xerces.parsers.DOMParser.parse(DOMParse r.java:235)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(D ocumentBuilderImpl.java:201)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBu ilder.java:170)
at com.swisscom.bej.util.XMLFromURL.getDocument(XMLFr omURL.java:242)
at com.swisscom.bej.apps.adsl.ESQ.<init>(ESQ.java:187 )
at com.swisscom.bej.apps.adsl.AdslServlet.doGet(AdslS ervlet.java:212)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:82)
at com.caucho.server.http.Invocation.service(Invocati on.java:288)
at com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:340)
at com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:270)
at com.caucho.server.TcpConnection.run(TcpConnection. java:140)
at java.lang.Thread.run(Thread.java:484)
I've checked the DTD, it's both, well-formed and valid. The other
strange thing is, that this error sometimes occurs and sometimes not.
I tried to upgrade to the newest Xerces Version, which did not solve
my problem, it began to throw Null Pointers instead (and i've just
replaced the .jar file and restarted resin...).
Thanks a lot for your help.
Regards,
Patrick
Can anyone please help me on the following problem?
I have a servlet which gets an XML document from a certain URL. When
trying to parse the XML it receives, the following error occurs:
Error occurred obtaining Document 'http://.......':
org.xml.sax.SAXParseException: The markup declarations contained or
pointed to by the document type declaration must be well-formed.
at org.apache.xerces.parsers.DOMParser.parse(DOMParse r.java:235)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(D ocumentBuilderImpl.java:201)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBu ilder.java:170)
at com.swisscom.bej.util.XMLFromURL.getDocument(XMLFr omURL.java:242)
at com.swisscom.bej.apps.adsl.ESQ.<init>(ESQ.java:187 )
at com.swisscom.bej.apps.adsl.AdslServlet.doGet(AdslS ervlet.java:212)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:82)
at com.caucho.server.http.Invocation.service(Invocati on.java:288)
at com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:340)
at com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:270)
at com.caucho.server.TcpConnection.run(TcpConnection. java:140)
at java.lang.Thread.run(Thread.java:484)
I've checked the DTD, it's both, well-formed and valid. The other
strange thing is, that this error sometimes occurs and sometimes not.
I tried to upgrade to the newest Xerces Version, which did not solve
my problem, it began to throw Null Pointers instead (and i've just
replaced the .jar file and restarted resin...).
Thanks a lot for your help.
Regards,
Patrick
Comment