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

NPE in RequestDispatcher because the ServletResponse is missing #1312

Open
ipolevoy opened this issue Mar 6, 2024 · 0 comments
Open

NPE in RequestDispatcher because the ServletResponse is missing #1312

ipolevoy opened this issue Mar 6, 2024 · 0 comments

Comments

@ipolevoy
Copy link
Member

ipolevoy commented Mar 6, 2024

Cannot invoke \""org.javalite.activeweb.HttpServletResponseProxy.setStatus(int)\
"" because the return value of \""org.javalite.activeweb.RequestContext.getHttpResponse()\"" is null"",""stacktrace"":""java.lang.NullPointerException: Cannot invoke \\\""org.javalite.activeweb.HttpServletResponseProxy.setStatus(int)\\\"" because the return value of \\\""org.javalite.activeweb.RequestContext.getHttpResponse()\\\"" is null
java.lang.NullPointerException: Cannot invoke \\\""org.javalite.activeweb.HttpServletResponseProxy.setStatus(int)\\\"" because the return value of \\\""org.javalite.activeweb.RequestContext.getHttpResponse()\\\"" is null
	at org.javalite.activeweb.RequestDispatcher.sendDefaultResponse(RequestDispatcher.java:311)
	at org.javalite.activeweb.RequestDispatcher.renderSystemError(RequestDispatcher.java:267)
	at org.javalite.activeweb.RequestDispatcher.doFilter(RequestDispatcher.java:221)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1794)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant