You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by xe...@xml.apache.org on 2004/09/22 06:40:38 UTC

[jira] Resolved: (XERCESJ-862) setEntityResolver doesn't set resolver for filter chains of xsls

Message:

   The following issue has been resolved as FIXED.

   Resolver: Michael Glavassevich
       Date: Tue, 21 Sep 2004 9:39 PM

No activity on this report in over 8 months. Given the observations of the reporter it seems highly likely that this is a problem with the XMLFilter implementation and not Xerces, so resolving this report.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-862

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-862
    Summary: setEntityResolver doesn't set resolver for filter chains of xsls
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: Xerces2-J
 Components: 
             SAX
   Versions:
             2.2.1

   Assignee: 
   Reporter: Walt Fitzharris

    Created: Fri, 9 Jan 2004 8:42 PM
    Updated: Tue, 21 Sep 2004 9:39 PM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
If I create an XMLReader in a simple scenario with a contenthandler, it 
respects the entity resolver that I set with setEntityResolver.

Take that same reader and put it at the head of a SAX filter chain: presto! the 
reader ignores the custom entity resolver and tries to find entities in the 
default manner...not good.

All I want to do is configure the Entity Manager (I'm using JAXP) such that it 
will know what resolver to use.  I am making an assumption here that this is a 
bug -- that when a reader is in a filter chain context, that a call to 
setEntityResolver does not end up setting the resolver property for the entity 
manager.

Here's the stack trace I get...the reason the DTD is not found is that it is 
not in the directory where the program is run...the custom resolver is supposed 
to tell the parser where the DTD is...

java.io.FileNotFoundException: X:\ce_xml\xeldm\infra\formatter\Courtcase-V2-
norm.dtd (The system cannot find the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:103)
	at java.io.FileInputStream.<init>(FileInputStream.java:66)
	at sun.net.www.protocol.file.FileURLConnection.connect
(FileURLConnection.java:69)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream
(FileURLConnection.java:156)
	at java.net.URL.openStream(URL.java:960)
	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.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
	at com.lxnx.fab.ce.xeldm.infra.FormatterSAXFilterMain.main
(FormatterSAXFilterMain.java:221)
Exception in thread "main"


---------------------------------------------------------------------
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org