United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7063183 AIOB exception in the RemoveCommentReader
JDK-7063183 : AIOB exception in the RemoveCommentReader

Details
Type:
Bug
Submit Date:
2011-07-06
Status:
Resolved
Updated Date:
2013-04-20
Project Name:
JDK
Resolved Date:
2011-08-17
Component:
deploy
OS:
generic,windows_xp
Sub-Component:
deployment_toolkit
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6,7-client
Fixed Versions:
7u2 (b03)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

Description
Ocassionally proxy config is not working due to folowing exception:

JVMInstance (1.7.0.ea) processing GetProxyMessage
java.lang.ArrayIndexOutOfBoundsException: 8192
        at com.sun.deploy.net.proxy.RemoveCommentReader.read(Unknown Source)
        at java.io.BufferedReader.fill(Unknown Source)
        at java.io.BufferedReader.read1(Unknown Source)
        at java.io.BufferedReader.read(Unknown Source)
        at java.io.Reader.read(Unknown Source)
        at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.getJSFileFromURL(Unknown Source)
        at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.init(Unknown Source)
        at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
        at sun.plugin2.main.server.ProxySupport.<clinit>(Unknown Source)
        at sun.plugin2.main.server.JVMInstance$1.run(Unknown Source)
JVMInstance (1.7.0.ea) processing GetProxyMessage
JVMInstance (1.7.0.ea) processing CookieOpMessage

                                    

Comments
EVALUATION

Problem is caused by RemoveCommentReader.read() logic that checks for value of "i+1" and this can be outside of array.
It is also fragile to parse mixed quote strings. Need to revise it to be more robust.
                                     
2011-07-06



Hardware and Software, Engineered to Work Together