GlassFish HTTP Stress Test Throws PortUnification Exception (Doc ID 1350308.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 2.1.1 and later
Information in this document applies to any platform.
***Checked for relevance on 25-Jul-2013***

Symptoms

When the GlassFish Server is under heavy HTTP traffic access, the GlassFish server.log may sometimes show NullPointerException like below:

[#|2011-06-24T09:27:39.549+1000|SEVERE|sun-appserver2.1.1|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-55;_RequestID=711c6dd6-d8c2-409b-9216-1b51cef17b4e;|WEB0777: Unblocking keep-alive exception
java.lang.NullPointerException
at com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream.doRead(ByteBufferInputStream.java:245)
at
com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream.read(ByteBufferInputStream.java:174)
at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
at
org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:442)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.parseRequest(De
faultProcessorTask.java:734)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:875)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
(DefaultReadTask.java:365)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:285)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTa
sk.java:221)
at
com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:387)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:269)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:111)
|#]

[#|2011-06-24T09:27:39.549+1000|WARNING|sun-appserver2.1.1|GRIZZLY|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-55;_RequestID=711c6dd6-d8c2-409b-9216-1b51cef17b4e;|PortUnification exception
java.lang.NullPointerException
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.manageKeepAlive(DefaultReadTask.java:316)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:303)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:221)
at
com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:387)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:269)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:111)
|#]

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms