Jobs with WS timeout exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
Fix Committed
|
Undecided
|
Erwan Loisant | ||
Bug Description
(play 1.1 beta2)
Easy to reproduce, just create an empty app and this job:
package jobs;
import play.jobs.*;
import play.libs.WS;
@Every("1mn")
public class Jobtest extends Job {
public void doJob() {
}
}
Running this results in the following exception every third run of the job (in both dev and prod):
13:08:41,365 ERROR ~ java.lang.
13:08:41,366 ERROR ~
@63nof0d7m
Error during job execution (jobs.Jobtest)
Execution exception (In /app/jobs/
RuntimeException occured : java.lang.
play.exceptions
at play.jobs.
at Invocation.
Caused by: java.lang.
at play.libs.
at jobs.Jobtest.
at play.jobs.
at play.jobs.
... 1 more
Caused by: java.lang.
at com.ning.
at play.libs.
... 4 more
Caused by: java.util.
at com.ning.
at com.ning.
... 5 more
After some time this exception is replaced with "Too many connections" on every execution and job stop working completely. So it will be a blocker issue for anyone using libs.WS in jobs.
Changed in play: | |
status: | Fix Committed → In Progress |
Changed in play: | |
status: | In Progress → Fix Committed |
Should be working now.