Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006123 [Resin] minor always 01-02-18 13:20 01-02-18 14:52
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0006123: NPE in access log
Description (rep by Steffen Busch)

now with Resin 4.0.54 we can see the Stack Trace that happens in this siutation:

com.caucho.server.webapp.WebApp java.lang.NullPointerException
                             at com.caucho.server.http.AbstractCauchoRequest.getSessionCookie(
                             at com.caucho.server.http.HttpServletRequestImpl.getCookies(
                             at com.caucho.server.http.HttpServletRequestImpl.findCookie(
                             at com.caucho.server.http.HttpServletRequestImpl.getCookie(
                             at com.caucho.server.log.AccessLog.log(
                             at com.caucho.server.log.AccessLog.log(
                             at com.caucho.server.webapp.WebApp.accessLog(
                             at com.caucho.server.http.AbstractHttpRequest.sendRequestError(
                             at com.caucho.server.http.HttpRequest.handleRequest(
                             at com.caucho.env.thread2.ResinThread2.runTasks(

I think it could be triggered with an access-log configuration inside <host-default> that contains %{mycookie}c in the format= element.

A BadRequest could be done with for example [^]

Would it be possible to fix this - e.g. with returning "" or null rather than the NullPointerException when AccessLog want's to get the Cookies but there is no sessionManager available?

Additional Information
Attached Files

- Relationships

- Notes
01-02-18 14:52


- Issue History
Date Modified Username Field Change
01-02-18 13:20 ferg New Issue
01-02-18 14:52 ferg Note Added: 0006814
01-02-18 14:52 ferg Assigned To  => ferg
01-02-18 14:52 ferg Status new => closed
01-02-18 14:52 ferg Resolution open => fixed
01-02-18 14:52 ferg Fixed in Version  => 4.0.56
01-03-18 00:12 stbu Issue Monitored: stbu

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker