web services - Play Java 2.1.1 "TimeoutException: No response received after... " -
i have code in controller:
public static result index() { return async(ws.url(my_webservice_url).get().map( new function<ws.response, result>() { public result apply(ws.response response) { return ok(index.render(form(response.getbody())); } } ); }
basically, it's copy example on play site i'm receiving message
[timeoutexception: no response received after 2147483647]
after around 1 minute, , if have set
ws.url(my_webservice_url).settimeout(integer.max_value)
or add
ws.timeout=99999999999
in application.conf.
i saw similar post here, without answer.
thank in advance!
problem *magically * resolved after creating new project , pasting code.
Comments
Post a Comment