takes: Exception in thread "main" java.io.IOException: empty request

Hello, i’m use this framework, how write in README.md and catch java.io.IOException with text: “empty request”.

This my Stack Trace:

Exception in thread "main" java.io.IOException: empty request
	at org.takes.rq.RqLive.parse(RqLive.java:92)
	at org.takes.rq.RqLive.<init>(RqLive.java:56)
	at org.takes.http.BkBasic.accept(BkBasic.java:84)
	at org.takes.http.FtBasic.loop(FtBasic.java:116)
	at org.takes.http.FtBasic.start(FtBasic.java:102)
	at ru.ezhov.junit.TestVelocity.main(TestVelocity.java:33)

And class with main method:

public class TestVelocity
{
    private static final Logger LOG = Logger.getLogger(TestVelocity.class.getName());

    public static void main(String[] args) throws Exception
    {
        new FtBasic(
                new TkFork(
                        new FkRegex("/", new TkVelocity()),
                        new FkRegex(
                                "/execute",
                                new TkFork(
                                        new FkMethods("POST,PUT", new TkGroovy())
                                )
                        )
                ),
                10110
        ).start(Exit.NEVER);
    }
}

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 37 (9 by maintainers)

Most upvoted comments

@victornoel Fair enough 😃 But rules are rules…