[Geoserver-users] Add GML Datasource --> SAXException: Timeout

Hi all,

I'm trying to add GML File as datasource with the gt-gml librairy but
the server throws a SAXException...
The gml file has been validated with XMLSpy ( and the Structure too )
but this exception appear in the console:

WARN [geoserver.action] - Unable to fetch a list of FeatureType names
from datastore.
java.io.IOException: org.xml.sax.SAXException: Timeout
  at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:291)
  at org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:156)
  at org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:119)
  at org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:164)
  at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  (...)
Caused by: org.xml.sax.SAXException: Timeout
  at org.geotools.xml.gml.FCBuffer.getFeatureType(FCBuffer.java:227)
  at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:200)
  at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:188)
  at org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:154)
  ... 56 more

If I try the same action with a basic gml file ( 1 lines of 2 points )
the same problem appear....

I suppose that the probleme comes from the structure reading but.....

Any idea??

Simon Janssens ha scritto:

Hi all,

I'm trying to add GML File as datasource with the gt-gml librairy but
the server throws a SAXException...
The gml file has been validated with XMLSpy ( and the Structure too )
but this exception appear in the console:

WARN [geoserver.action] - Unable to fetch a list of FeatureType names
from datastore.
java.io.IOException: org.xml.sax.SAXException: Timeout
  at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:291)
  at org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:156)
  at org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:119)
  at org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:164)
  at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  (...)
Caused by: org.xml.sax.SAXException: Timeout
  at org.geotools.xml.gml.FCBuffer.getFeatureType(FCBuffer.java:227)
  at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:200)
  at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:188)
  at org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:154)
  ... 56 more

If I try the same action with a basic gml file ( 1 lines of 2 points )
the same problem appear....

I suppose that the probleme comes from the structure reading but.....

That datastore, to my knowledge, assumes you have a schema file with the
same name as your gml file, but with an .xsd extension, sitting next to it.
Serving data out of GML is going to be painfully slow anyways. You should consider using ogr2ogr to convert your GML to something more
amenable to fast web serving, such as a shapefile or postgis.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Adreas,

I've put the structure and the gml file at the same place, the
structure main file and the gml file have now the same name ( except
the extention ). But no change.. I have the same SAX Exception
(Timeout).

I would like to keep the gml file as input with no regards to the speed...

Is it possible to modify the timeout value???

2009/2/17, Andrea Aime <aaime@anonymised.com>:

Simon Janssens ha scritto:

Hi all,

I'm trying to add GML File as datasource with the gt-gml librairy but
the server throws a SAXException...
The gml file has been validated with XMLSpy ( and the Structure too )
but this exception appear in the console:

WARN [geoserver.action] - Unable to fetch a list of FeatureType names
from datastore.
java.io.IOException: org.xml.sax.SAXException: Timeout
  at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:291)
  at
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:156)
  at
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:119)
  at
org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:164)
  at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
  at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  (...)
Caused by: org.xml.sax.SAXException: Timeout
  at org.geotools.xml.gml.FCBuffer.getFeatureType(FCBuffer.java:227)
  at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:200)
  at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:188)
  at
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:154)
  ... 56 more

If I try the same action with a basic gml file ( 1 lines of 2 points )
the same problem appear....

I suppose that the probleme comes from the structure reading but.....

That datastore, to my knowledge, assumes you have a schema file with the
same name as your gml file, but with an .xsd extension, sitting next to it.
Serving data out of GML is going to be painfully slow anyways. You
should consider using ogr2ogr to convert your GML to something more
amenable to fast web serving, such as a shapefile or postgis.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

I’m trying to perform a test with InlineFeature, using as examples the links:

For this, I downloaded the shape, but can not make the example work, someone has already done this example?

http://giswebservices.massgis.state.ma.us/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=GISDATA.SCHOOLDISTELEM_POLY&outputformat=SHAPE-ZIP

Best Regards,

Fernando Quadro
http://fernandoquadro.com.br
fsquadro@anonymised.com

Date: Tue, 17 Feb 2009 16:11:04 +0100
From: cid.le.dingue@anonymised.com
To: aaime@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Re : Add GML Datasource → SAXException: Timeout

Adreas,

I’ve put the structure and the gml file at the same place, the
structure main file and the gml file have now the same name ( except
the extention ). But no change… I have the same SAX Exception
(Timeout).

I would like to keep the gml file as input with no regards to the speed…

Is it possible to modify the timeout value???

2009/2/17, Andrea Aime aaime@anonymised.com:

Simon Janssens ha scritto:

Hi all,

I’m trying to add GML File as datasource with the gt-gml librairy but
the server throws a SAXException…
The gml file has been validated with XMLSpy ( and the Structure too )
but this exception appear in the console:

WARN [geoserver.action] - Unable to fetch a list of FeatureType names
from datastore.
java.io.IOException: org.xml.sax.SAXException: Timeout
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:291)
at
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:156)
at
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:119)
at
org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:164)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
(…)
Caused by: org.xml.sax.SAXException: Timeout
at org.geotools.xml.gml.FCBuffer.getFeatureType(FCBuffer.java:227)
at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:200)
at org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:188)
at
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:154)
… 56 more

If I try the same action with a basic gml file ( 1 lines of 2 points )
the same problem appear…

I suppose that the probleme comes from the structure reading but…

That datastore, to my knowledge, assumes you have a schema file with the
same name as your gml file, but with an .xsd extension, sitting next to it.
Serving data out of GML is going to be painfully slow anyways. You
should consider using ogr2ogr to convert your GML to something more
amenable to fast web serving, such as a shapefile or postgis.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já!

Styling only applies for WMS requests. If you want to create a
Shapefile that contains just some hand-made geometries, you will need to
do something else. A few ideas using GeoServer that come to mind:
* pull the GML geometry out of the SLD you've already written and use
the GML datastore extension to serve it via GeoServer
* make a new, empty PostGIS table and use the WKT encoding to specify
your geometry (it is moderately terser than the GML), serve it via
GeoServer
* make a new, empty PostGIS table and serve it via GeoServer. use
OpenLayers as a WFS-T client to hand-draw your custom geometry.

It might be easier to just use a desktop application such as uDig or
QGis.

Hope this helps.

--
David Winslow
OpenGeo - http://opengeo.org/

On Tue, 2009-02-17 at 16:36 -0300, Fernando Quadro wrote:

Hi,

I'm trying to perform a test with InlineFeature, using as examples the
links:

- http://geoserver.org/display/GEOSDOC/OGC+SLD+Explanations+and
+Samples
-
http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_feature&s=sld

For this, I downloaded the shape, but can not make the example work,
someone has already done this example?

http://giswebservices.massgis.state.ma.us/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=GISDATA.SCHOOLDISTELEM_POLY&outputformat=SHAPE-ZIP

Best Regards,

Fernando Quadro
http://fernandoquadro.com.br
fsquadro@anonymised.com

> Date: Tue, 17 Feb 2009 16:11:04 +0100
> From: cid.le.dingue@anonymised.com
> To: aaime@anonymised.com
> CC: geoserver-users@lists.sourceforge.net
> Subject: [Geoserver-users] Re : Add GML Datasource --> SAXException:
Timeout
>
> Adreas,
>
> I've put the structure and the gml file at the same place, the
> structure main file and the gml file have now the same name ( except
> the extention ). But no change.. I have the same SAX Exception
> (Timeout).
>
> I would like to keep the gml file as input with no regards to the
speed...
>
> Is it possible to modify the timeout value???
>
> 2009/2/17, Andrea Aime <aaime@anonymised.com>:
> > Simon Janssens ha scritto:
> >> Hi all,
> >>
> >> I'm trying to add GML File as datasource with the gt-gml librairy
but
> >> the server throws a SAXException...
> >> The gml file has been validated with XMLSpy ( and the Structure
too )
> >> but this exception appear in the console:
> >>
> >> WARN [geoserver.action] - Unable to fetch a list of FeatureType
names
> >> from datastore.
> >> java.io.IOException: org.xml.sax.SAXException: Timeout
> >> at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:291)
> >> at
> >>
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:156)
> >> at
> >>
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:119)
> >> at
> >>
org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:164)
> >> at
org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
> >> at
> >>
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> >> at
> >>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> >> at
> >>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> >> at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> >> (...)
> >> Caused by: org.xml.sax.SAXException: Timeout
> >> at
org.geotools.xml.gml.FCBuffer.getFeatureType(FCBuffer.java:227)
> >> at
org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:200)
> >> at
org.geotools.xml.gml.FCBuffer.getFeatureReader(FCBuffer.java:188)
> >> at
> >>
org.geotools.data.gml.FileGMLDataStore.getSchema(FileGMLDataStore.java:154)
> >> ... 56 more
> >>
> >> If I try the same action with a basic gml file ( 1 lines of 2
points )
> >> the same problem appear....
> >>
> >> I suppose that the probleme comes from the structure reading
but.....
> >
> > That datastore, to my knowledge, assumes you have a schema file
with the
> > same name as your gml file, but with an .xsd extension, sitting
next to it.
> > Serving data out of GML is going to be painfully slow anyways. You
> > should consider using ogr2ogr to convert your GML to something
more
> > amenable to fast web serving, such as a shapefile or postgis.
> >
> > Cheers
> > Andrea
> >
> > --
> > Andrea Aime
> > OpenGeo - http://opengeo.org
> > Expert service straight from the developers.
> >
>
>
------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
> -Strategies to boost innovation and cut costs with open source
participation
> -Receive a $600 discount off the registration fee with the source
code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

______________________________________________________________________
Veja mapas e encontre as melhores rotas para fugir do trânsito com o
Live Search Maps! Experimente já!
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users

Fernando Quadro ha scritto:

Hi,

I'm trying to perform a test with InlineFeature, using as examples the links:

- http://geoserver.org/display/GEOSDOC/OGC+SLD+Explanations+and+Samples
- http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_feature&s=sld

Never tried out the MASSGIS example, but have you checked out the
ones included as demo calls in with the GeoServer releases?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea,

I dont see the included in Geoserver, where are they?

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com

Date: Wed, 18 Feb 2009 08:48:02 +0100
From: aaime@anonymised.com
To: fsquadro@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] InlineFeature - How use?

Fernando Quadro ha scritto:

Hi,

I’m trying to perform a test with InlineFeature, using as examples the
links:

http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_feature&s=sld

Never tried out the MASSGIS example, but have you checked out the
ones included as demo calls in with the GeoServer releases?

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já!

Under demo requests, for example http://sigma.openplans.org/geoserver/demoRequestSubmit.do

-Arne

Fernando Quadro wrote:

Andrea,

I dont see the included in Geoserver, where are they?

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com

> Date: Wed, 18 Feb 2009 08:48:02 +0100
> From: aaime@anonymised.com
> To: fsquadro@anonymised.com
> CC: geoserver-users@lists.sourceforge.net
> Subject: Re: [Geoserver-users] InlineFeature - How use?
>
> Fernando Quadro ha scritto:
> > Hi,
> >
> > I'm trying to perform a test with InlineFeature, using as examples the
> > links:
> >
> > - http://geoserver.org/display/GEOSDOC/OGC+SLD+Explanations+and+Samples
> > -
> > http://lyceum.massgis.state.ma.us/wiki/doku.php?id=wms:sld:inline_feature&s=sld
>
> Never tried out the MASSGIS example, but have you checked out the
> ones included as demo calls in with the GeoServer releases?
>
> Cheers
> Andrea
>
> --
> Andrea Aime
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.

------------------------------------------------------------------------
Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já! <http://www.livemaps.com.br/index.aspx?tr=true&gt;
------------------------------------------------------------------------

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers