Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Problem deserializing a bean containing a query
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ryan  
View profile  
 More options Jul 1, 10:48 am
From: Ryan <rpjeffo...@gmail.com>
Date: Wed, 1 Jul 2009 07:48:19 -0700 (PDT)
Local: Wed, Jul 1 2009 10:48 am
Subject: Problem deserializing a bean containing a query
The project I am working on will be hosted on a cluster of 2 web
servers each running Coldfusion 8 Professional, and we opted for using
client variables. (great alternative to CF enterprise)

I've written some code to create an "accessAccount" bean (cfc) for
accounts attempting to access the app, and I populate it with data
once the login is a success.  I then set this bean to the client scope
via the clientstorage plugin to persist this account's data throughout
their use of the app.  Since client variables stored in a database
_have_ to be simple values, I used the _serialize method in the
utilities plugin to handle that (unfortunately WDDX will not serialize
CFCs).

So everything was working fine and dandy until I decided to store a
query in my accessAccount bean.  I can successfully set the query
within the bean, serialize the bean, but the problem comes when I
attempt to deserialize it.  I am given a generic
"coldfusion.sql.QueryTable" error and it seems to error on the final
line of the _deserialize() method when it returns the object.

For 'S's and 'G's, I decided to test this outside of my ColdBox
environment and copied/pasted the code in the _serialize()/_deserialize
() methods.  Sure enough, I received the same generic error
"coldfusion.sql.QueryTable" when attempting to deserialize the bean
containing the query.

I solved this by serializing the query itself and storing it in the
bean as a binary string, but that's an extra step I'd like to avoid if
possible.  After all, I should be able to store the data in the most
native datatype.

Thoughts/comments?   ...or am I "using the wrong tool"?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sana  
View profile  
 More options Jul 1, 11:22 am
From: Sana <sanaulla...@gmail.com>
Date: Wed, 1 Jul 2009 08:22:24 -0700 (PDT)
Local: Wed, Jul 1 2009 11:22 am
Subject: Re: Problem deserializing a bean containing a query
Hi Ryan,

I think adobe have released hot fix for this.
http://www.rakshith.net/blog/?p=64

Try with hot fix and let us know if you still have issue.

Thanks
Sana

On Jul 1, 3:48 pm, Ryan <rpjeffo...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan  
View profile  
 More options Jul 1, 11:59 am
From: Ryan <rpjeffo...@gmail.com>
Date: Wed, 1 Jul 2009 08:59:53 -0700 (PDT)
Local: Wed, Jul 1 2009 11:59 am
Subject: Re: Problem deserializing a bean containing a query
Hot DOG it worked!  I suppose I don't feel _so_ bad being that this is
a rather new hot fix.
THANKS for the update!

On Jul 1, 10:22 am, Sana <sanaulla...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google