JDK-7063183 : AIOB exception in the RemoveCommentReader
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6,7-client
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2011-07-06
  • Updated: 2013-09-12
  • Resolved: 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 Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u31-revFixed 7u2 b03Fixed 8Fixed
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.
06-07-2011