Error clientstorage

Hello Coldbox Group.

I am trying to use the clientstorage and I am getting this error.. Any
ideas?

Oops! Exception Encountered
Application Execution Exception
Error Type: Application : [N/A]
Error Messages: Unable to convert a ColdFusion Component to WDDX.
ColdFusion does not currently support serializing a ColdFusion
Component to WDDX.
Tag Context:
ID: CFWDDX
LINE: 55
Template: C:\ColdFusion8\wwwroot\coldbox\system\plugins
\clientstorage.cfc
ID: CF_TEMPLATEPROXY
LINE: 46
Template: C:\ColdFusion8\wwwroot\ops\handlers\main.cfc
ID: CFINVOKE
LINE: 445
Template: C:\ColdFusion8\wwwroot\coldbox\system\controller.cfc
ID: CF_TEMPLATEPROXY
LINE: 155
Template: C:\ColdFusion8\wwwroot\coldbox\system\coldbox.cfc
ID: CF_UDFMETHOD
LINE: 52
Template: C:\ColdFusion8\wwwroot\ops\Application.cfc
Framework Snapshot
Current Event: general.doStart
Current Layout: N/A
Current View: N/A
Bug Date: 09/09/2011 04:57:27 PM
Coldfusion ID: CFID=15406 ; CFToken=66823408 ;
JSessionID=907806CB371ADB72BFD98EE1A61F02DD_15406_66823408
Template Path : C:\ColdFusion8\wwwroot\ops\index.cfm
Path Info :
Host & Server: localhost:8500 Dario-Desktop
Query String:
Referrer: http://localhost:8500/ops/index.cfm?fwreinit=10000
Browser: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; MS-RTC
LM 8)
Stack Trace:
coldfusion.tagext.lang.WddxTag$UnableToConvertCFCException: Unable to
convert a ColdFusion Component to WDDX.
  at coldfusion.tagext.lang.WddxTag.serialize(WddxTag.java:276)
  at coldfusion.tagext.lang.WddxTag.doStartTag(WddxTag.java:150)
  at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
  at cfclientstorage2ecfc1117573011$funcSETVAR.runFunction(C:
\ColdFusion8\wwwroot\coldbox\system\plugins\clientstorage.cfc:55)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
  at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
  at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
  at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
  at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
59)
  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)
  at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)
  at cfmain2ecfc572453137$funcONREQUESTSTART.runFunction(C:
\ColdFusion8\wwwroot\ops\handlers\main.cfc:46)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
  at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
  at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
  at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
  at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
59)
  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:463)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:453)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:320)
  at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)
  at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:362)
  at cfcontroller2ecfc575920508$funcRUNEVENT.runFunction(C:
\ColdFusion8\wwwroot\coldbox\system\controller.cfc:445)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
  at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
  at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
  at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
59)
  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)
  at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)
  at cfcoldbox2ecfc1270384964$funcPROCESSCOLDBOXREQUEST.runFunction(C:
\ColdFusion8\wwwroot\coldbox\system\coldbox.cfc:155)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
  at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
  at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
  at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
59)
  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
  at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)
  at cfApplication2ecfc1273903978$funcONREQUESTSTART.runFunction(C:
\ColdFusion8\wwwroot\ops\Application.cfc:52)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
  at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
  at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
  at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
59)
  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)
  at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:74)
  at
coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:
221)
  at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:
264)
  at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
48)
  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
  at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
  at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
  at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
  at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:
74)
  at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:
28)
  at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
  at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
  at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
  at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:
22)
  at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:
126)
  at coldfusion.CfmServlet.service(CfmServlet.java:175)
  at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:
89)
  at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
  at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:
42)
  at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:
46)
  at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
  at jrun.servlet.FilterChain.service(FilterChain.java:101)
  at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
  at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
  at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
286)
  at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
543)
  at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
  at jrunx.scheduler.ThreadPool
$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
  at jrunx.scheduler.ThreadPool
$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
  at jrunx.scheduler.ThreadPool
$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
  at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Extra Information Dump
[N/A]

I guess you are trying to put an object into wddx

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Hello Luis,
Thanks for the response... Here is the deal I have been working on a
big project using coldbox as a framework. It was ready to be released
until I start getting an error when one of our severs died. I realized
I was not using client variables instead I was using session variables
(sessionstorage). I read the docs and found there was I plugin called
clientstorage. I started replacing sessionstorage with clientstorage
in all my code and then I got the above error. Now I understand I can
not store my beans(objects) on the clientstorage.

So i have this is my code:
getPlugin("sessionstorage").setVar("oUserBean",userBean);

I can not do this
getPlugin("clientstorage").setVar("oUserBean",userBean);

So how can I manage sessions on multiple servers? How can I keep my
beans in both servers. Any advise?

If you are on Railo or cf9, you could potentially store objects in client scope by serializing them. But you have to be concerned with the object graph of such objects so you don’t serialize every single component relationship.

You can use the objectLoad() and objectSave() methods to serialize components or use the ColdBox utilities plugin for this, which abstracts the engine you are using. Just note that serialization and deserialization take time, so I would be very careful on this. Maybe do a session + client strategy where the object lives in session and have a low expiration time out. If it expires, go to client to inflate it back into session and so forth.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thanks Luis. I really appreciate your answer.. I will have to disscuss
this issue with my coworkers to decide the best option.. Gracias!