Dear GT2 Support, I have the following problem: ======================
WARNUNG: LengthType :: http://schema.okstra.de/1009/okstra should have a real parent: Exception in thread "main" java.lang.NullPointerException at org.geotools.xml.handlers.xsi.ComplexTypeHandler.compress(ComplexTypeHandler.java:642) at org.geotools.xml.handlers.xsi.SchemaHandler.compress(SchemaHandler.java:529) at org.geotools.xml.handlers.xsi.RootHandler.getSchema(RootHandler.java:115) at org.geotools.xml.XSISAXHandler.getSchema(XSISAXHandler.java:259) at org.geotools.xml.SchemaFactory.getRealInstance(SchemaFactory.java:336) at org.geotools.xml.SchemaFactory.getInstance(SchemaFactory.java:325) at org.geotools.xml.SchemaFactory.getInstance(SchemaFactory.java:194) at org.geotools.data.wfs.WFSDataStore.getSchemaGet(WFSDataStore.java:408) at org.geotools.data.wfs.WFSDataStore.getSchema(WFSDataStore.java:337) at org.geotools.data.wfs.WFSDataStore.splitFilters(WFSDataStore.java:835) at org.geotools.data.wfs.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:66) at org.geotools.data.wfs.WFSDataStore.getFeatureReader(WFSDataStore.java:795) at wfsclient.main(wfsclient.java:42) The received schema is: =================== <?xml version="1.0" encoding="UTF-8"?> <schema elementFormDefault="qualified" targetNamespace="http://schema.okstra.de/1009/okstra" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:okstra="http://schema.okstra.de/1009/okstra" xmlns:ns2="http://www.w3.org/1999/xhtml" xmlns:ns="http://www.w3.org/2001/XMLSchema" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" xmlns:gml="http://www.opengis.net/gml"> <import namespace="http://www.opengis.net/gml" schemaLocation="http://www.interactive-instruments.de/schema/ogc/gml/2.1.2/feature.xsd"/> <element name="Abschnitt" substitutionGroup="okstra:_OKSTRAHistObjekt" type="okstra:AbschnittType"/> <element abstract="true" name="_OKSTRAHistObjekt" substitutionGroup="okstra:_OKSTRAObjekt" type="okstra:AbstractOKSTRAHistObjektType"/> <complexType name="AbschnittType"> <complexContent> <extension base="okstra:AbstractOKSTRAHistObjektType"> <sequence> <element minOccurs="0" name="Bezeichnung_lang" type="string"/> <element minOccurs="0" name="Bezeichnung_kurz" type="string"/> <element minOccurs="0" name="Erfassungsdatum" type="okstra:Datum"/> <element minOccurs="0" name="Systemdatum" type="okstra:Datum"/> <element minOccurs="0" name="Textfeld" type="string"/> <element maxOccurs="unbounded" minOccurs="0" name="Fotodokument" type="okstra:ObjectRefType"/> <choice minOccurs="0"> <element maxOccurs="unbounded" name="dargestellt_von_Linie" type="gml:LineStringPropertyType"/> </choice> <element minOccurs="0" name="Laenge" type="okstra:Kilometer"/> <element minOccurs="0" name="Herkunft_Laenge" type="okstra:KeyValuePropertyType"/> <element minOccurs="0" name="Stadium" type="okstra:ObjectRefType"/> <element minOccurs="0" name="Betriebsmerkmal" type="okstra:KeyValuePropertyType"/> <element minOccurs="0" name="Abschnitts_Astnummer" type="string"/> <element minOccurs="0" name="Abschnitts_Astbezeichnung" type="string"/> <element maxOccurs="unbounded" name="beginnt_bei_NP" type="okstra:ObjectRefType"/> <element maxOccurs="unbounded" name="endet_bei_NP" type="okstra:ObjectRefType"/> <element maxOccurs="unbounded" name="gehoert_zu_Strasse" type="okstra:ObjectRefType"/> <element maxOccurs="unbounded" minOccurs="0" name="enthaelt_Strassenelement" type="okstra:ObjectRefType"/> <element maxOccurs="unbounded" minOccurs="0" name="hat_Teilabschnitt" type="okstra:ObjectRefType"/> <element maxOccurs="unbounded" minOccurs="0" name="hat_Strassenpunkt" type="okstra:ObjectRefType"/> <element maxOccurs="unbounded" minOccurs="0" name="zu_Baumassnahme" type="okstra:ObjectRefType"/> <element minOccurs="0" name="Seitenarm" type="integer"/> <element minOccurs="0" name="getrennt_verlaufende_Fahrbahn" type="okstra:KeyValuePropertyType"/> <element minOccurs="0" name="Abschnittsfolgenummer" type="string"/> </sequence> </extension> </complexContent> </complexType> <element abstract="true" name="_OKSTRAObjekt" substitutionGroup="gml:_Feature" type="okstra:AbstractOKSTRAObjektType"/> <complexType abstract="true" name="AbstractOKSTRAHistObjektType"> <complexContent> <extension base="okstra:AbstractOKSTRAObjektType"> <sequence> <group ref="okstra:HistGroup"/> </sequence> </extension> </complexContent> </complexType> <simpleType name="Datum"> <restriction base="date"/> </simpleType> <complexType name="ObjectRefType"> <simpleContent> <extension base="string"> <attributeGroup ref="gml:AssociationAttributeGroup"/> <attribute name="Objektklasse" type="string" use="optional"/> </extension> </simpleContent> </complexType> <complexType name="Kilometer"> <simpleContent> <restriction base="okstra:LengthType"> <attribute fixed="km" name="uom" type="anyURI"/> </restriction> </simpleContent> </complexType> <complexType name="KeyValuePropertyType"> <sequence> <element minOccurs="0" ref="okstra:_KeyValue"/> </sequence> </complexType> <complexType abstract="true" name="AbstractOKSTRAObjektType"> <complexContent> <extension base="gml:AbstractFeatureType"/> </complexContent> </complexType> <group name="HistGroup"> <sequence> <element minOccurs="0" name="gueltig_von" type="okstra:Datum"/> <element minOccurs="0" name="gueltig_bis" type="okstra:Datum"/> <element minOccurs="0" name="erzeugt_von_Ereignis" type="okstra:ObjectRefType"/> <element minOccurs="0" name="geloescht_von_Ereignis" type="okstra:ObjectRefType"/> <element minOccurs="0" name="hat_Vorgaenger_hist_Objekt" type="okstra:ObjectRefType"/> <element minOccurs="0" name="hat_Nachfolger_hist_Objekt" type="okstra:ObjectRefType"/> </sequence> </group> <complexType name="LengthType"> <simpleContent> <extension base="okstra:MeasureType"/> </simpleContent> </complexType> <element abstract="true" name="_KeyValue" type="okstra:AbstractKeyValueType"/> <complexType name="MeasureType"> <simpleContent> <extension base="double"> <attribute name="uom" type="anyURI"/> </extension> </simpleContent> </complexType> <complexType abstract="true" name="AbstractKeyValueType"> <sequence> <element minOccurs="0" name="Langtext" type="string"/> <element name="Kennung" type="string"/> </sequence> <attribute name="id" type="ID" use="optional"/> </complexType> </schema> What is wrong? Many thanks for your help! Steffen Gieseler ________________________________________________ BitCtrl Systems GmbH Geschäftsführer: Dr.-Ing. Gunter Geigemüller, Dipl.-Ing. Andreas Müller Sitz der Gesellschaft: Leipzig Registergericht: Leipzig, HRB 1704 ________________________________________________________ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
