Title:
CFCharts hits "java.lang.OutOfMemoryError: Java heap space" error when seriesLabel contains a dollar sign
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Dennis Ting / Dennis Ting (Dennis Ting)
Created: 05/20/2015
Components: Charting/Graphing
Versions: 2016,11.0
Failure Type: Crash
Found In Build/Fixed In Build: CF11_Final / CF11HF12 302479 CF2016HF4 302484
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Windows 7
Vote Count: 2
Problem Description:
CFCharts hits an OutOfMemoryError if the seriesLabel on a cfchartseries contains a dollar sign and is referenced by the onclick handler.
Steps to Reproduce:
See attached files. myFile1.cfm is a working page, containing a single cfchart. myFile2.cfm is a page that errors due to the issue mentioned above.
We can use a standard diff tool to observe that the only difference between myFile1.cfm and myFile2.cfm is that myFile2.cfm contains dollar signs in the seriesLabels.
Actual Result:
An error, as follows:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacity(Unknown Source)
at java.lang.StringBuilder.ensureCapacity(Unknown Source)
at org.mozilla.javascript.regexp.RegExpImpl.replace_glob(RegExpImpl.java:371)
at org.mozilla.javascript.regexp.RegExpImpl.matchOrReplace(RegExpImpl.java:181)
at org.mozilla.javascript.regexp.RegExpImpl.action(RegExpImpl.java:101)
... (stack trace continues)
Expected Result:
No errors; the chart should render (as in myFile1.cfm).
Any Workarounds:
You can remove the dollar signs from the seriesLabels, but then your seriesLabels won't have dollar signs.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3991647
External Customer Info:
External Company:
External Customer Name: Dennis
External Customer Email:
External Test Config: My Hardware and Environment details:
ColdFusion 11 Update 5
Java 8
Windows 7
Attachments:
- May 21, 2015 00:00:00: 1_myFile1.cfm
- May 21, 2015 00:00:00: 2_myFile2.cfm
Comments: