The following comment has been added to this issue:

     Author: Michael Glavassevich
    Created: Sat, 12 Jun 2004 10:00 AM
       Body:
This sounds like a bug in the JRE. The javadocs for java.net.URL.openConnection() [1] 
and java.net.URLConnection.getInputStream() [2] state that these methods return a 
URLConnection and an InputStream (respectively) or throw an IOException. They don't 
give a conditions as to when their return values are permitted to be null.

[1] http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html#openConnection()
[2] 
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html#getInputStream()
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/XERCESJ-975?page=comments#action_36063

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-975

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-975
    Summary: NPE while trying to use Xerces 2.6.2 with Struts 1.1
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Xerces2-J
 Components: 
             Other
   Versions:
             2.6.2

   Assignee: 
   Reporter: Alex Gurevich

    Created: Wed, 2 Jun 2004 6:44 AM
    Updated: Sat, 12 Jun 2004 10:00 AM
Environment: WSAD 5.1, Win2K.

Description:
I'm experiencing NPE while trying to run Struts 1.1 test project with Xerces 2.6.2. 
When I create simple Struts project everything works OK, but when I add xerces jars to 
EAR and make them be used, I'm getting following exception:
[16:31:27:879 IDT 02/06/04] 4e1b1b18 WebGroup      E SRVE0020E: [Servlet 
Error]-[action]: Failed to load servlet: java.lang.NullPointerException
        at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown 
Source)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
        at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1567)
        at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)

The call to parse(InputSource) fails with NPE. 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to