Skip to content

NullPointer in RequestLogger when using jetty server #1271

Closed

Description

@tunessofia

When using jobby with the jetty server I get a null pointer in RequestLogger

public class App extends Jooby {

	{
		use("*", new RequestLogger());
	}
	{

		get("/", (req, rsp) -> {
			rsp.send("hello");});
	}

	public static void main(final String[] args) {
		run(App::new, args);
	}

}

[2018-11-11 18:34:44,283]-[jetty task-19] ERROR org.jooby.Response - complete listener resulted in error
java.lang.NullPointerException: null
	at org.jooby.servlet.ServletServletResponse.headers(ServletServletResponse.java:242)

This does not happen when using the netty server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions