Skip to main content
Participating Frequently
December 17, 2014
Question

CF 11 Update 3 and CFCHART

  • December 17, 2014
  • 2 replies
  • 1029 views

Hello,

We just upgraded to the latest build for Coldfusion 11 and our cfcharts are failing. The build is as follows 11,0,03,292480.

I am getting this error:

Error casting an object of type java.lang.Boolean cannot be cast to java.lang.String to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.

java.lang.Boolean cannot be cast to java.lang.String

The error occurred in C:/inetpub/wwwroot/cmis/e_survey/usage.cfm: line 141

139 : <cfelseif ListFind("1,2",answers.s_qtypeid)>

140 : <cfchart style="usage.json" format="png" chartheight="400" chartwidth="400" showborder="yes">

141 : <cfchartseries type="pie" query="answers" itemcolumn="row_optionname" valuecolumn="total" />

142 : </cfchart>

143 : <cfelse>

We have been required to put in the latest update due to the security vulnerability.

Can someone help me on whether there is a newer version of the update or what I can do to fix this? It was working fine with Update 2.

UPDATE:

I have determined that the legend options in my json file for ZingCharts seems to be the problem but I do not know what.

Thanks,

Phil Mervis

This topic has been closed for replies.

2 replies

Inspiring
December 18, 2014

Until the fix is released, I believe if you change all boolean responses to 0 or 1 instead of false or true, it should work.

PIMAuthor
Participating Frequently
December 18, 2014

For now, we just rolled back to update 2. I will have to test that out on my local machine when I get a chance and see if that works.

Thank you for the response.

Phil

Inspiring
December 17, 2014

I believe this is a bug (Bug#3865484 - CF11 update 3 breaks chart style json that uses legend). The status shows it has been fixed by Adobe but its just waiting on testing & deployment by the looks of it.

Probably not a lot that can be done unless you want to turn the legends off on your charts.