IBM Support

PM67300: NullPointerException and 500 response if no Content-Type header

Download


Abstract

If the DMZ/Secure Proxy Server is configured for compression, a response with no Content-Type header will cause a NullPointerException and a 500 response to be sent back.

Download Description

PM67300 resolves the following problem:

ERROR DESCRIPTION:
The compression filter code is expecting a Content-Type header.
If a response does not have one because it has no response data
a NullPointerException will occur and a 500 status code is
returned instead of the original status code.

In the logs, the following FFDC entry will be generated:

[5/4/12 19:34:56:576 GMT] FFDC
Exception:java.lang.NullPointerException
SourceId:com.ibm.ws.proxy.filter.http.HttpFilterChain.doResponse
FilterChain ProbeId:1
Reporter:com.ibm.ws.proxy.filter.http.HttpFilterChain@616f1aa
java.lang.NullPointerException
at
com.ibm.ws.proxy.compression.http.HttpCompressionFilter.getCompr
essionMode(HttpCompressionFilter.java:76)
at
com.ibm.ws.proxy.compression.http.HttpResponseCompressionFilter.
doFilter(HttpResponseCompressionFilter.java:113)

USERS AFFECTED:
All users of IBM WebSphere Application Server V7.0

PROBLEM DESCRIPTION:
If the Proxy Server is configured for compression, a response with no Content-Type header
will cause an NullPointerException and a 500 response to be sent back.

The Proxy compression filter code expects inspects the Content-Type header on the
response without checking if it exists. This causes an NPE and an FFDC.

PROBLEM CONCLUSION:
The Proxy Compression Filter will be changed to handle no
Content-Type response header.

This fix is currently targeted for inclusion in Service
Level (Fix Pack) 7.0.0.25 of WebSphere Application Server V7.0
(using APAR PM66048).

Please refer to URL:
http://www.ibm.com/support/docview.wss?uid=swg27006970
for Fix Pack availability.

[{"PRLabel":"UpdateInstaller","PRLang":"English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]
[{"INLabel":"Readme","INLang":"English","INSize":"7774","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM67300/readme.txt"}]
On
[{"DNLabel":"Fix for 7.0.0.15 - 7.0.0.23","DNDate":"21 Jun 2012","DNLang":"US English","DNSize":"9192","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.15-WS-WASNDDMZ-IFPM67300&product=ibm%2FWebSphere%2FWebSphere+Application+Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM67300/7.0.0.15-WS-WASNDDMZ-IFPM67300.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM67300/7.0.0.15-WS-WASNDDMZ-IFPM67300.pak"}]
[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.23;7.0.0.21;7.0.0.19;7.0.0.17;7.0.0.15","Edition":"Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24032946