WPS problem with SimpleBuffer example.

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

WPS problem with SimpleBuffer example.

lorenzo.nais
Hi all,
i'm trying to make the SimpleBuffer example in WPS Client Request example.

this is the response:

<ns:ExceptionReport xmlns:ns="http://www.opengis.net/ows/1.1" version="1.0.0">
<ns:Exception exceptionCode="NoApplicableCode">
<ns:ExceptionText>
Error while executing the embedded process for: org.n52.wps.server.algorithm.SimpleBufferAlgorithm
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_StackTrace">
<ns:ExceptionText>
org.n52.wps.server.request.ExecuteRequest.call:668 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_RootCause">
<ns:ExceptionText>
org.n52.wps.server.ExceptionReport: Could not create Inline Complex Data from the process result
</ns:ExceptionText>
<ns:ExceptionText>
org.n52.wps.server.request.ExecuteRequest.updateStatus:821 org.n52.wps.server.request.ExecuteRequest.updateStatusSuccess:791 org.n52.wps.server.request.ExecuteRequest.call:646 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
</ns:ExceptionReport>



can someone help me?

Thanks a lot
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example.

BenjaminPross
Hello Lorenzo,

I get this error, if the hostname and port of the WPS (e.g. http://localhost:8080/wps/WebProcessingService) are different from the URLs specified in the wps_config file and finally in the GetCapabilities document. Could you verify that the URLs match?

Cheers,

Benjamin
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example.

lorenzo.nais
In the GetCapabilities document i have: <ows:ProviderSite xlink:href="http://www.52north.org/"/>
In the wps_config file: <WPSConfiguration xmlns="http://n52.org/wps">
In the exectute xml of the buffer example i have: <wps:Reference schema="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd"
method="GET"/>

How should i change these URL?


2014-07-14 16:03 GMT+02:00 BenjaminPross [via 52° North - Geoprocessing Community Forum] <[hidden email]>:
Hello Lorenzo,

I get this error, if the hostname and port of the WPS (e.g. http://localhost:8080/wps/WebProcessingService) are different from the URLs specified in the wps_config file and finally in the GetCapabilities document. Could you verify that the URLs match?

Cheers,

Benjamin


If you reply to this email, your message will be added to the discussion below:
http://geoprocessing.forum.52north.org/WPS-problem-with-SimpleBuffer-example-tp4025682p4025693.html
To unsubscribe from WPS problem with SimpleBuffer example., click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example.

lorenzo.nais
i'm sorry for the previous wrong answer and thanks for your help.

In wps_config i have: Server hostname="localhost" hostport="8080" includeDataInputsInResponse="false" computationTimeoutMilliSeconds="5" cacheCapabilites="false" webappPath="wps" repoReloadInterval="0.0">


that's my GetCapabilities:
<?xml version="1.0" encoding="UTF-8"?>
<wps:GetCapabilities service="WPS"
  xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_request.xsd">
  <wps:AcceptVersions>
    <ows:Version xmlns:ows="http://www.opengis.net/ows/1.1">1.0.0</ows:Version>
  </wps:AcceptVersions>
</wps:GetCapabilities>


*****
This is a part of the xml answer:
<ows:Operation name="Execute">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://localhost:8080/wps/<b>WebProcessingService/WebProcessingService"/>
<ows:Post xlink:href="http://localhost:8080/wps/<b>WebProcessingService/WebProcessingService"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>

The Service URL is: http://localhost:8080/wps/WebProcessingService


I think the problem is the double "webprocessingservice/webprocessingservice" in the xlink:href .
what should i do?

thanks
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

lorenzo.nais
I restart tomcat and the link:href is change:
<ows:Get xlink:href="http://localhost:8080/wps/<b>WebProcessingService


The exception is :

<ns:ExceptionReport xmlns:ns="http://www.opengis.net/ows/1.1" version="1.0.0">
<ns:Exception exceptionCode="NoApplicableCode">
<ns:ExceptionText>
Error while executing the embedded process for: org.n52.wps.server.algorithm.SimpleBufferAlgorithm
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_StackTrace">
<ns:ExceptionText>
org.n52.wps.server.request.ExecuteRequest.call:668 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_RootCause">
<ns:ExceptionText>Exception while storing schema.</ns:ExceptionText>
<ns:ExceptionText>
org.n52.wps.algorithm.annotation.AnnotationBinding$ExecuteMethodBinding.execute:80 org.n52.wps.server.AbstractAnnotatedAlgorithm.run:38 org.n52.wps.server.request.ExecuteRequest.call:637 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
</ns:ExceptionReport>


I don't know what i have to do.
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

BenjaminPross
Hello Lorenzo,

I noticed something strange in the URL:

http://localhost:8080/wps/<b>WebProcessingService 

is the <b> really there or is this a copy&paste error?

Cheers,

Benjamin
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

lorenzo.nais
it's just the flag for the Bold character.
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

BenjaminPross
Alright, from what I see in the code, the above error could be caused by missing file permissions. Could you check whether your server has write permission to the wps webapp directory?
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

lorenzo.nais
I have checked and changed the permission. Now i, like administrator, have all permission.

I try to make a simple change:

1) first code:

EXECUTE

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
  <ows:Identifier>org.n52.wps.server.algorithm.SimpleBufferAlgorithm</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>data</ows:Identifier>
      <wps:Reference schema="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd" xlink:href="http://geoprocessing.demo.52north.org:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=topp:tasmania_roads&amp;SRS=EPSG:4326&amp;OUTPUTFORMAT=GML3" method="GET"/>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>width</ows:Identifier>
      <wps:Data>
        <wps:LiteralData dataType="xs:double">0.05</wps:LiteralData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:ResponseDocument storeExecuteResponse="false" lineage="false" status="false">
      <wps:Output asReference="false" schema="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd" mimeType="text/xml" encoding="UTF-8">
        <ows:Identifier>result</ows:Identifier>
        <ows:Title>result</ows:Title>
        <ows:Abstract>result</ows:Abstract>
      </wps:Output>
    </wps:ResponseDocument>
  </wps:ResponseForm>
</wps:Execute>


RESPONSE:
<ns:ExceptionReport xmlns:ns="http://www.opengis.net/ows/1.1" version="1.0.0">
<ns:Exception exceptionCode="NoApplicableCode">
<ns:ExceptionText>
Error while executing the embedded process for: org.n52.wps.server.algorithm.SimpleBufferAlgorithm
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_StackTrace">
<ns:ExceptionText>
org.n52.wps.server.request.ExecuteRequest.call:668 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_RootCause">
<ns:ExceptionText>Exception while storing schema.</ns:ExceptionText>
<ns:ExceptionText>
org.n52.wps.algorithm.annotation.AnnotationBinding$ExecuteMethodBinding.execute:80 org.n52.wps.server.AbstractAnnotatedAlgorithm.run:38 org.n52.wps.server.request.ExecuteRequest.call:637 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
</ns:ExceptionReport>



2) modified code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
  <ows:Identifier>org.n52.wps.server.algorithm.SimpleBufferAlgorithm</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>data</ows:Identifier>
      <wps:Reference schema="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd" xlink:href="http://localhost:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=topp:tasmania_roads&amp;SRS=EPSG:4326&amp;OUTPUTFORMAT=GML3" method="GET"/>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>width</ows:Identifier>
      <wps:Data>
        <wps:LiteralData dataType="xs:double">0.05</wps:LiteralData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:ResponseDocument storeExecuteResponse="false" lineage="false" status="false">
      <wps:Output asReference="false" schema="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd" mimeType="text/xml" encoding="UTF-8">
        <ows:Identifier>result</ows:Identifier>
        <ows:Title>result</ows:Title>
        <ows:Abstract>result</ows:Abstract>
      </wps:Output>
    </wps:ResponseDocument>
  </wps:ResponseForm>
</wps:Execute>

RESPONSE
<ns:ExceptionReport xmlns:ns="http://www.opengis.net/ows/1.1" version="1.0.0">
<ns:Exception exceptionCode="InvalidParameterValue">
<ns:ExceptionText>
Could not determine input format because none of the supported formats match the given schema ("http://schemas.opengis.net/gml/3.1.1/base/feature.xsd") and encoding ("null"). (A mimetype was not specified)
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_StackTrace">
<ns:ExceptionText>
org.n52.wps.server.request.InputHandler.handleComplexValueReference:986 org.n52.wps.server.request.InputHandler.<init>:170 org.n52.wps.server.request.InputHandler.<init>:95 org.n52.wps.server.request.InputHandler$Builder.build:122 org.n52.wps.server.request.ExecuteRequest.call:614 org.n52.wps.server.request.ExecuteRequest.call:91 java.util.concurrent.FutureTask$Sync.innerRun:-1 java.util.concurrent.FutureTask.run:-1 java.util.concurrent.ThreadPoolExecutor.runWorker:-1 java.util.concurrent.ThreadPoolExecutor$Worker.run:-1 java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
<ns:Exception exceptionCode="JAVA_RootCause"/>
</ns:ExceptionReport>
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

BenjaminPross
As for 1), you should probably change the persissions so that your server software can write in the directory. Are you using Windows or Linux?

As for 2) It seems that there is a problem with your geoserver. Please check ther URL:

http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=topp:tasmania_roads&SRS=EPSG:4326&OUTPUTFORMAT=GML3

before you give it another try with the wps.

Cheers,

Benjamin
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

lorenzo.nais
I tryed with:

Service URL: http://geoprocessing.demo.52north.org:8080/wps/WebProcessingService

and EXECUTE:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
  <ows:Identifier>org.n52.wps.server.algorithm.SimpleBufferAlgorithm</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>data</ows:Identifier>
      <wps:Reference schema="http://schemas.opengis.net/gml/2.1.2/feature.xsd"
      mimeType="text/xml; subtype=gml/2.1.2"
      xlink:href="http://geoprocessing.demo.52north.org:8080/geoserver/wfs?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=topp:tasmania_roads&amp;SRS=EPSG:4326&amp;OUTPUTFORMAT=GML3" method="GET"/>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>width</ows:Identifier>
      <wps:Data>
        <wps:LiteralData dataType="xs:double">0.05</wps:LiteralData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:ResponseDocument storeExecuteResponse="false" lineage="false" status="false">
      <wps:Output asReference="false" schema="http://schemas.opengis.net/gml/2.1.2/feature.xsd" mimeType="text/xml" encoding="UTF-8">
        <ows:Identifier>result</ows:Identifier>
        <ows:Title>result</ows:Title>
        <ows:Abstract>result</ows:Abstract>
      </wps:Output>
    </wps:ResponseDocument>
  </wps:ResponseForm>
</wps:Execute>

and it's ok now.
Thanks Benjamin.

Simple question: if would i produce a map from the execute response?
Reply | Threaded
Open this post in threaded view
|

Re: WPS problem with SimpleBuffer example-problem's evolution

BenjaminPross
I am afraid, you will need to be more specific with your question.