Hei, this problem in the version 2.5-m0 is in the class ParseHandler:
//if no schema override was found, parse location directly
if (schemas[i / 2] == null) {
try {
schemas[i / 2] = Schemas.parse(location,
locators, resolvers);
} catch (Exception e) {
String msg = "Error parsing: " + location;
logger.warning(msg);
throw (SAXException) new
SAXException(msg).initCause( e );
}
}
In the other version, before call the exception:
if (isStrict()) {
//strict mode, throw exception
throw (SAXException) new
SAXException(msg).initCause(e);
}
how solution this problem in version 2.5-mo?
abel wrote:
>
> hei, i have a problem the import file format gpx.
>
> the version of geotools is 2.5-M0
>
> this is my code:
>
> GpxDataStore dataStore = new
> GpxDataStore(file.getAbsoluteFile().toURL(),null);
>
> This is the error:
>
> ADVERTENCIA: Error parsing: http://www.topografix.com/GPX/1/0/gpx.xsd
> org.xml.sax.SAXException: Error parsing:
> http://www.topografix.com/GPX/1/0/gpx.xsd
> at
> org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:294)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>
>
> Caused by: java.net.ConnectException: Connection timed out: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.Socket.connect(Socket.java:519)
> at java.net.Socket.connect(Socket.java:469)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
> at sun.net.www.http.HttpClient.New(HttpClient.java:304)
> at sun.net.www.http.HttpClient.New(HttpClient.java:316)
>
> i can solutions this problem?
>
> thanks.
>
>
>
--
View this message in context:
http://n2.nabble.com/error-import-file-gpx-tp2863639p2867653.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users