Subjects
Home
VOTE Move XML Commons to Xerces
Commented: (XERCESJ 589) Bug with pattern restriction on long strings
: Xerces J 2 8 1 Release on Wednesday, September 13th
: Xerces J 2 9 0 Release on Wednesday, November 22nd
Commented: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1178) Error getting prefix for an attribute with no n
Updated: (XERCESJ 1244) XMLSchemaValidator does not contribute element 's
Some consideration about the xerces DOM implementation
Updated: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1227) Poor performance / OutOfMemoryError for sequenc
retain exception stack traces
Updated: (XERCESJ 1193) NPE or hang when parsing using the "continue afte
Future of NekoHTML
Commented: (XERCESJ 1203) NPE in XMLDTDProcessor
DOM Level 3 APIs for Xalan J and a new Xalan release (2 7 1)
: xml commons external 1 3 04 Release on Wednesday, November 22nd
Commented: (XERCESJ 1247) Incorrect location information on SAX when usin
XInclude exceptions how to mirror Xerces J functionality into Xerces C++?
First proposal on SoC project "Add support for the StAX (JSR 173) cursor API
: xml commons resolver 1 2 Release on Wednesday, November 22nd
Typo in RangeToken java Please check
Validator features
java lang ClassCastException when adopting Node
using the org apache xerces impl xs identity package
Updated: (XERCESJ 1257) buffer overflow in UTF8Reader for characters out
Problem with ref attributes and schema validation
Updated: (XERCESJ 122) XMLSchemaValidator does not contribute element 's d
Performance problem under load Xerces with Weblogic 9 x
remove ignored memory allocation
Commented: (XERCESJ 1177) SAXXMLStreamReader doesn 't always report namesp
Commented: (XERCESJ 977) Null pointer exception during DOM parsing
Commented: (XERCESJ 1197) Code cleanup for org apache xml serialize
Commented: (XERCESJ 1201) Initial contribution for StAX Event API
Updated: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special c
Commented: (XERCESJ 1199) SAXXMLStreamReader should attempt to register a
Commented: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special
Updated: (XERCESJ 589) Bug with pattern restriction on long strings
StackOverflow
xerces Range unnecessarily not garbage collectable if not detached
Updated: (XERCESJ 1178) Error getting prefix for an attribute with no nam
Bug in xs:redefine
Commented: (XERCESJ 1204) Can not set XMLEntityResolver for LSParser
Updated: (XERCESJ 1253) Prototype for SoC2007 project "Add support for th
Updated: (XERCESJ 1259) Add SteamFilter Function to SoC2007 project "Add
Assigned: (XERCESJ 444) SAXException thrown by EntityResolver is reported
Google Summer of Code 2007
Xerces J and XInclude relative path issue
Assigned: (XERCESJ 206) Stack overflow when using a schema validation
Commented: (XERCESJ 1215) Restrictions involving two levels of substituti
Closed: (XERCESJ 1203) NPE in XMLDTDProcessor
non overriding equals methoda
Resolved: (XERCESJ 1079) invalid value returned for TOTALDIGITS facet in
Xerces AS3 port
Updated: (XERCESJ 325) Regular Expression; Pattern "| " clause order de
Updated: (XERCESJ 1196) Javadoc generation fails on Java SE 5 0
Closed: (XERCESJ 1202) DTD validation on XIncluded documents when the sch
Created: (XERCESJ 1124) Nonspecific schema error message
a bug in xerces
Updated: (XERCESJ 1201) Initial contribution for StAX Event API
Closed: (XERCESJ 1254) Empty uris in targetNamespace attribute not report
Links
Home
Oracle database error code
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
xerces-2.3.0: error in the schema resolving ?

xerces-2.3.0: error in the schema resolving ?

2003-04-08       - By Jens Skripczynski
Reply:     1     2     3     4     5  

Hi,

I'm using the xerces parser inside xalan or saxon.

I want to use xml catalogs, to access DTD offline with their URL.

It seems, that xerces is issueing an internet connection, even if all files
are available locally.

I use:
- jdk-1.4.1
- xerces-2.3.0
- saxon-6.5.2 or xalan-2.5.d1
- resolver-1.0 (apache) or resolver-1.1 (sun)

Stack traces without an internet connection show:
-------------------------------------
-- creating single pdf file from test.xml --                                  
                           
Parse catalog: file:/etc/xml/catalog                                          
                           
Loading catalog: file:/etc/xml/catalog                                        
                           
Default BASE: file:/etc/xml/catalog                                            
                           
java.net.UnknownHostException: www.oasis-open.org                              
                           
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:143)              
                           
   at java.net.Socket.connect(Socket.java:425)                                
                           
   at java.net.Socket.connect(Socket.java:375)                                
                           
   at sun.net.NetworkClient.doConnect(NetworkClient.java:139)                
                           
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)            
                           
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)            
                           
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:292)                
                           
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:253)                
                           
   at sun.net.www.http.HttpClient.New(HttpClient.java:321)                    
                           
   at sun.net.www.http.HttpClient.New(HttpClient.java:306)                    
                           
   at sun.net.www.http.HttpClient.New(HttpClient.java:301)                    
                           
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect
(HttpURLConnection.java:469)                
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:460)                    
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:562)              
   at java.net.URL.openStream(URL.java:955)                                  
                           
   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.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 javax.xml.parsers.SAXParser.parse(Unknown Source)                      
                           
   at org.apache.xml.resolver.readers.SAXCatalogReader.readCatalog(Unknown
Source)                        
   at org.apache.xml.resolver.Catalog.parseCatalogFile(Unknown Source)        
                           
   at org.apache.xml.resolver.Catalog.parsePendingCatalogs(Unknown Source)    
                           
   at org.apache.xml.resolver.Catalog.parseCatalog(Unknown Source)            
                           
   at org.apache.xml.resolver.Catalog.loadSystemCatalogs(Unknown Source)      
                           
   at org.apache.xml.resolver.tools.CatalogResolver.initializeCatalogs(Unknown
Source)                    
   at org.apache.xml.resolver.tools.CatalogResolver.<init>(Unknown Source)    
                           
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
                           
   at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)        
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   at java.lang.Class.newInstance0(Class.java:296)
   at java.lang.Class.newInstance(Class.java:249)
   at org.apache.xalan.xslt.Process.main(Process.java:494)
resolveSystem(http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd)          
                           
resolvePublic(-//OASIS//DTD DocBook XML V4.2//EN,http://www.oasis-open.org
/docbook/xml/4.2/docbookx.dtd)  
(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException
): java.net.UnknownHostException: www.oasis-open.org                        
-------------------------------------
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity issues this command

output with an internet connectin successfully parses all files:

-------------------------------------
XALAN -- creating chunked x-html file from book.xml --                        
                           
Parse catalog: /usr/share/sgml/docbook/xmlcatalog                              
                           
Loading catalog: /etc/xml/catalog                                              
                           
Default BASE: file:/etc/xml/catalog                                            
                           
delegatePublic: -//OASIS//ENTITIES DocBook XML                                
                           
   file:///usr/share/sgml/docbook/xmlcatalog                                  
                           
DELEGATE_PUBLIC: -//OASIS//ENTITIES DocBook XML                                
                           
   file:/usr/share/sgml/docbook/xmlcatalog                                    
                           
delegatePublic: ISO 8879:1986                                                  
                           
   file:///usr/share/sgml/docbook/xmlcatalog                                  
                           
DELEGATE_PUBLIC: ISO 8879:1986                                                
                           
   file:/usr/share/sgml/docbook/xmlcatalog                                    
                           
delegatePublic: -//OASIS//DTD DocBook XML              
-------------------------------------

I belief this error to be on the xerces side, because xalan and saxon show the
same
behaviour and error messages.

Can somebody help me with this issue, or is this really a bug ?

Ciao

Jens Skripczynski
--
E-Mail: skripi-lists(at)myrealbox(dot)com

One of the richest men in the world made his billions selling a toy `operating
system' that is more accurately described as a glorified bootstrap loader.
                               -- Phil Karn


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected)
For additional commands, e-mail: xerces-j-user-help@(protected)