From: Tobias W. (JIRA) <ji...@co...> - 2011-08-23 15:02:39
|
gml parser not working ---------------------- Key: GEOT-3818 URL: https://jira.codehaus.org/browse/GEOT-3818 Project: GeoTools Issue Type: Bug Components: xsd-gml Affects Versions: 2.6.1 Reporter: Tobias Warneke If gt-xsd-gml3-2.6.1.jar is installed in an directory containing spaces in its name, the parser fails to start. (e.g. 'test folder' was my location and the test case producing the exception below. WARNING [org.geotools.xml]: Error occured getting schema java.net.URISyntaxException: Illegal character in path at index 18: file:/D:/temp/test folder/nasgui/nasgui/modules/ext/org.geotools.xsd/gt-xsd-gml3-2.6.1.jar at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.<init>(URI.java:578) at org.netbeans.JarClassLoader$JarURLStreamHandler.openConnection(JarClassLoader.java:870) Caused: java.io.IOException at org.netbeans.JarClassLoader$JarURLStreamHandler.openConnection(JarClassLoader.java:877) at org.netbeans.JarClassLoader$JarURLStreamHandler.openConnection(JarClassLoader.java:847) at java.net.URL.openConnection(URL.java:945) at org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createURLInputStream(URIConverterImpl.java:565) at org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createInputStream(URIConverterImpl.java:453) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:897) at org.geotools.xml.Schemas.parse(Schemas.java:256) at org.geotools.xml.XSD.buildSchema(XSD.java:250) at org.geotools.xml.XSD.getSchema(XSD.java:207) [catch] at org.geotools.xml.SchemaLocator.locateSchema(SchemaLocator.java:94) at org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:296) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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.geotools.xml.Parser.parse(Parser.java:223) at org.geotools.xml.Parser.parse(Parser.java:151) at org.geotools.xml.Parser.parse(Parser.java:200) . . . WARNING [org.geotools.xml]: Error parsing: jar:file:/D:/temp/test%20folder/nasgui/nasgui/modules/ext/org.geotools.xsd/gt-xsd-gml3-2.6.1.jar!/org/geotools/gml3/gml.xsd WARNING [org.geotools.xml]: Could not find a schema The same software works in a valid directory (e.g. test_folder). I did not yet test newer geotools versions. The test was done on a Windows machine. Thanks Tobias -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |