Hi list,
I have tried to create/delete polygon features using a WFS(transact)
service from a Geoserver 1.3.2 with an ArcSDE 9.1 as Datastore updated
with DataStore Extras 1.3.x+.
Using DeeJump as a client to delete a WFS feature - succeeds.
Digitising a new simple polygon causes an exception in geoserver when it
is inserted. The exception says:
4357578 [FINE] org.vfny.geoserver.ServiceException - return wfs
exception is <?
xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://XXXXXX:8080/geoserver/s
chemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException
locator="org.vfny.geoserver.util.requests.readers.Dispatche
rXmlReader">
org.xml.sax.SAXParseException: The prefix "nja" for
element &quo
t;nja:GISDB.DBO.NJAKOM" is not bound.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.vfny.geoserver.util.requests.readers.DispatcherXmlReader.read(Dis
patcherXmlReader.java:81)
at
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.ja
va:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
) ..........
.............
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
</ServiceException>
</ServiceExceptionReport>
Is this a DeeJump bug ? Or is it a Geoserver/ArcSDE problem dealing with
layernames that is prefixed (GISdb.dbo.layername)? It was not
recommended to use aliases.
The latest versions of Udig can delete features as well. It was not
possible to create and insert a new feature - a popup stated that new
features may not be created for this type of service.
Commiting an insert transaction (see below) from a browser returned a
succes statement.
<?xml version="1.0" encoding="UTF-8"?>
<wfs:Transaction service="WFS" version="1.0.0"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:nja="http://www.nja.dk/nja"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nja.dk/nja
http://w2ksde:8080/geoserver/wfs/DescribeFeatureType?typeName=nja:GISDB.
DBO.NJAKOM http://www.opengis.net/wfs
http://XXXXXX:8080/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd">
<wfs:Insert>
<nja:GISDB.DBO.NJAKOM>
<nja:NAVN>geoserver</nja:NAVN>
<nja:ADM_KODE>999.0</nja:ADM_KODE>
<nja:SHAPE>
<gml:MultiPolygon
srsName="http://www.opengis.net/gml/srs/epsg.xml#25832">
<gml:polygonMember>
<gml:Polygon fid="GISDB.DBO.NJAKOM.49999"
srsName="http://www.opengis.net/gml/srs/epsg.xml#25832" >
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">550126.0770381048,6321898.298119422
550706.2523645026,6321951.735320538 550744.4217938709,6321325.756678898
550156.6125815994,6321264.685591909
550126.0770381048,6321898.298119422</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</nja:SHAPE>
</nja:GISDB.DBO.NJAKOM>
</wfs:Insert>
</wfs:Transaction>
-----
/Poul Toft
Well, all that error is saying is that the line:
xmlns:nja="http://www.nja.dk/nja"
in the one you inserted by hand (one of the Transaction attributes) is not being included in the DeeJump insert. So I would say it's a problem with DeeJump not quite forming the XML right. Since the error is in the dispatcher it means it's not even getting to anything with geoserver layers, it's in the initial parsing.
best regards,
Chris
Poul Toft Laustsen / Nordjyllands Amt wrote:
Hi list,
I have tried to create/delete polygon features using a WFS(transact)
service from a Geoserver 1.3.2 with an ArcSDE 9.1 as Datastore updated
with DataStore Extras 1.3.x+.
Using DeeJump as a client to delete a WFS feature - succeeds. Digitising a new simple polygon causes an exception in geoserver when it
is inserted. The exception says:
4357578 [FINE] org.vfny.geoserver.ServiceException - return wfs
exception is <?
xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://XXXXXX:8080/geoserver/s
chemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException
locator="org.vfny.geoserver.util.requests.readers.Dispatche
rXmlReader">
org.xml.sax.SAXParseException: The prefix "nja" for
element &quo
t;nja:GISDB.DBO.NJAKOM" is not bound.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.vfny.geoserver.util.requests.readers.DispatcherXmlReader.read(Dis
patcherXmlReader.java:81)
at
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.ja
va:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
) .......... .............
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
</ServiceException>
</ServiceExceptionReport>
Is this a DeeJump bug ? Or is it a Geoserver/ArcSDE problem dealing with
layernames that is prefixed (GISdb.dbo.layername)? It was not
recommended to use aliases.
The latest versions of Udig can delete features as well. It was not
possible to create and insert a new feature - a popup stated that new
features may not be created for this type of service.
Commiting an insert transaction (see below) from a browser returned a
succes statement.
<?xml version="1.0" encoding="UTF-8"?>
<wfs:Transaction service="WFS" version="1.0.0"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:nja="http://www.nja.dk/nja"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nja.dk/nja
http://w2ksde:8080/geoserver/wfs/DescribeFeatureType?typeName=nja:GISDB.
DBO.NJAKOM http://www.opengis.net/wfs
http://XXXXXX:8080/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd">
<wfs:Insert>
<nja:GISDB.DBO.NJAKOM>
<nja:NAVN>geoserver</nja:NAVN>
<nja:ADM_KODE>999.0</nja:ADM_KODE>
<nja:SHAPE>
<gml:MultiPolygon
srsName="http://www.opengis.net/gml/srs/epsg.xml#25832">
<gml:polygonMember>
<gml:Polygon fid="GISDB.DBO.NJAKOM.49999"
srsName="http://www.opengis.net/gml/srs/epsg.xml#25832" >
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">550126.0770381048,6321898.298119422
550706.2523645026,6321951.735320538 550744.4217938709,6321325.756678898
550156.6125815994,6321264.685591909 550126.0770381048,6321898.298119422</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</nja:SHAPE>
</nja:GISDB.DBO.NJAKOM>
</wfs:Insert>
</wfs:Transaction>
-----
/Poul Toft
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,44b56fca33971194215290!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org