tracker issue : CF-3991647

select a category, or use search below
(searches all categories and all time range)
Title:

CFCharts hits "java.lang.OutOfMemoryError: Java heap space" error when seriesLabel contains a dollar sign

| View in Tracker

Status/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

Listed in the version 2016.0.04.302561 Issues Fixed doc
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:

  1. May 21, 2015 00:00:00: 1_myFile1.cfm
  2. May 21, 2015 00:00:00: 2_myFile2.cfm

Comments:

\sadpanda
Comment by External U.
7365 | May 20, 2015 12:26:37 PM GMT
We frequently allow users to label chart series with names like "Sales $ Weekly" - if we programmatically eliminate "$" (which we must do now as a workaround!) it's likely that many of their names just won't make sense.
Vote by External U.
7366 | May 20, 2015 12:38:49 PM GMT
+1 ......................
Vote by External U.
7367 | September 23, 2015 12:22:43 AM GMT