tracker issue : CF-3854891

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

SerializeJSON on a Java object causes service restart

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Gary Stanton / Gary Stanton (Gary Stanton)

Created: 11/20/2014

Components: Serialization

Versions: 10.0

Failure Type: Crash

Found In Build/Fixed In Build: Final / CF11 Update5,CF10 Update16

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem Description:
When performing SerializeJSON on a Java object or interface, the entire ColdFusion service immediately crashes and restarts.
Admittedly, I can't see a reason you'd want to do this; but I was serialising my session scope for logging and it just happens to have a Java interface instantiated in it.

Regardless of the usefulness of serialising a Java object, the result should never be a complete crash and restart of ColdFusion!

Steps to Reproduce:
<cfscript>
	SquangDiddleh = createObject("java", "java.io.File");
	writeDump(SerializeJSON(SquangDiddleh));
</cfscript>

Actual Result:
ColdFusion service restarts.

Expected Result:
A dump, containing presumably the names of all the methods of the object and any variables it may have exposed.

Any Workarounds:
None.

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

Watson Bug ID:	3854891

Keywords:
FixTested


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

Tested on Windows 7 Professional.

CF10.0.14 Developer edition.

Tomcat as bundled with CF10 installer.

IIS 7.5

Attachments:

Comments:

The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5 and ColdFusion 10 Update 16
Comment by CFwatson U.
9999 | February 20, 2015 09:29:05 AM GMT
Unable to reproduce the restart issue on standalone CF10 Update 15 (build 10,0,15,292620) w/ Windows 10 and standalone CF11 Update 4 (build 11,0,04,293328) w/ Windows 2012 R2. Both throw "JSON serialization failure: Java object tree too complex to serialize.". So the restart issue may be specific to the built-in server. Thanks!, -Aaron
Comment by External U.
10000 | November 22, 2015 09:04:46 PM GMT