[Geoserver-devel] [jira] Created: (GEOS-1555) KML-ows5 output format seems to catch every other output format

KML-ows5 output format seems to catch every other output format
---------------------------------------------------------------

                 Key: GEOS-1555
                 URL: http://jira.codehaus.org/browse/GEOS-1555
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: Community

On geo Arne has deployed kml-ows5 and the result was:
* all wms outputs were kml...
* a pergen oom occurred (this is probably unrelated thought)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

Hello,

I’ve switch from 1.6 beta3 to 1.6-RC1 and now i have some troubles with user defined projection ( in data directory ) and wfs getMap Request.
If anyone has an idea…

EPSG:900913 works for wms request but now fails with wfs.

my request is like that:

/geoserver/wfs?REQUEST=GetFeature&SRS=EPSG%3A900913&SRSName=EPSG%3A900913&VERSION=1.0.0&SERVICE=WFS&
maxfeatures=60&typename=topp%3ACOMMUNE_BV_CRE_WGS84
&BBOX=-174708.70508,6099032.146625,-98258.433018,6161339.313636,EPSG:900913&extractAttributes=true&outputFormat=json

and i receive :

      java.lang.RuntimeException: Could not decode srs '[http://www.opengis.net/gml/srs/epsg.xml#900913](http://www.opengis.net/gml/srs/epsg.xml#900913)'
java.lang.RuntimeException: Could not decode srs '[http://www.opengis.net/gml/srs/epsg.xml#900913](http://www.opengis.net/gml/srs/epsg.xml#900913)'
java.lang.RuntimeException: Could not decode srs '[http://www.opengis.net/gml/srs/epsg.xml#900913](http://www.opengis.net/gml/srs/epsg.xml#900913)'
Details:
org.geoserver.platform.ServiceException: java.lang.RuntimeException: Could not decode srs '[http://www.opengis.net/gml/srs/epsg.xml#900913](http://www.opengis.net/gml/srs/epsg.xml#900913)'
	at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1146)
	at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:198)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	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(StandardValveContext.java:104)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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(StandardValveContext.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:300)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: Could not decode srs '[http://www.opengis.net/gml/srs/epsg.xml#900913](http://www.opengis.net/gml/srs/epsg.xml#900913)'
	at org.geoserver.wfs.ReprojectingFilterVisitor.visit(ReprojectingFilterVisitor.java:103)
	at org.geotools.filter.spatial.BBOXImpl.accept(BBOXImpl.java:116)
	at org.geoserver.wfs.WFSReprojectionUtil.reprojectFilter(WFSReprojectionUtil.java:87)
	at org.geoserver.wfs.WFSReprojectionUtil.normalizeFilterCRS(WFSReprojectionUtil.java:102)
	at org.geoserver.wfs.GetFeature.toDataQuery(GetFeature.java:367)
	at org.geoserver.wfs.GetFeature.run(GetFeature.java:250)
	at org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:108)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
	at org.geoserver.wfs.WFSLogger.invoke(WFSLogger.java:44)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
	at $Proxy0.getFeature(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.geoserver.security.OperationSecurityInterceptor.invoke(OperationSecurityInterceptor.java:41)
	at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:488)
	at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:188)
	... 53 more
Caused by: org.opengis.referencing.NoSuchAuthorityCodeException: Aucun code "EPSG:900913" de l'autorit� "European Petroleum Survey Group" n'a �t� trouv� pour un objet de type "CoordinateReferenceSystem".
	at org.geotools.referencing.factory.AbstractAuthorityFactory.noSuchAuthorityCode(AbstractAuthorityFactory.java:859)
	at org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateReferenceSystem(DirectEpsgFactory.java:1994)
	at org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:715)
	at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:744)
	at org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:715)
	at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:744)
	at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:744)
	at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:744)
	at org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:715)
	at org.geotools.referencing.CRS.decode(CRS.java:416)
	at org.geotools.referencing.CRS.decode(CRS.java:350)
	at org.geoserver.wfs.ReprojectingFilterVisitor.visit(ReprojectingFilterVisitor.java:84)
	... 77 more

Thanks in advance for your help

···


Damien DESPRES
ddespres@anonymised.com
02 99 65 77 45

24 bis, rue du Maréchal Joffre
35200 RENNES

www.sigbea.fr

DESPRES Damien ha scritto:

Hello,

I've switch from 1.6 beta3 to 1.6-RC1 and now i have some troubles with user defined projection ( in data directory ) and wfs getMap Request.
If anyone has an idea...

EPSG:900913 works for wms request but now fails with wfs.

my request is like that:

/geoserver/wfs?REQUEST=GetFeature&SRS=EPSG%3A900913&SRSName=EPSG%3A900913&VERSION=1.0.0&SERVICE=WFS&
maxfeatures=60&typename=topp%3ACOMMUNE_BV_CRE_WGS84
&BBOX=-174708.70508,6099032.146625,-98258.433018,6161339.313636,EPSG:900913&extractAttributes=true&outputFormat=json

and i receive :

      java.lang.RuntimeException: Could not decode srs 'http://www.opengis.net/gml/srs/epsg.xml#900913
java.lang.RuntimeException: Could not decode srs 'http://www.opengis.net/gml/srs/epsg.xml#900913

Known problem, should be already fixed: http://jira.codehaus.org/browse/GEOS-1469

Now, if you are willing to try it out, can you give a shot at a geoserver nightly?
Go to http://traffic.openplans.org/geoserver/1.6.x/ and grab the latest
release, let us know if it works for you.

Cheers
Andrea

Ok I’ve tried with latest release and it works

Thanks a lot

Andrea Aime a écrit :

···


Damien DESPRES
ddespres@anonymised.com
02 99 65 77 45

24 bis, rue du Maréchal Joffre
35200 RENNES

www.sigbea.fr

DESPRES Damien ha scritto:

Ok I've tried with latest release and it works

Good, thanks for trying it out :slight_smile:
Cheers
Andrea