[Geoserver-devel] Error with RC7 wfs server

Hi Josh,

Thanks for the info, this gives me some context. I will have to look into the stack trace. Also can you turn logging on and attach the entire log. Thanks.

-Justin

Joshua.D-CTR.Moore@anonymised.com wrote:

With geotools im making this call

        String wfsServer = FOMSProperties.get(Constants.PROPERTY_WFS_SERVER_URL);
               URL faaWfsUrl = new URL(wfsServer);
               Map prefs = new HashMap();
               prefs.put(WFSDataStoreFactory.URL.key, faaWfsUrl);
               prefs.put(WFSDataStoreFactory.TIMEOUT.key, new Integer(10000));
               prefs.put(WFSDataStoreFactory.PROTOCOL.key, "GET");
               WFSDataStoreFactory factory = new WFSDataStoreFactory();
               WFSDataStore faaWfs = (WFSDataStore)factory.createNewDataStore(prefs);
               FeatureSource fsObjects = faaWfs.getFeatureSource("foms:MAP_DISPLAY_OBJECTS_WGS84");

On my geoserver I have a Feature setup that hits an Oracle database.

Josh Moore
Information Engineer
Titan
ph: 405-954-4314 ext. 4314

*Justin Deoliveira <jdeolive@anonymised.com>*

01/03/2006 02:36 PM

To
  Joshua D-CTR Moore/AMC/CNTR/FAA@anonymised.com
cc
  geoserver-devel@lists.sourceforge.net
Subject
  Re: [Geoserver-devel] Error with RC7 wfs server

Hi Joshua,

Can you give me a bit more info about the actual request so I can try to
replicate it.

Thanks,

Justin

Joshua.D-CTR.Moore@anonymised.com wrote:
>
> This all worked under rc6 and still works under rc7 if we use the war
> instead of the bin.
>
> When we try to use the one packaged with jetty we get this error.
>
> [ERROR] 2006-01-03 13:56:04,991 MapBuilderGeoTools - Could not aquire
> feature:java.io.IOException : org.xml.sax.SAXException : Could not find
> element handler for http://www.opengis.net/gml : Point as a child of
> GeometryAssociationType.
> Exception Constructed by: NoContentIterator.java:37, Method is next
> Nested Exception = org.xml.sax.SAXException : Could not find element
> handler for http://www.opengis.net/gml : Point as a child of
> GeometryAssociationType.
> Nested Exception =Could not find element handler for
> http://www.opengis.net/gml : Point as a child of GeometryAssociationType.
> Trace is:
> java.util.NoSuchElementException : Could not aquire
> feature:java.io.IOException : org.xml.sax.SAXException : Could not find
> element handler for http://www.opengis.net/gml : Point as a child of
> GeometryAssociationType.
> at org.geotools.data.store.NoContentIterator.next(
> NoContentIterator.java:37 )
> at org.geotools.feature.FeatureIterator.next(
> FeatureIterator.java:64 )
> at
> gov.faa.infra.foms.web.schedulingapplet.geomap.TransformData.changeProjection(

> TransformData.java:61 )
> at
> gov.faa.infra.foms.web.schedulingapplet.builder.MapBuilderGeoTools$3.construct(

> MapBuilderGeoTools.java:289 )
> at
> gov.faa.infra.foms.web.schedulingapplet.util.SwingWorker$2.run(
> SwingWorker.java:107 )
> at java.lang.Thread.run( Thread.java:534 )
> Caused by: java.io.IOException : org.xml.sax.SAXException : Could not
> find element handler for http://www.opengis.net/gml : Point as a child
> of GeometryAssociationType.
> at org.geotools.xml.gml.FCBuffer.hasNext( FCBuffer.java:304 )
> at org.geotools.data.wfs.WFSFeatureReader.loadElement(
> WFSFeatureReader.java:164 )
> at org.geotools.data.wfs.WFSFeatureReader.hasNext(
> WFSFeatureReader.java:153 )
> at org.geotools.data.wfs.WFSDataStore.getFeatureReader(
> WFSDataStore.java:763 )
> at
> org.geotools.data.wfs.WFSFeatureSource$WFSFeatureResults.reader(
> WFSFeatureSource.java:168 )
> at org.geotools.data.store.DataFeatureCollection.iterator(
> DataFeatureCollection.java:193 )
> at org.geotools.feature.FeatureIterator.<init>(
> FeatureIterator.java:42 )
> at org.geotools.data.store.DataFeatureCollection.features(
> DataFeatureCollection.java:174 )
> at
> gov.faa.infra.foms.web.schedulingapplet.geomap.TransformData.changeProjection(

> TransformData.java:53 )
> ... 3 more
> Caused by: org.xml.sax.SAXException : Could not find element handler for
> http://www.opengis.net/gml : Point as a child of GeometryAssociationType.
> at org.geotools.xml.XMLSAXHandler.startElement(
> XMLSAXHandler.java:333 )
> at org.apache.crimson.parser.Parser2.maybeElement(
> Parser2.java:1672 )
> at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> at org.apache.crimson.parser.Parser2.maybeElement(
> Parser2.java:1691 )
> at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> at org.apache.crimson.parser.Parser2.maybeElement(
> Parser2.java:1691 )
> at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> at org.apache.crimson.parser.Parser2.maybeElement(
> Parser2.java:1691 )
> at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> at org.apache.crimson.parser.Parser2.maybeElement(
> Parser2.java:1691 )
> at org.apache.crimson.parser.Parser2.parseInternal(
> Parser2.java:667 )
> at org.apache.crimson.parser.Parser2.parse( Parser2.java:337 )
> at org.apache.crimson.parser.XMLReaderImpl.parse(
> XMLReaderImpl.java:448 )
> at javax.xml.parsers.SAXParser.parse( SAXParser.java:345 )
> at javax.xml.parsers.SAXParser.parse( SAXParser.java:143 )
> at org.geotools.xml.DocumentFactory.getInstance(
> DocumentFactory.java:139 )
> at org.geotools.data.wfs.WFSFeatureReader.run(
> WFSFeatureReader.java:123 )
> ********* end of Exception info ******
>
> Josh Moore
> Information Engineer
> Titan
> ph: 405-954-4314 ext. 4314

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

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

Here is that trace from the console of geoserver:

194690 [WARNING] org.vfny.geoserver.ServiceException - encountered error: null
error:Translator error
StackTrace: javax.xml.transform.TransformerException: Translator error
at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.
java:122)
at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.
java:97)
at org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(G
ML2FeatureResponseDelegate.java:225)
at org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureRespo
nse.java:131)
at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService
.java:510)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.jav
a:276)
at org.vfny.geoserver.wfs.servlets.WfsDispatcher.doResponse(WfsDispatche
r.java:284)
at org.vfny.geoserver.wfs.servlets.WfsDispatcher.doGet(WfsDispatcher.jav
a:213)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:294)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: java.lang.RuntimeException: Error reading Features
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
FeatureReader(FeatureTransformer.java:425)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode
(FeatureTransformer.java:395)
at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(Tra
nsformerBase.java:603)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:463)
at org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.j
ava:285)
at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.
java:118)
… 22 more
Caused by: java.lang.RuntimeException: EOFException(java.net.SocketException: So
ftware caused connection abort: socket write error)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
Attribute(FeatureTransformer.java:570)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
FeatureReader(FeatureTransformer.java:419)
… 27 more
Caused by: EOFException(java.net.SocketException: Software caused connection abo
rt: socket write error)
at org.apache.xml.serializer.ToStream.endElement(ToStream.java:1957)
at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans
formerIdentityImpl.java:1072)
at org.geotools.xml.transform.TransformerBase$ContentHandlerFilter.endEl
ement(TransformerBase.java:319)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
Attribute(FeatureTransformer.java:563)
… 28 more

java.lang.RuntimeException: Error reading Features
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
FeatureReader(FeatureTransformer.java:425)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode
(FeatureTransformer.java:395)
at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(Tra
nsformerBase.java:603)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:463)
at org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.j
ava:285)
at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.
java:118)
at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.
java:97)
at org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(G
ML2FeatureResponseDelegate.java:225)
at org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureRespo
nse.java:131)
at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService
.java:510)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.jav
a:276)
at org.vfny.geoserver.wfs.servlets.WfsDispatcher.doResponse(WfsDispatche
r.java:284)
at org.vfny.geoserver.wfs.servlets.WfsDispatcher.doGet(WfsDispatcher.jav
a:213)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:294)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: java.lang.RuntimeException: EOFException(java.net.SocketException: So
ftware caused connection abort: socket write error)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
Attribute(FeatureTransformer.java:570)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
FeatureReader(FeatureTransformer.java:419)
… 27 more
Caused by: EOFException(java.net.SocketException: Software caused connection abo
rt: socket write error)
at org.apache.xml.serializer.ToStream.endElement(ToStream.java:1957)
at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans
formerIdentityImpl.java:1072)
at org.geotools.xml.transform.TransformerBase$ContentHandlerFilter.endEl
ement(TransformerBase.java:319)
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handle
Attribute(FeatureTransformer.java:563)
… 28 more

Josh Moore
Information Engineer
Titan
ph: 405-954-4314 ext. 4314

Justin Deoliveira <jdeolive@anonymised.com>

01/03/2006 03:59 PM

To

Joshua D-CTR Moore/AMC/CNTR/FAA@anonymised.com, Geoserver-devel <geoserver-devel@lists.sourceforge.net>

cc

Subject

Re: [Geoserver-devel] Error with RC7 wfs server

Hi Josh,

Thanks for the info, this gives me some context. I will have to look
into the stack trace. Also can you turn logging on and attach the entire
log. Thanks.

-Justin

Joshua.D-CTR.Moore@anonymised.com wrote:
>
> With geotools im making this call
>
> String wfsServer =
> FOMSProperties.get(Constants.PROPERTY_WFS_SERVER_URL);
> URL faaWfsUrl = new URL(wfsServer);
> Map prefs = new HashMap();
> prefs.put(WFSDataStoreFactory.URL.key, faaWfsUrl);
> prefs.put(WFSDataStoreFactory.TIMEOUT.key, new
> Integer(10000));
> prefs.put(WFSDataStoreFactory.PROTOCOL.key, "GET");
> WFSDataStoreFactory factory = new WFSDataStoreFactory();
> WFSDataStore faaWfs =
> (WFSDataStore)factory.createNewDataStore(prefs);
> FeatureSource fsObjects =
> faaWfs.getFeatureSource("foms:MAP_DISPLAY_OBJECTS_WGS84");
>
> On my geoserver I have a Feature setup that hits an Oracle database.
>
>
>
>
>
>
> Josh Moore
> Information Engineer
> Titan
> ph: 405-954-4314 ext. 4314
>
>
> *Justin Deoliveira <jdeolive@anonymised.com>*
>
> 01/03/2006 02:36 PM
>
>
> To
> Joshua D-CTR Moore/AMC/CNTR/FAA@anonymised.com
> cc
> geoserver-devel@lists.sourceforge.net
> Subject
> Re: [Geoserver-devel] Error with RC7 wfs server
>
>
>
>
>
>
>
>
> Hi Joshua,
>
> Can you give me a bit more info about the actual request so I can try to
> replicate it.
>
> Thanks,
>
> Justin
>
> Joshua.D-CTR.Moore@anonymised.com wrote:
> >
> > This all worked under rc6 and still works under rc7 if we use the war
> > instead of the bin.
> >
> > When we try to use the one packaged with jetty we get this error.
> >
> > [ERROR] 2006-01-03 13:56:04,991 MapBuilderGeoTools - Could not aquire
> > feature:java.io.IOException : org.xml.sax.SAXException : Could not find
> > element handler for http://www.opengis.net/gml : Point as a child of
> > GeometryAssociationType.
> > Exception Constructed by: NoContentIterator.java:37, Method is next
> > Nested Exception = org.xml.sax.SAXException : Could not find element
> > handler for http://www.opengis.net/gml : Point as a child of
> > GeometryAssociationType.
> > Nested Exception =Could not find element handler for
> > http://www.opengis.net/gml : Point as a child of GeometryAssociationType.
> > Trace is:
> > java.util.NoSuchElementException : Could not aquire
> > feature:java.io.IOException : org.xml.sax.SAXException : Could not find
> > element handler for http://www.opengis.net/gml : Point as a child of
> > GeometryAssociationType.
> > at org.geotools.data.store.NoContentIterator.next(
> > NoContentIterator.java:37 )
> > at org.geotools.feature.FeatureIterator.next(
> > FeatureIterator.java:64 )
> > at
> >
> gov.faa.infra.foms.web.schedulingapplet.geomap.TransformData.changeProjection(
>
> > TransformData.java:61 )
> > at
> >
> gov.faa.infra.foms.web.schedulingapplet.builder.MapBuilderGeoTools$3.construct(
>
> > MapBuilderGeoTools.java:289 )
> > at
> > gov.faa.infra.foms.web.schedulingapplet.util.SwingWorker$2.run(
> > SwingWorker.java:107 )
> > at java.lang.Thread.run( Thread.java:534 )
> > Caused by: java.io.IOException : org.xml.sax.SAXException : Could not
> > find element handler for http://www.opengis.net/gml : Point as a child
> > of GeometryAssociationType.
> > at org.geotools.xml.gml.FCBuffer.hasNext( FCBuffer.java:304 )
> > at org.geotools.data.wfs.WFSFeatureReader.loadElement(
> > WFSFeatureReader.java:164 )
> > at org.geotools.data.wfs.WFSFeatureReader.hasNext(
> > WFSFeatureReader.java:153 )
> > at org.geotools.data.wfs.WFSDataStore.getFeatureReader(
> > WFSDataStore.java:763 )
> > at
> > org.geotools.data.wfs.WFSFeatureSource$WFSFeatureResults.reader(
> > WFSFeatureSource.java:168 )
> > at org.geotools.data.store.DataFeatureCollection.iterator(
> > DataFeatureCollection.java:193 )
> > at org.geotools.feature.FeatureIterator.<init>(
> > FeatureIterator.java:42 )
> > at org.geotools.data.store.DataFeatureCollection.features(
> > DataFeatureCollection.java:174 )
> > at
> >
> gov.faa.infra.foms.web.schedulingapplet.geomap.TransformData.changeProjection(
>
> > TransformData.java:53 )
> > ... 3 more
> > Caused by: org.xml.sax.SAXException : Could not find element handler for
> > http://www.opengis.net/gml : Point as a child of GeometryAssociationType.
> > at org.geotools.xml.XMLSAXHandler.startElement(
> > XMLSAXHandler.java:333 )
> > at org.apache.crimson.parser.Parser2.maybeElement(
> > Parser2.java:1672 )
> > at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> > at org.apache.crimson.parser.Parser2.maybeElement(
> > Parser2.java:1691 )
> > at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> > at org.apache.crimson.parser.Parser2.maybeElement(
> > Parser2.java:1691 )
> > at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> > at org.apache.crimson.parser.Parser2.maybeElement(
> > Parser2.java:1691 )
> > at org.apache.crimson.parser.Parser2.content( Parser2.java:1963 )
> > at org.apache.crimson.parser.Parser2.maybeElement(
> > Parser2.java:1691 )
> > at org.apache.crimson.parser.Parser2.parseInternal(
> > Parser2.java:667 )
> > at org.apache.crimson.parser.Parser2.parse( Parser2.java:337 )
> > at org.apache.crimson.parser.XMLReaderImpl.parse(
> > XMLReaderImpl.java:448 )
> > at javax.xml.parsers.SAXParser.parse( SAXParser.java:345 )
> > at javax.xml.parsers.SAXParser.parse( SAXParser.java:143 )
> > at org.geotools.xml.DocumentFactory.getInstance(
> > DocumentFactory.java:139 )
> > at org.geotools.data.wfs.WFSFeatureReader.run(
> > WFSFeatureReader.java:123 )
> > ********* end of Exception info ******
> >
> > Josh Moore
> > Information Engineer
> > Titan
> > ph: 405-954-4314 ext. 4314
>
>
> --
> Justin Deoliveira
> The Open Planning Project
> http://topp.openplans.org
>

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