From: Jernej K. (JIRA) <ji...@co...> - 2013-03-29 10:45:59
|
<style> /* Changing the layout to use less space for mobiles */ @media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) { #email-body { min-width: 30em !important; } #email-page { padding: 8px !important; } #email-banner { padding: 8px 8px 0 8px !important; } #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; } #email-fields { padding: 0 8px 8px 8px !important; } #email-gutter { width: 0 !important; } } </style> <div id="email-body"> <table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;"> <tr valign="top"> <td id="email-page" style="padding:16px !important;"> <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;"> <tr valign="top"> <td bgcolor="#ffffff" style="background-color:#ffffff;color:#00AA00;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="http://www.codehaus.org/codehaus-small.gif" alt="" style="vertical-align:top;" /></td> </tr><tr valign="top"> <td id="email-banner" style="padding:32px 32px 0 32px;"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;"> <tr valign="top"> <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;"> <img id="email-avatar" src="https://jira.codehaus.org/secure/useravatar?avatarId=10232" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" /> <div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;"> <a class="user-hover" rel="jernej" id="email_jernej" href="https://jira.codehaus.org/secure/ViewProfile.jspa?name=jernej" style="color:#005500;">Jernej Korinsek</a> created <img src="https://jira.codehaus.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#005500;text-decoration:none;' href='https://jira.codehaus.org/browse/GEOS-5739'>GEOS-5739</a> </div> <div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;"> <a style='color:#005500;text-decoration:none;' href='https://jira.codehaus.org/browse/GEOS-5739'><strong>WFS 2.0.0 request specifying resultType causes Exception when using wfs? without service=WFS</strong></a> </div> </td> </tr> </table> </td> </tr> <tr valign="top"> <td id="email-fields" style="padding:0 32px 32px 32px;"> <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%"> <tr valign="top"> <td id="email-gutter" style="width:64px;white-space:nowrap;"></td> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Issue Type:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> <img src="https://jira.codehaus.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> Bug </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Affects Versions:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> 2.3.0 </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Assignee:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> <a class="user-hover" rel="aaime" id="email_aaime" href="https://jira.codehaus.org/secure/ViewProfile.jspa?name=aaime" style="color:#005500;">Andrea Aime</a> </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Components:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> WFS </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Created:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> 29/Mar/13 5:44 AM </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Description:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> <p style='margin-top:0;margin-bottom:10px;'>A WFS 2.0.0 request specifying resultType like this:<br/> <a href="http://example.com/geoserver/wfs?version=2.0.0&request=GetFeature&typeName=sf:bugsites&resultType=hits" class="external-link">http://example.com/geoserver/wfs?version=2.0.0&request=GetFeature&typeName=sf:bugsites&resultType=hits</a><br/> returns an exception:<br/> <ows:ExceptionReport version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 <a href="http://example.com/geoserver/schemas/ows/1.1.0/owsAll.xsd" class="external-link">http://example.com/geoserver/schemas/ows/1.1.0/owsAll.xsd</a>"><ows:Exception exceptionCode="InvalidParameterValue" locator="RESULTTYPE"><ows:ExceptionText>Failed to set property RESULTTYPE in request object using value hits of type class net.opengis.wfs.ResultTypeType<br/> net.opengis.wfs.ResultTypeType cannot be cast to net.opengis.wfs20.ResultTypeType</ows:ExceptionText></ows:Exception></ows:ExceptionReport></p> <p style='margin-top:0;margin-bottom:10px;'>The same 2.0.0 request specifying resultType=results yields a similar Exception. However, specifying WFS 1.1.0 works.</p> <p style='margin-top:0;margin-bottom:10px;'>Digging deeper, adding ?service=WFS like this:<br/> <a href="http://example.com/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typeName=sf:bugsites&resultType=hits" class="external-link">http://example.com/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typeName=sf:bugsites&resultType=hits</a><br/> also works for 2.0.0 and 1.1.0.</p> <p style='margin-top:0;margin-bottom:10px;'>That being said, using ows? like this:<br/> <a href="http://example.com/geoserver/sf/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=sf:bugsites&resultType=hits" class="external-link">http://example.com/geoserver/sf/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=sf:bugsites&resultType=hits</a><br/> also works due to service=WFS being specified.</p> <p style='margin-top:0;margin-bottom:10px;'>Stack trace:<br/> 29 Mar 11:38:49 TRACE <span class="error">[org.geoserver.ows.OWSHandlerMapping]</span> - No handler mapping found for <span class="error">[/wfs]</span><br/> 29 Mar 11:38:49 TRACE <span class="error">[org.geoserver.ows.OWSHandlerMapping]</span> - No handler mapping found for <span class="error">[/wfs]</span><br/> 29 Mar 11:38:49 TRACE <span class="error">[org.geoserver.ows.OWSHandlerMapping]</span> - No handler mapping found for <span class="error">[/wfs]</span><br/> 29 Mar 11:38:49 DEBUG <span class="error">[org.geoserver.ows.OWSHandlerMapping]</span> - Mapping <span class="error">[/wfs]</span> to HandlerExecutionChain with handler <span class="error">[org.geoserver.ows.Dispatcher@7a199711]</span> an<br/> d 1 interceptor<br/> 29 Mar 11:38:49 INFO <span class="error">[org.geoserver.wfs]</span> -<br/> Request: getServiceInfo<br/> 29 Mar 11:38:49 ERROR <span class="error">[org.geoserver.ows]</span> -<br/> org.geoserver.platform.ServiceException: Failed to set property RESULTTYPE in request object using value hits of type class net.opengis.wfs.ResultTypeType<br/> at org.geoserver.ows.kvp.EMFKvpRequestReader.read(EMFKvpRequestReader.java:98)<br/> at org.geoserver.wfs.kvp.GetFeatureKvpRequestReader.read(GetFeatureKvpRequestReader.java:93)<br/> at org.geoserver.wfs.kvp.v2_0.GetFeatureKvpRequestReader.read(GetFeatureKvpRequestReader.java:39)<br/> at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1412)<br/> at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:622)<br/> at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:263)<br/> at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br/> at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)<br/> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)<br/> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)<br/> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)<br/> at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)<br/> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br/> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)<br/> at org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:87)<br/> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)<br/> at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)<br/> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)<br/> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)<br/> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)<br/> at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)<br/> at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:82)<br/> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)<br/> at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)<br/> at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:46)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)<br/> at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)<br/> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br/> at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)<br/> at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:103)<br/> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)<br/> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br/> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br/> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br/> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br/> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)<br/> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br/> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br/> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)<br/> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)<br/> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)<br/> at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)<br/> at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)<br/> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)<br/> at java.lang.Thread.run(Thread.java:662)<br/> Caused by: java.lang.ClassCastException: net.opengis.wfs.ResultTypeType cannot be cast to net.opengis.wfs20.ResultTypeType<br/> at net.opengis.wfs20.impl.GetFeatureTypeImpl.eSet(GetFeatureTypeImpl.java:772)<br/> at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1081)<br/> at org.geotools.xml.EMFUtils.set(EMFUtils.java:69)<br/> at org.geoserver.ows.kvp.EMFKvpRequestReader.read(EMFKvpRequestReader.java:95)<br/> ... 85 more<br/> 29 Mar 11:38:49 DEBUG <span class="error">[org.geoserver.filters]</span> - Compressing output for mimetype: application/xml<br/> 29 Mar 11:38:49 INFO <span class="error">[org.geoserver.flow]</span> - Running requests: -15, processing through flow controllers: 0<br/> 29 Mar 11:38:49 DEBUG <span class="error">[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1]</span> - SecurityContextHolder now cleared, as request processing<br/> completed</p> </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Environment:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> Linux 3.2.0-0.bpo.2-amd64 <br/> Debian GNU/Linux 6.0.7 (squeeze) </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Project:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> <a style="color:#005500;" href="https://jira.codehaus.org/browse/GEOS">GeoServer</a> </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Priority:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> <img src="https://jira.codehaus.org/images/icons/priorities/minor.png" height="16" width="16" border="0" align="absmiddle" alt="Minor"> Minor </td> </tr> <tr valign="top"> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;"> <strong style="font-weight:normal;color:#505050;">Reporter:</strong> </td> <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;"> <a class="user-hover" rel="jernej" id="email_jernej" href="https://jira.codehaus.org/secure/ViewProfile.jspa?name=jernej" style="color:#005500;">Jernej Korinsek</a> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td><!-- End #email-page --> </tr> <tr valign="top"> <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;"> This message is automatically generated by JIRA.<br /> If you think it was sent incorrectly, please contact your JIRA administrators<br /> For more information on JIRA, see: <a style='color:#005500;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a> </td> </tr> </table><!-- End #email-wrap --> </div><!-- End #email-body --> |