Bug 1391834

Summary: [GSS](6.4.z) NullPointerException in AccessLogValve$SessionIdElement.addElement
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Osamu Nagano <onagano>
Component: WebAssignee: jboss-set
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hatlapatka <rhatlapa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.5CC: bmaxwell, egonzale, jbilek, mcada, rmaucher, rstancel
Target Milestone: CR1   
Target Release: EAP 6.4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-03 16:42:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1304337, 1386335    

Description Osamu Nagano 2016-11-04 07:57:40 UTC
Backport Tomcat bug, ID 53993, to JBossWeb and the next CP of EAP 6.4.

When access log is configured to output session ID (%S), NPE happens if the session is null.

~~~
20:53:16,053 ERROR [connector] JBWEB001018: An exception or error occurred in the container during the request processing: java.lang.NullPointerException
        at org.apache.catalina.valves.AccessLogValve$SessionIdElement.addElement(AccessLogValve.java:1170)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:573)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:490)
        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
        at java.lang.Thread.run(Thread.java:745)
~~~

Comment 4 Enrique Gonzalez Martinez 2016-11-17 11:00:31 UTC
This is already merged. correct status is MODIFIED.

https://source.jboss.org/changelog/JBossWeb?cs=2670

Comment 5 Michael Cada 2017-01-11 11:19:16 UTC
Verified with EAP 6.4.13.CP.CR1

Comment 6 Petr Penicka 2017-02-03 16:42:40 UTC
Released with EAP 6.4.13 on Feb 02 2017.