tracker issue : CF-4200440

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

ObjectSave: Object passed is not serializable java.io.NotSerializableException: coldfusion.runtime.Variable

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/ThirdParty

Reporter/Name(from Bugbase): Tyler Clendenin / Tyler Clendenin ()

Created: 12/21/2017

Components: Serialization, Java

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016.0.03.301771 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Problem Description:

When I use a function

	<cffunction name="getStruct" access="private" output="false" returntype="struct">
		<cfreturn arguments />
	</cffunction>

	<cfset ObjectSave(getStruct(Date=variables.Date)) />

I get the error

Error occurred while performing ObjectSave: Object passed is not serializable java.io.NotSerializableException: coldfusion.runtime.Variable

Any Workarounds:

It works fine if I use the more modern style of 

<cfset ObjectSave({ Date=variables.Date }) />

Attachments:

Comments: