Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Path("/") in handler throws error #4

Closed
poornachandra opened this issue Sep 19, 2014 · 1 comment
Closed

@Path("/") in handler throws error #4

poornachandra opened this issue Sep 19, 2014 · 1 comment
Labels

Comments

@poornachandra
Copy link
Contributor

@GET
@Path("/")
public void test(HttpRequest request, HttpResponder responder) throws Exception {
  responder.sendStatus(HttpResponseStatus.OK);
}

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:143)
at java.lang.StringBuilder.setLength(StringBuilder.java:55)
at co.cask.http.PatternPathRouterWithGroups.add(PatternPathRouterWithGroups.java:89)
at co.cask.http.HttpResourceHandler.(HttpResourceHandler.java:91)
at co.cask.http.NettyHttpService.(NettyHttpService.java:151)
at co.cask.http.NettyHttpService.(NettyHttpService.java:61)
at co.cask.http.NettyHttpService$Builder.build(NettyHttpService.java:515)

@poornachandra
Copy link
Contributor Author

This was fixed in https://github.com/caskdata/netty-http/pull/42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant