Comment 4 for bug 637908

Revision history for this message
Alexander Strebkov (alexanderstrebkov) wrote :

On my macbook very reliable steps are to create an empty application. Add file app/jobs/Jobtest.java with exactly following content:

package jobs;

import play.jobs.*;
import play.libs.WS;
import play.Logger;

@Every("1mn")
public class Jobtest extends Job {
    public void doJob() {
        Logger.info("Request started");
        WS.HttpResponse response = WS.url("http://www.google.com").get();
        Logger.info("Request finished");
    }
}

Start it with "play run", browse to localhost:9000 and wait few minutes. Result is in attachment, because it is a bit long. First request is always successful. Second almost always throws this exception. And exactly the same happens on SunOS hosting with the same application in prod mode.

This is hardly related to second request being started before first one is done - there is a 1 minute delay between those...