tracker issue : CF-3982649

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

Error Serializing Entities and Beans

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Daniel Budde / Daniel Budde (Daniel Budde)

Created: 05/06/2015

Components: ORM Support

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2008 Server x64

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_possibly_fixed on September 04, 2019 using build 2016.0.01.298513
Problem Description:  When serializing certain beans and entities for AJAX requests using either 'serializeJSON' or 'returnformat="json"' an error is thrown.  The specific error is: 'java.lang.Integer cannot be cast to java.lang.String'.

Steps to Reproduce:  Unzip the included example files and run the 'index.cfm' page which will attempt to load an array of beans and then serialize it.  This will reproduce the error.

Actual Result:  Error (java.lang.Integer cannot be cast to java.lang.String).

Expected Result:  A serialized JSON string representation of the array of beans.

Any Workarounds:  The current workaround I am using is to manually convert the beans and entities into structures and then serialize them.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3982649

External Customer Info:
External Company:  
External Customer Name: Daniel
External Customer Email:  
External Test Config: My Hardware and Environment details:

Server 2008 R2 64bit

CF 11.0.05 64bit (Problem also confirmed in 11.0.03)

Java 1.8.0_25

Apache 2.4.12 64bit


  1. May 06, 2015 00:00:00:


We've run into this same error serializing cfc instances. This has prevented us from installing any of the latest CF11 updates.
Vote by External U.
7635 | May 06, 2015 09:53:07 AM GMT
This issue is fixed now and the fix for this issue will be available as part of next major release of ColdFusion.
Comment by Nimit S.
7634 | September 24, 2015 11:00:02 PM GMT
Hi Adobe, I've verified this is possibly fixed in CF2016 Update 1 (build 2016.0.01.298513). Unable to reproduce in CF11 Update 7 (build Perhaps this is related to CF-412641, which I verified was fixed. Thanks!, -Aaron
Comment by Aaron N.
31270 | September 04, 2019 07:38:23 AM GMT