MetadataUrlType NullPointer
---------------------------
Key: GEOT-2945
URL: http://jira.codehaus.org/browse/GEOT-2945
Project: GeoTools
Issue Type: Bug
Components: ext xml-xsd
Affects Versions: 2.6.0, 2.5.5
Reporter: Roy Braam
When getting encoding a GetCap from a wms with MetadataUrl you'll get a:
NullPointer
java.lang.RuntimeException: Parsing failed for MetadataURL:
java.lang.NullPointerException
at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158)
at
org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:208)
at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:174)
at
org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:222)
at
org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:585)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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:180)
at org.geotools.xml.Parser.parse(Parser.java:140)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_Protocol.parseCapabilities(WFS_1_1_0_Protocol.java:497)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_Protocol.<init>(WFS_1_1_0_Protocol.java:125)
at
org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:372)
at
org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:114)
at
org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:129)
at
org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:87)
This has to do with a null value returned when getting the type of the
MetaDataUrlBinding.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel