Hi Roy
I will check it now. I do not this that the network connection is the
issue.I have just tried some other shp and I got the same problem. I think
that my data are somehow corrupted. I just question myself why shp, which
ork fine get broken after imprting them into postgres data base.
Met vriendelijke groet (is it Dutch??)
On Thu, Jul 29, 2010 at 12:20 PM, Roy Braam <[email protected]> wrote:
> Look at wireshark for example. It's a network sniffer. (freeware)
>
> Met vriendelijke groet,
>
> Roy Braam
> B3partners BV
> 030 214 2082
>
> ------------------------------
> *From:* Jakub Rojek [mailto:[email protected]]
> *To:* Roy Braam [mailto:[email protected]]
> *Sent:* Thu, 29 Jul 2010 11:45:28 +0200
> *Subject:* Re: [Geotools-gt2-users] WFSDemo does not work with some of the
> data
>
>
> could you give me a hint, how i can do that.
>
>
> On Thu, Jul 29, 2010 at 11:31 AM, Roy Braam <[email protected]>wrote:
>
>> Jakub,
>>
>> Can you check the network activity between geotools and the wfs server?
>> Most of the times it helps to understand the problem.
>>
>> Roy
>>
>> ------------------------------
>> *From:* Jakub Rojek [mailto:[email protected]]
>> *To:* GeoTools [mailto:[email protected]]
>> *Sent:* Thu, 29 Jul 2010 11:01:42 +0200
>> *Subject:* [Geotools-gt2-users] WFSDemo does not work with some of the
>> data
>>
>>
>> Hi!
>>
>> I was trying out WFS demo available on GeoTools User Guide Wiki web site
>> http://docs.codehaus.org/display/GEOTDOC/WFS+Plugin.
>> The problem is that it works only with some of the data. Mostly with those
>> that come along with Geoserver instalation. The problem appears when I use
>> the demo on the data that are stored in POSTGIS data bank.
>> I realy do not know where is the problem. NetBeaans indicate that there is
>> NullPoIntException in this code line:
>> FeatureReader ft = wfs.getFeatureReader(query,
>> Transaction.AUTO_COMMIT);
>>
>> this the whole error message that I get when I run the WFSDemo:
>>
>> 29.07.2010 10:56:31 org.geotools.xml.XMLSAXHandler processException
>> SCHWERWIEGEND: java.lang.NullPointerException
>> null
>> org.geotools.xml.filter.FilterComplexTypes$ServiceExceptionType.getValue(FilterComplexTypes.java:1669)
>>
>> org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:157)
>> org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
>> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
>> Source)
>>
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>> Source)
>>
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>> javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
>> org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
>>
>> org.geotools.data.wfs.v1_0_0.WFSFeatureReader.run(WFSFeatureReader.java:125)
>>
>> 29.07.2010 10:56:31 org.geotools.xml.XMLSAXHandler endElement
>> WARNUNG: java.lang.NullPointerException
>> null
>> 29.07.2010 10:56:31 org.geotools.xml.XMLSAXHandler endElement
>> WARNUNG: Line 10 Col 20
>> 29.07.2010 10:56:31 org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy
>> createFeatureReaderPOST
>> WARNUNG: java.io.IOException: org.geotools.ows.ServiceException:
>> java.lang.NullPointerException
>> null
>> 29.07.2010 10:56:31 org.geotools.xml.XMLSAXHandler processException
>> SCHWERWIEGEND: java.lang.NullPointerException
>> null
>> org.geotools.xml.filter.FilterComplexTypes$ServiceExceptionType.getValue(FilterComplexTypes.java:1669)
>>
>> org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:157)
>> org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
>> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
>> Source)
>>
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>> Source)
>>
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>> javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
>> org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
>>
>> org.geotools.data.wfs.v1_0_0.WFSFeatureReader.run(WFSFeatureReader.java:125)
>>
>> 29.07.2010 10:56:31 org.geotools.xml.XMLSAXHandler endElement
>> WARNUNG: java.lang.NullPointerException
>> null
>> 29.07.2010 10:56:31 org.geotools.xml.XMLSAXHandler endElement
>> WARNUNG: Line 10 Col 20
>> 29.07.2010 10:56:31 org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy
>> createFeatureReaderGET
>> WARNUNG: java.io.IOException: org.geotools.ows.ServiceException:
>> java.lang.NullPointerException
>> null
>> Exception in thread "main" java.io.IOException:
>> org.geotools.ows.ServiceException: java.lang.NullPointerException
>> null
>> at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:326)
>> at
>> org.geotools.data.wfs.v1_0_0.WFSFeatureReader.loadElement(WFSFeatureReader.java:189)
>> at
>> org.geotools.data.wfs.v1_0_0.WFSFeatureReader.hasNext(WFSFeatureReader.java:178)
>> at
>> org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:134)
>> at
>> org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:101)
>> at
>> org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
>> at
>> org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:747)
>> at iosb.fraunhofer.de.geotools.WFSDemo.main(WFSDemo.java:51)
>> Caused by: org.geotools.ows.ServiceException:
>> java.lang.NullPointerException
>> null
>> at
>> org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:274)
>> 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.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
>> at
>> org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
>> at
>> org.geotools.data.wfs.v1_0_0.WFSFeatureReader.run(WFSFeatureReader.java:125)
>> Caused by: org.geotools.ows.ServiceException:
>> java.lang.NullPointerException
>> null
>> at
>> org.geotools.xml.filter.FilterComplexTypes$ServiceExceptionType.getValue(FilterComplexTypes.java:1669)
>> at
>> org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:157)
>> at
>> org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
>> ... 13 more
>> Java Result: 1
>>
>>
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users