Hi All,

This is a little off topic, but It's a problem I'm having in one of the
action classes of my model 2 framework.

I'm using a URLConnection to connect to a remote server and retrieve an XML
document as an InputStream. I then construct an InputSource from the
InputStream, and try to use SAXParser.parse(InputSource,HandlerBase) to
parse the XML.

However, I'm getting the following runtime exception:

java.io.IOException: Push back buffer is full
        at java.io.PushbackInputStream.unread(PushbackInputStream.java:211)
        at com.sun.xml.parser.XmlReader.useEncodingDecl(XmlReader.java:307)
        at com.sun.xml.parser.XmlReader.(XmlReader.java:240)
        at com.sun.xml.parser.XmlReader.createReader(XmlReader.java:86)
        at com.sun.xml.parser.InputEntity.init(InputEntity.java:147)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:462)
        at com.sun.xml.parser.Parser.parse(Parser.java:283)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at
mbdd.ActionClass.VistaBrowserAction.perform(VistaBrowserAction.java:85)
        at
mbdd.controller.ControllerServlet.doPost(ControllerServlet.java:132)
        at
mbdd.controller.ControllerServlet.doGet(ControllerServlet.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
        at java.lang.Thread.run(Thread.java:479)

Has anyone seen this problem before?

I'm using Tomcat 3.1 and JAXP1.0 with the default parser.
Also, I've tested the HandlerBase on a local XML file with no problems.

Thanks,
  Bill

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to