JDK-7063183 : AIOB exception in the RemoveCommentReader
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Priority: P3
  • Affected Version: 6,7-client
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submit Date: 2011-07-06
  • Updated Date: 2013-09-12
  • Resolved Date: 2011-08-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u31-revFixed 7u2 b03Resolved 8Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
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