Title:
CFCharts hits "java.lang.OutOfMemoryError: Java heap space" error when the URL field is malformed
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Dennis Ting / Dennis Ting (Dennis Ting)
Created: 05/20/2015
Components: Charting/Graphing
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Minor / Few users will encounter
Locale/System: ALL / Windows 7
Vote Count: 0
Problem Description:
According to the documentation ( https://wikidocs.adobe.com/wiki/display/coldfusionen/cfchart ), cfchart allows a URL field. The URL field defines the behavior that occurs if the user clicks on the chart. Three placeholder values are provided: $VALUE$, $ITEMLABEL$, and $SERIESLABEL$
If the string given as the URL is malformed, an OutOfMemoryError occurs. Arguably, a malformed URL field is invalid, although it would be nice to have a better error message.
Steps to Reproduce:
See attached -- running the attached code results in an OutOfMemory error due to the malformed URL field. The URL field is malformed because we have inadvertently forgotten to properly open the ITEMLABEL placeholder with a dollar sign.
Actual Result:
An OutOfMemory error.
Expected Result:
Either a working cfchart, with the malformed input disregarded, or an error message to the effect of "URL field is malformed".
Any Workarounds:
Don't pass in malformed URLs to cfchart, which is arguably a bug on the developer's part. However, we would hope that even when bugs do occur (and/or when ColdFusion libraries such as cfcharts are misused), the result would be a more graceful failure that's not an OutOfMemory error.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3991657
Reason: BugVerified
External Customer Info:
External Company:
External Customer Name: Dennis
External Customer Email:
External Test Config: My Hardware and Environment details:
CF 11 Update 5
Java 8
Windows 7
Attachments:
- May 21, 2015 00:00:00: 1_malformedURL.cfm
Comments: