Test client: Could not read from response stream Error

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

Test client: Could not read from response stream Error

stimon
Hi again,

I have re-deployed the WPS server in a fresh Debian Wheezy installation and I am trying to test the GRASS Backend.
The communication with GRASS seems to work, at least the processes are listed in the capabilities request, but when I try to test with the TestClient r.los_tiff_example it doesn't work. The exception report is "Could not read from response stream Error" and it seems that the server isn't being able to retrieve the input reference. To discard problems with the provided tiff I also tried with a raster inside the server (this is the one showed in the logs) but without success.

This is an extract from the wps.html log:

243009939 pool-2-thread-1 DEBUG org.n52.wps.server.request.InputHandler InputHandler.java:783 Loading data from: http://vision3:8080/wps/paisajes-altitud.tif
243009939 pool-2-thread-1 DEBUG org.n52.wps.server.request.InputHandler InputHandler.java:1145 Loading parser for: schema = "null" , mimetype = "image/tiff", encoding = "base64"
243009942 pool-2-thread-1 INFO org.n52.wps.server.request.InputHandler InputHandler.java:1155 Looking for matching Parser ... schema: "null", mimeType: "image/tiff", encoding: "base64"
243009942 pool-2-thread-1 INFO org.n52.wps.io.ParserFactory ParserFactory.java:149 Matching parser found: org.n52.wps.io.datahandler.parser.GenericFileParser@37f2ae62
243009950 pool-2-thread-1 INFO org.n52.wps.io.datahandler.parser.GenericFileParser GenericFileParser.java:50 Found File Input image/tiff
243009951 pool-2-thread-1 INFO org.n52.wps.server.grass.GrassProcessDelegator GrassProcessDelegator.java:182 Executing GRASS process r.los.
243009951 pool-2-thread-1 INFO org.n52.wps.server.grass.io.GrassIOHandler GrassIOHandler.java:323 Creating input.txt.
243009960 pool-2-thread-1 DEBUG org.apache.http.impl.conn.BasicClientConnectionManager BasicClientConnectionManager.java:189 Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@77aaf64d
243009960 pool-2-thread-1 DEBUG org.apache.http.impl.conn.BasicClientConnectionManager BasicClientConnectionManager.java:219 Connection can be kept alive indefinitely
243009971 http-bio-8080-exec-7 ERROR org.n52.wps.server.handler.RequestHandler RequestHandler.java:371 exception handling ExecuteRequest.
java.lang.NullPointerException
    at org.n52.wps.server.response.RawData.getAsStream(RawData.java:99)
    at org.n52.wps.server.response.ExecuteResponseBuilder.getAsStream(ExecuteResponseBuilder.java:354)
    at org.n52.wps.server.response.ExecuteResponse.getAsStream(ExecuteResponse.java:52)
    at org.n52.wps.server.handler.RequestHandler.handle(RequestHandler.java:358)
    at org.n52.wps.server.WebProcessingService.doPost(WebProcessingService.java:306)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    at org.n52.wps.server.WebProcessingService.service(WebProcessingService.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:679)
243009986 http-bio-8080-exec-7 DEBUG org.n52.wps.server.WebProcessingService WebProcessingService.java:331 org.n52.wps.server.ExceptionReport: Could not read from response stream.

Anybody knows what could be happening? I have no clue in this...

Thanks,
Santi
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

BenjaminPross
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

stimon
Hi Benjamin,

I am using the 3.1.1 version.

Santi 


2013/6/17 BenjaminPross <[hidden email]>
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025422.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org


_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

stimon
Hi Benjamin,

Is it something "fixable" or should I roll back to the previous version?

Thanks,
Santi


2013/6/17 Santiago Timón <[hidden email]>
Hi Benjamin,

I am using the 3.1.1 version.

Santi 


2013/6/17 BenjaminPross <[hidden email]>
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025422.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org



_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

BenjaminPross
The r.los_tiff_example works fine for me on Windows 7, so I would suspect it has something to do with debian wheezy. I started setting up a virtual machine but this is quite time consuming.
I am afraid, I can't say yet, when I will be ready to test the GRASS backend on debian wheezy...

Benjamin

Am 18.06.2013 12:10, schrieb Santiago Timón:
Hi Benjamin,

Is it something "fixable" or should I roll back to the previous version?

Thanks,
Santi


2013/6/17 Santiago Timón <[hidden email]>
Hi Benjamin,

I am using the 3.1.1 version.

Santi 


2013/6/17 BenjaminPross <[hidden email]>
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025422.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org




-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

stimon
Thanks Benjamin, is there is anything I could do to help just tell me.

Cheers,

Santi


2013/6/18 Benjamin Proß <[hidden email]>
The r.los_tiff_example works fine for me on Windows 7, so I would suspect it has something to do with debian wheezy. I started setting up a virtual machine but this is quite time consuming.
I am afraid, I can't say yet, when I will be ready to test the GRASS backend on debian wheezy...

Benjamin

Am 18.06.2013 12:10, schrieb Santiago Timón:
Hi Benjamin,

Is it something "fixable" or should I roll back to the previous version?

Thanks,
Santi


2013/6/17 Santiago Timón <[hidden email]>
Hi Benjamin,

I am using the 3.1.1 version.

Santi 


2013/6/17 BenjaminPross <[hidden email]>
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025422.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org




-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849


_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

BenjaminPross
Hi Santi,

I finally got to set up the WPS + GRASS on Debian Wheezy 32 bit. However, for me the r.los worked... I got several exceptions during the process of setting up, but none looked like the one you posted. Are you using the 32 or 64 bit version of Debian?

Cheers,

Benjamin

Am 18.06.2013 13:14, schrieb Santiago Timón:
Thanks Benjamin, is there is anything I could do to help just tell me.

Cheers,

Santi


2013/6/18 Benjamin Proß <[hidden email]>
The r.los_tiff_example works fine for me on Windows 7, so I would suspect it has something to do with debian wheezy. I started setting up a virtual machine but this is quite time consuming.
I am afraid, I can't say yet, when I will be ready to test the GRASS backend on debian wheezy...

Benjamin

Am 18.06.2013 12:10, schrieb Santiago Timón:
Hi Benjamin,

Is it something "fixable" or should I roll back to the previous version?

Thanks,
Santi


2013/6/17 Santiago Timón <[hidden email]>
Hi Benjamin,

I am using the 3.1.1 version.

Santi 


2013/6/17 BenjaminPross <[hidden email]>
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025422.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org




-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849



-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

stimon
Hi Benjamin,

It's a 64 bit Debian. Also I should point out that tomcat was installed via synaptic and runs as a service, don't know if this could affect...
Thanks for your help.

Cheers, 

Santi


2013/6/20 Benjamin Proß <[hidden email]>
Hi Santi,

I finally got to set up the WPS + GRASS on Debian Wheezy 32 bit. However, for me the r.los worked... I got several exceptions during the process of setting up, but none looked like the one you posted. Are you using the 32 or 64 bit version of Debian?

Cheers,

Benjamin

Am 18.06.2013 13:14, schrieb Santiago Timón:
Thanks Benjamin, is there is anything I could do to help just tell me.

Cheers,

Santi


2013/6/18 Benjamin Proß <[hidden email]>
The r.los_tiff_example works fine for me on Windows 7, so I would suspect it has something to do with debian wheezy. I started setting up a virtual machine but this is quite time consuming.
I am afraid, I can't say yet, when I will be ready to test the GRASS backend on debian wheezy...

Benjamin

Am 18.06.2013 12:10, schrieb Santiago Timón:
Hi Benjamin,

Is it something "fixable" or should I roll back to the previous version?

Thanks,
Santi


2013/6/17 Santiago Timón <[hidden email]>
Hi Benjamin,

I am using the 3.1.1 version.

Santi 


2013/6/17 BenjaminPross <[hidden email]>
Hi Santi,

Which version of the WPS are you currently using?

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025422.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org




-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849



-- 
Benjamin Proß
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849


_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

BenjaminPross
I finally got to testing the Grass backend on a Debian Wheezy 64 bit virtual machine. I can not reproduce the error you got, it works for me. Did you test any other WPS processes, e.g. the SimpleBuffer example?
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

stimon
Yes, and it works. It is something related to GRASS backend. Next week I will re-check read-write permissions and this sort of things, because it fails at run time.

Cheers, 

Santi


2013/6/27 BenjaminPross <[hidden email]>
I finally got to testing the Grass backend on a Debian Wheezy 64 bit virtual
machine. I can not reproduce the error you got, it works for me. Did you
test any other WPS processes, e.g. the SimpleBuffer example?



--
View this message in context: http://geoprocessing.forum.52north.org/Test-client-Could-not-read-from-response-stream-Error-tp4025420p4025436.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org


_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Lvw
Reply | Threaded
Open this post in threaded view
|

Re: Test client: Could not read from response stream Error

Lvw
In reply to this post by stimon
Hi,

Kind of an old thread. But wanted to notice that I just ran into the same error:

java.lang.NullPointerException: null
        at org.n52.wps.server.response.RawData.getAsStream(RawData.java:104) ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
        at org.n52.wps.server.response.ExecuteResponseBuilder.getAsStream(ExecuteResponseBuilder.java:359) ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
        at org.n52.wps.server.response.ExecuteResponse.getAsStream(ExecuteResponse.java:46) ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
        at org.n52.wps.server.handler.RequestHandler.handle(RequestHandler.java:342) ~[52n-wps-server-3.3.1-SNAPSHOT.jar:na]
        at org.n52.wps.server.WebProcessingService.doPost(WebProcessingService.java:323) [52n-wps-server-3.3.1-SNAPSHOT.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) [servlet-api.jar:na]
        at org.n52.wps.server.WebProcessingService.service(WebProcessingService.java:350) [52n-wps-server-3.3.1-SNAPSHOT.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.42]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42]
        at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:169) [cors-filter-1.9.3.jar:1.9.3]
        at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:232) [cors-filter-1.9.3.jar:1.9.3]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.42]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.42]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.42]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [catalina.jar:7.0.42]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.42]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.42]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) [catalina.jar:7.0.42]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.42]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [catalina.jar:7.0.42]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) [tomcat-coyote.jar:7.0.42]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.42]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) [tomcat-coyote.jar:7.0.42]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
2014-12-02 13:18:43,394 [http-bio-8080-exec-7] DEBUG org.n52.wps.server.WebProcessingService: org.n52.wps.server.ExceptionReport: Could not read from response stream.


In my process I am having to paths as input arguments. Got this error when I run Execute operation with none existing paths as input arguments..