Hi Efren,
I think you have found a bug. When no filter is supplied the PostgisFeatureStore doesn't handle it properly. I am going to make a jira task about this one.
http://jira.codehaus.org/browse/GEOS-449
Justin
Efren Serra wrote:
Hello Justin,
I tried submitting the following wfs:Transaction to my WFS but it failed
with the exception below. I was wondering if you had any clues as to the
java.lang.ClassCastException that got thrown. Thank you.v/r,
Efren<wfs:Transaction service="WFS" version="1.0.0"
xmlns:cdf="http://www.opengis.net/cite/data"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wfs="http://www.opengis.net/wfs">
xmlns:jillnic="http://www1.metnet.navy.mil/jillnic">
<wfs:Delete typeName="jillnic:pressure"/>
<wfs:Delete typeName="jillnic:humidity"/>
<wfs:Delete typeName="jillnic:temperature"/>
<wfs:Delete typeName="jillnic:wind_speed"/>
</wfs:Transaction>------------XML POST END-----------
22:38:20,357 INFO [STDOUT]
22:38:20,358 INFO [STDOUT]
22:38:20,362 INFO [STDOUT]
22:38:20,364 INFO [STDOUT]
22:38:20,365 INFO [STDOUT]
22:38:20,366 INFO [STDOUT]
22:38:20,368 INFO [STDOUT]
releaseAction: ALL
handle: null
Delete Feature Request
feature type:jillnic:pressure
filter:Filter.NONE
release:true
Delete Feature Request
feature type:jillnic:humidity
filter:Filter.NONE
release:true
Delete Feature Request
feature type:jillnic:temperature
filter:Filter.NONE
release:true
Delete Feature Request
feature type:jillnic:wind_speed
filter:Filter.NONE
release:true
22:38:20,369 INFO [STDOUT]
22:38:20,384 INFO [STDOUT]
releaseAction: ALL
handle: null
Delete Feature Request
feature type:jillnic:pressure
filter:Filter.NONE
release:true
Delete Feature Request
feature type:jillnic:humidity
filter:Filter.NONE
release:true
Delete Feature Request
feature type:jillnic:temperature
filter:Filter.NONE
release:true
Delete Feature Request
feature type:jillnic:wind_speed
filter:Filter.NONE
release:true
22:38:20,389 INFO [STDOUT]
22:38:20,390 INFO [STDOUT]
22:38:20,391 INFO [STDOUT]
22:38:20,392 INFO [STDOUT]
22:38:20,393 INFO [STDOUT]
22:38:20,394 INFO [STDOUT]
22:38:20,395 INFO [STDOUT]
22:38:20,396 INFO [STDOUT]
22:38:20,397 INFO [STDOUT]
22:38:20,398 INFO [STDOUT]
22:38:20,399 INFO [STDOUT]
22:38:20,400 INFO [STDOUT]
22:38:20,401 INFO [STDOUT]
22:38:20,402 INFO [STDOUT]
22:38:20,403 INFO [STDOUT]
22:38:20,407 INFO [STDOUT]
22:38:20,408 INFO [STDOUT]
22:38:20,412 INFO [STDOUT]
22:38:20,413 INFO [STDOUT]
22:38:20,418 INFO [STDOUT]
22:38:20,419 INFO [STDOUT]
22:38:20,423 INFO [STDOUT]
22:38:20,425 INFO [STDOUT]
StackTrace: java.lang.ClassCastException
at
org.geotools.data.postgis.PostgisFeatureStore.removeFeatures(PostgisFeatureS
tore.java:384)
at
org.vfny.geoserver.global.GeoServerFeatureStore.removeFeatures(GeoServerFeat
ureStore.java:87)
at
org.vfny.geoserver.wfs.responses.TransactionResponse.execute(TransactionResp
onse.java:381)
at
org.vfny.geoserver.wfs.responses.TransactionResponse.execute(TransactionResp
onse.java:105)
at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:4
22)
at
org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:360)
at
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doResponse(WfsDispatcher.java:
274)
at
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.java:163)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:297)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:371)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:731)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:859)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)
22:38:20,426 INFO [STDOUT]
<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://www1.metnet.navy.mil:80/geoserver/data/capabilities//wfs/1.0.0/OGC-ex
ception.xsd">
<ServiceException>
java.lang.ClassCastException </ServiceException>
</ServiceExceptionReport>
22:38:20,426 INFO [STDOUT] org.vfny.geoserver.wfs.WfsException:
java.lang.ClassCastException
22:38:20,427 INFO [STDOUT] at
org.vfny.geoserver.wfs.WfsExceptionHandler.newServiceException(WfsExceptionH
andler.java:65)
22:38:20,427 INFO [STDOUT] at
org.vfny.geoserver.servlets.AbstractService.sendError(AbstractService.java:7
22)
22:38:20,427 INFO [STDOUT] at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:4
34)
22:38:20,427 INFO [STDOUT] at
org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:360)
22:38:20,427 INFO [STDOUT] at
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doResponse(WfsDispatcher.java:
274)
22:38:20,427 INFO [STDOUT] at
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.java:163)
22:38:20,428 INFO [STDOUT] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
22:38:20,428 INFO [STDOUT] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
22:38:20,428 INFO [STDOUT] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
22:38:20,429 INFO [STDOUT] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Unknown
Source)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
22:38:20,429 INFO [STDOUT] at
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(Unknown Source)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
22:38:20,429 INFO [STDOUT] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
22:38:20,430 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
22:38:20,430 INFO [STDOUT] at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
22:38:20,430 INFO [STDOUT] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
22:38:20,430 INFO [STDOUT] at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
22:38:20,430 INFO [STDOUT] at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
22:38:20,430 INFO [STDOUT] at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
22:38:20,430 INFO [STDOUT] at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
22:38:20,430 INFO [STDOUT] at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:297)
22:38:20,431 INFO [STDOUT] at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:371)
22:38:20,431 INFO [STDOUT] at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:731)
22:38:20,431 INFO [STDOUT] at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
22:38:20,431 INFO [STDOUT] at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:859)
22:38:20,431 INFO [STDOUT] at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
22:38:20,431 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
22:38:20,431 INFO [STDOUT] Caused by: java.lang.ClassCastException
22:38:20,431 INFO [STDOUT] at
org.geotools.data.postgis.PostgisFeatureStore.removeFeatures(PostgisFeatureS
tore.java:384)
22:38:20,431 INFO [STDOUT] at
org.vfny.geoserver.global.GeoServerFeatureStore.removeFeatures(GeoServerFeat
ureStore.java:87)
22:38:20,432 INFO [STDOUT] at
org.vfny.geoserver.wfs.responses.TransactionResponse.execute(TransactionResp
onse.java:381)
22:38:20,432 INFO [STDOUT] at
org.vfny.geoserver.wfs.responses.TransactionResponse.execute(TransactionResp
onse.java:105)
22:38:20,432 INFO [STDOUT] at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:4
22)
22:38:20,432 INFO [STDOUT] ... 35 more
22:38:41,778 INFO [STDOUT]
22:38:41,779 INFO [STDOUT]
22:38:41,780 INFO [STDOUT]
22:38:41,781 INFO [STDOUT]
22:38:41,791 INFO [STDOUT]
22:38:41,792 INFO [STDOUT]
22:38:41,793 INFO [STDOUT]
22:38:41,794 INFO [STDOUT]
22:38:41,795 INFO [STDOUT]
22:38:41,796 INFO [STDOUT]
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org