Hello,

I've run into an issue when using the GeoPackage WPS Process to try an
generate a geopackage.  I have a local GeoServer (version 2.13.2) running
in a docker container that I send the request to by the following url via
Postman or Curl:

http://localhost:8088/geoserver/wps

The 'content' parameter is the XML that is attached to this message (the
layer name being a placeholder in attached file, I use an actual layer name
when requesting).  What I get in return is some XML describing an error;
attached to this message as well. The same message is also present in the
Geoserver logs when the request is made.  I haven't found much help online
so any advice would be appreciated.

Thank you!
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://www.opengis.net/wps/1.0.0"; xmlns:wfs="http://www.opengis.net/wfs"; xmlns:wps="http://www.opengis.net/wps/1.0.0"; xmlns:ows="http://www.opengis.net/ows/1.1"; xmlns:gml="http://www.opengis.net/gml"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:wcs="http://www.opengis.net/wcs/1.1.1"; xmlns:xlink="http://www.w3.org/1999/xlink"; xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd";>
  <ows:Identifier>gs:GeoPackage</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>contents</ows:Identifier>
      <wps:Data>
        <wps:ComplexData mimeType="text/xml; subtype=geoserver/geopackage">
        <![CDATA[
        	<g:geopackage xmlns:g="http://www.opengis.net/gpkg"; name="mygeopackage">
             
				<g:tiles name="Tester">
		    		<g:description>BlueMarble</g:description>
		    		<g:srs>EPSG:4326</g:srs>
		    		<g:bbox>
		        		<g:minx>-180</g:minx>
		        		<g:miny>-90</g:miny>
		        		<g:maxx>180</g:maxx>
		        		<g:maxy>90</g:maxy>
		    		</g:bbox>
		    		<g:layers>Test:MyLayer</g:layers>
		    		<g:format>image/PNG</g:format>
		    		<g:transparent>true</g:transparent>
				</g:tiles>
			</g:geopackage>
		]]>
		</wps:ComplexData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
      <ows:Identifier>geopackage</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>
<?xml version="1.0" encoding="UTF-8"?>
<wps:ExecuteResponse xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:ows="http://www.opengis.net/ows/1.1"; xmlns:wps="http://www.opengis.net/wps/1.0.0"; xmlns:xlink="http://www.w3.org/1999/xlink"; xml:lang="en" service="WPS" serviceInstance="http://172.18.36.59:8088/geoserver/ows?"; version="1.0.0">
    <wps:Process wps:processVersion="1.0.0">
        <ows:Identifier>gs:GeoPackage</ows:Identifier>
        <ows:Title>GeoPackage</ows:Title>
        <ows:Abstract>Geopackage Process</ows:Abstract>
    </wps:Process>
    <wps:Status creationTime="2019-05-10T00:08:14.845Z">
        <wps:ProcessFailed>
            <ows:ExceptionReport version="1.1.0">
                <ows:Exception exceptionCode="NoApplicableCode">
                    <ows:ExceptionText>Process failed during execution
org.springframework.beans.factory.BeanCreationException: Error creating bean with name &amp;apos;scopedTarget.geoNodeOauth2RestTemplate&amp;apos;: Scope &amp;apos;session&amp;apos; is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
Error creating bean with name &amp;apos;scopedTarget.geoNodeOauth2RestTemplate&amp;apos;: Scope &amp;apos;session&amp;apos; is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.</ows:ExceptionText>
                </ows:Exception>
            </ows:ExceptionReport>
        </wps:ProcessFailed>
    </wps:Status>
</wps:ExecuteResponse>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to