NUMBERFORMATEXCEPTION THROWN FOR ANY REQUEST FOLLOWING A CHUNKED REQUEST. (Doc ID 1064561.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

On WLS 10.3 when chunked requests are posted to a servlet, any subsequent non-chunked requests fail with a NumberFormatException. This is not occurring on WLS9.2 MP3.

The error is displayed as below:
For input string: "" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at weblogic.utils.http.HttpChunkInputStream.readChunkSize(HttpChunkInputStream.java:116)
at weblogic.utils.http.HttpChunkInputStream.initChunk(HttpChunkInputStream.java:71)
at weblogic.utils.http.HttpChunkInputStream.read(HttpChunkInputStream.java:142)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:210)
at com.x.cm.server.LimitedInputStream.read(LimitedInputStream.java:57)
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
at com.x.cm.multipart.MultipartParser.readLine(MultipartParser.java:470)
at com.x.cm.multipart.MultipartParser.(MultipartParser.java:128)
at com.x.cm.multipart.MultipartParser.(MultipartParser.java:40)
at com.x.cm.server.RequestManager.handleMultiPart(RequestManager.java:1034)
at com.x.cm.server.RequestManager.handle(RequestManager.java:577)
at com.x.cm.server.CMServlet.doPost(CMServlet.java:709)
at com.x.cm.server.ContentManager.doPost(ContentManager.java:103)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
...


Changes

Customer has upgraded from WLS 9.2 MP3 to WLS 10.3 and ran into this problem.

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