You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Piccand Régis <re...@imtf.ch> on 2002/03/06 08:53:16 UTC

setProperty for external-schemaLocation opens http connection ...

Hi all,

I read through the mailing list archives but couldn't find much hints for
the following problem.

I use a DOMParser, on which I do a setProperty as follows :

myDOMParser.setProperty("http://apache.org/xml/properties/schema/external-sc
hemaLocation", "http://www.someUri.com
file:///D://somewhereOnMyDisk/mySchema.xsd") ;

When I execute this code, it tries to connect, probably to
"http://www.someUri.com" ... How can I avoid this ? It should only keep the
URI "in mind" and associate with my .xsd file.

Below is the stack trace.

Thanks in advance if you can help ; I'm stuck ...

Régis Piccand



Message: Operation timed out: connect Class: java.net.ConnectException Stack
trace:  java.net.ConnectException: Operation timed out: connect 	at
java.net.PlainSocketImpl.socketConnect(Native Method) 	at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) 	at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) 	at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) 	at
java.net.Socket.<init>(Socket.java:273) 	at
java.net.Socket.<init>(Socket.java:100) 	at
sun.net.NetworkClient.doConnect(NetworkClient.java:50) 	at
sun.net.www.http.HttpClient.openServer(HttpClient.java:331) 	at
sun.net.www.http.HttpClient.openServer(HttpClient.java:517) 	at
sun.net.www.http.HttpClient.<init>(HttpClient.java:267) 	at
sun.net.www.http.HttpClient.<init>(HttpClient.java:277) 	at
sun.net.www.http.HttpClient.New(HttpClient.java:289) 	at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4
08) 	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:501) 	at java.net.URL.openStream(URL.java:798) 	at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:74
0) 	at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager
.java:685) 	at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScan
nerImpl.java:252) 	at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:503) 	at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:585) 	at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) 	at
org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:160)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org