[Geoserver-devel] problems with cascading a wfs from esri

Hey all!

I was trying to cascade a WFS (from ESRI) with the the wfs-datastore. I know about the problems of cascading another Geoserver and I got the datastore already running with a Mapserver. I couldn't get it running with the ESRI-server, but the problem is different to the one with a Geoserver.

The problem is, that the thread reading the features and putting it in a queue crashes with a NullPointer exception whenever I send a request to it. The exception is caused in the method "public boolean includesURI(URI uri1)" of the class "SchemaFactory". The exception is thrown in line 807:

return this.uri.equals(uri1);

because at this time "this.uri" is null. To fix this problem I tried to simply return false in the case that "this.uri" is null. This seems to work, but since I don't really understand how and why this.uri is null and what effect returning true or false has, I have no idea if this is really a valid solution or if it has some negative side-effects. I checked already the document that the ESRI-WFS returns. That seems to be perfectly valid...

Has anyone an idea what the problem might be?

thanks,
stefan

Hi Stefan,

WHich version of GeoServer / WFS DataStore are you using?. I know Andrea
has been working on it to solve the not being able to cascade to
GeoServer problem and may have fixed this issue as well.

Regardless, could you include the entire stack trace, it will help in
debugging. Thanks.

-Justin

Stefan Hansen wrote:

Hey all!

I was trying to cascade a WFS (from ESRI) with the the wfs-datastore. I
know about the problems of cascading another Geoserver and I got the
datastore already running with a Mapserver. I couldn't get it running
with the ESRI-server, but the problem is different to the one with a
Geoserver.

The problem is, that the thread reading the features and putting it in a
queue crashes with a NullPointer exception whenever I send a request to
it. The exception is caused in the method "public boolean
includesURI(URI uri1)" of the class "SchemaFactory". The exception is
thrown in line 807:

return this.uri.equals(uri1);

because at this time "this.uri" is null. To fix this problem I tried to
simply return false in the case that "this.uri" is null. This seems to
work, but since I don't really understand how and why this.uri is null
and what effect returning true or false has, I have no idea if this is
really a valid solution or if it has some negative side-effects. I
checked already the document that the ESRI-WFS returns. That seems to be
perfectly valid...

Has anyone an idea what the problem might be?

thanks,
stefan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46cbe602297571336712104!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hey!

Justin Deoliveira wrote:

WHich version of GeoServer / WFS DataStore are you using?. I know Andrea
has been working on it to solve the not being able to cascade to
GeoServer problem and may have fixed this issue as well.
  

I use Geoserver 1.6.0-beta and the datastore is from Geotools 2.4.x

Cascading a Geoserver is (kind of) working. This problem only occurs, when I try to cascade an ESRI-WFS.

Regardless, could you include the entire stack trace, it will help in
debugging. Thanks.
  

Sorry, I should have put the stack trace already in my first mail. Here it is and also the output of the logger afterwards:

Exception in thread "Feature Collection Buffer" java.lang.NullPointerException
    at org.geotools.xml.SchemaFactory$MergedSchema.includesURI(SchemaFactory.java:807)
    at org.geotools.xml.SchemaFactory.getRealInstance(SchemaFactory.java:298)
    at org.geotools.xml.SchemaFactory.getInstance(SchemaFactory.java:267)
    at org.geotools.xml.handlers.ElementHandlerFactory.startPrefixMapping(ElementHandlerFactory.java:85)
    at org.geotools.xml.XMLSAXHandler.startElement(XMLSAXHandler.java:346)
    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.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:139)
    at org.geotools.data.wfs.WFSFeatureReader.run(WFSFeatureReader.java:128)
23 Aug 15:34:21 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:22 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:23 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:24 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:24 WARN [data.wfs] - java.io.IOException: org.xml.sax.SAXException: Timeout 3000
23 Aug 15:34:24 DEBUG [geotools.gml] - closing reader org.geotools.feature.collection.DelegateFeatureIterator@anonymised.com
23 Aug 15:34:24 WARN [geoserver.ows] -
org.geoserver.platform.ServiceException: error:Translator error
    at org.geoserver.wfs.xml.GML2OutputFormat.encode(GML2OutputFormat.java:226)
    at org.geoserver.wfs.xml.GML2OutputFormat.write(GML2OutputFormat.java:233)
    at org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:98)
    at org.geoserver.ows.Dispatcher.response(Dispatcher.java:611)
    at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:210)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
    at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
    at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
    at org.mortbay.jetty.Server.handle(Server.java:303)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
Caused by: javax.xml.transform.TransformerException: Translator error
    at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:132)
    at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:107)
    at org.geoserver.wfs.xml.GML2OutputFormat.encode(GML2OutputFormat.java:216)
    ... 44 more
Caused by: java.lang.RuntimeException: Error reading Features
    at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handleFeatureIterator(FeatureTransformer.java:484)
    at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:423)
    at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:702)
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
    at org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:295)
    at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:128)
    ... 46 more
Caused by: java.util.NoSuchElementException: Could not aquire feature:java.io.IOException: org.xml.sax.SAXException: Timeout 3000
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:53)
    at org.geotools.feature.collection.DelegateFeatureIterator.next(DelegateFeatureIterator.java:54)
    at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handleFeatureIterator(FeatureTransformer.java:472)
    ... 51 more
Caused by: java.io.IOException: org.xml.sax.SAXException: Timeout 3000
    at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:331)
    at org.geotools.data.wfs.WFSFeatureReader.loadElement(WFSFeatureReader.java:180)
    at org.geotools.data.wfs.WFSFeatureReader.hasNext(WFSFeatureReader.java:169)
    at org.geotools.data.wfs.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:142)
    at org.geotools.data.wfs.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:104)
    at org.geotools.data.wfs.StrictWFSStrategy.access$0(StrictWFSStrategy.java:1)
    at org.geotools.data.wfs.StrictWFSStrategy$StrictFeatureReader.init(StrictWFSStrategy.java:113)
    at org.geotools.data.wfs.StrictWFSStrategy$StrictFeatureReader.<init>(StrictWFSStrategy.java:89)
    at org.geotools.data.wfs.StrictWFSStrategy.createFeatureReader(StrictWFSStrategy.java:69)
    at org.geotools.data.wfs.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:76)
    at org.geotools.data.wfs.WFSDataStore.getFeatureReader(WFSDataStore.java:837)
    at org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:191)
    at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:241)
    at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:211)
    at org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:200)
    ... 51 more
Caused by: org.xml.sax.SAXException: Timeout 3000
    at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:324)
    ... 65 more

-Justin

Stefan Hansen wrote:
  

Hey all!

I was trying to cascade a WFS (from ESRI) with the the wfs-datastore. I know about the problems of cascading another Geoserver and I got the datastore already running with a Mapserver. I couldn't get it running with the ESRI-server, but the problem is different to the one with a Geoserver.

The problem is, that the thread reading the features and putting it in a queue crashes with a NullPointer exception whenever I send a request to it. The exception is caused in the method "public boolean includesURI(URI uri1)" of the class "SchemaFactory". The exception is thrown in line 807:

return this.uri.equals(uri1);

because at this time "this.uri" is null. To fix this problem I tried to simply return false in the case that "this.uri" is null. This seems to work, but since I don't really understand how and why this.uri is null and what effect returning true or false has, I have no idea if this is really a valid solution or if it has some negative side-effects. I checked already the document that the ESRI-WFS returns. That seems to be perfectly valid...

Has anyone an idea what the problem might be?

thanks,
stefan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46cbe602297571336712104!

Hi Stefan,

So looking at this line in the stack stack trace it does not appear that
it should fail in this way so I think that this may be something Andrea
fixed... tough to be sure.

Is there any chance you can try the latest nightly build of GeoServer
and the extension?

http://geo.openplans.org/nightly/trunk/ext-latest/geoserver-1.6-beta1-wfs-plugin.zip

It may not help but I just want to be sure that we are running the same
code.

-Justin

Stefan Hansen wrote:

Hey!

Justin Deoliveira wrote:

WHich version of GeoServer / WFS DataStore are you using?. I know Andrea
has been working on it to solve the not being able to cascade to
GeoServer problem and may have fixed this issue as well.
  

I use Geoserver 1.6.0-beta and the datastore is from Geotools 2.4.x

Cascading a Geoserver is (kind of) working. This problem only occurs,
when I try to cascade an ESRI-WFS.

Regardless, could you include the entire stack trace, it will help in
debugging. Thanks.
  

Sorry, I should have put the stack trace already in my first mail. Here
it is and also the output of the logger afterwards:

Exception in thread "Feature Collection Buffer"
java.lang.NullPointerException
    at
org.geotools.xml.SchemaFactory$MergedSchema.includesURI(SchemaFactory.java:807)
    at
org.geotools.xml.SchemaFactory.getRealInstance(SchemaFactory.java:298)
    at org.geotools.xml.SchemaFactory.getInstance(SchemaFactory.java:267)
    at
org.geotools.xml.handlers.ElementHandlerFactory.startPrefixMapping(ElementHandlerFactory.java:85)
    at org.geotools.xml.XMLSAXHandler.startElement(XMLSAXHandler.java:346)
    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 javax.xml.parsers.SAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at
org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:139)
    at org.geotools.data.wfs.WFSFeatureReader.run(WFSFeatureReader.java:128)
23 Aug 15:34:21 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:21 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:21 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:21 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:22 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:22 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:22 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:22 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:22 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:23 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:23 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:23 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:23 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:23 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:24 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:24 DEBUG [xml.gml] - waiting for parser
23 Aug 15:34:24 WARN [data.wfs] - java.io.IOException:
org.xml.sax.SAXException: Timeout 3000
23 Aug 15:34:24 DEBUG [geotools.gml] - closing reader
org.geotools.feature.collection.DelegateFeatureIterator@anonymised.com
23 Aug 15:34:24 WARN [geoserver.ows] -
org.geoserver.platform.ServiceException: error:Translator error
    at
org.geoserver.wfs.xml.GML2OutputFormat.encode(GML2OutputFormat.java:226)
    at
org.geoserver.wfs.xml.GML2OutputFormat.write(GML2OutputFormat.java:233)
    at
org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:98)
    at org.geoserver.ows.Dispatcher.response(Dispatcher.java:611)
    at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:210)
    at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
    at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
    at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
    at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
    at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
    at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054)
    at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
    at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
    at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at
org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
    at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
    at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
    at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
    at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
    at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358)
    at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
    at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
    at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
    at org.mortbay.jetty.Server.handle(Server.java:303)
    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
    at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
    at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
Caused by: javax.xml.transform.TransformerException: Translator error
    at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:132)
    at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:107)
    at
org.geoserver.wfs.xml.GML2OutputFormat.encode(GML2OutputFormat.java:216)
    ... 44 more
Caused by: java.lang.RuntimeException: Error reading Features
    at
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handleFeatureIterator(FeatureTransformer.java:484)
    at
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:423)
    at
org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:702)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
    at
org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:295)
    at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:128)
    ... 46 more
Caused by: java.util.NoSuchElementException: Could not aquire
feature:java.io.IOException: org.xml.sax.SAXException: Timeout 3000
    at
org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:53)
    at
org.geotools.feature.collection.DelegateFeatureIterator.next(DelegateFeatureIterator.java:54)
    at
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handleFeatureIterator(FeatureTransformer.java:472)
    ... 51 more
Caused by: java.io.IOException: org.xml.sax.SAXException: Timeout 3000
    at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:331)
    at
org.geotools.data.wfs.WFSFeatureReader.loadElement(WFSFeatureReader.java:180)
    at
org.geotools.data.wfs.WFSFeatureReader.hasNext(WFSFeatureReader.java:169)
    at
org.geotools.data.wfs.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:142)
    at
org.geotools.data.wfs.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:104)
    at
org.geotools.data.wfs.StrictWFSStrategy.access$0(StrictWFSStrategy.java:1)
    at
org.geotools.data.wfs.StrictWFSStrategy$StrictFeatureReader.init(StrictWFSStrategy.java:113)
    at
org.geotools.data.wfs.StrictWFSStrategy$StrictFeatureReader.<init>(StrictWFSStrategy.java:89)
    at
org.geotools.data.wfs.StrictWFSStrategy.createFeatureReader(StrictWFSStrategy.java:69)
    at
org.geotools.data.wfs.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:76)
    at
org.geotools.data.wfs.WFSDataStore.getFeatureReader(WFSDataStore.java:837)
    at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:191)
    at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:241)
    at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:211)
    at
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:200)
    ... 51 more
Caused by: org.xml.sax.SAXException: Timeout 3000
    at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:324)
    ... 65 more

-Justin

Stefan Hansen wrote:
  

Hey all!

I was trying to cascade a WFS (from ESRI) with the the wfs-datastore. I
know about the problems of cascading another Geoserver and I got the
datastore already running with a Mapserver. I couldn't get it running
with the ESRI-server, but the problem is different to the one with a
Geoserver.

The problem is, that the thread reading the features and putting it in a
queue crashes with a NullPointer exception whenever I send a request to
it. The exception is caused in the method "public boolean
includesURI(URI uri1)" of the class "SchemaFactory". The exception is
thrown in line 807:

return this.uri.equals(uri1);

because at this time "this.uri" is null. To fix this problem I tried to
simply return false in the case that "this.uri" is null. This seems to
work, but since I don't really understand how and why this.uri is null
and what effect returning true or false has, I have no idea if this is
really a valid solution or if it has some negative side-effects. I
checked already the document that the ESRI-WFS returns. That seems to be
perfectly valid...

Has anyone an idea what the problem might be?

thanks,
stefan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46cd1eb5310722458217002!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Stefan Hansen ha scritto:

Hey all!

I was trying to cascade a WFS (from ESRI) with the the wfs-datastore. I know about the problems of cascading another Geoserver and I got the datastore already running with a Mapserver. I couldn't get it running with the ESRI-server, but the problem is different to the one with a Geoserver.

The problem is, that the thread reading the features and putting it in a queue crashes with a NullPointer exception whenever I send a request to it. The exception is caused in the method "public boolean includesURI(URI uri1)" of the class "SchemaFactory". The exception is thrown in line 807:

return this.uri.equals(uri1);

Ah ha, yeah, I fixed this problem on trunk. You should grab a 1.6.0
nightly here http://geo.openplans.org/nightly/trunk/ and double check.
As far as I remember WFS datastore is included in the main download
now, but if not, just grab it from the ext-xxxxxx subdirectory.

Let me know how it goes. And oh, the changes needed to make
WFS datastore work for good are relatively big, so there is no
much change they'll be backported to 1.5.x

Cheers
Andrea