-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: org.hibernate.impl.ScrollableResultsImpl is NOT serializable
PostPosted: Tue Nov 08, 2005 1:02 pm 
Regular
Regular

Joined: Tue Oct 26, 2004 3:54 pm
Posts: 60
Hibernate version: 3.0.5

Mapping documents: Not relevant

Code between sessionFactory.openSession() and session.close(): Not relevant

Full stack trace of any exception that occurs: Not relevant

Name and version of the database you are using: IBM DB2/400

The generated SQL (show_sql=true): Not relevant

Debug level Hibernate log excerpt: Not relevant


java.io.NotSerializableException: org.hibernate.impl.ScrollableResultsImpl


It appears that the List generated by a Scrollable query is not serializable, thus cannot be sent over via serialized stream. Is there any reason for this or can it be modified to support serialization ? This is a showstopper for our SOA testcase, and if there is any "good practice" about this I'd be glad to know...

Thanks all for your attention.

Giulio


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 1:29 pm 
Senior
Senior

Joined: Mon Apr 04, 2005 8:04 am
Posts: 128
Location: Manchester, NH USA
I think that a scrollable result set would break rather quickly if it were disconnected from the associated JDBC connection, don't you?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 1:30 pm 
Regular
Regular

Joined: Tue Oct 26, 2004 3:54 pm
Posts: 60
Dumb me, dumb me.

It's just the ScrollableResults object that is not Serializable, and I don't need to serialize it.

Sorry for the useless post, I resolved everything.


Hi!

Giulio


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 1:32 pm 
Regular
Regular

Joined: Tue Oct 26, 2004 3:54 pm
Posts: 60
Of course, pmularien, it is.

It was just a stupid error of mine, serializing the entire Page implementation in my framework and not just the List containing the results.

Thanks!

Giulio


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 1:33 pm 
Senior
Senior

Joined: Mon Apr 04, 2005 8:04 am
Posts: 128
Location: Manchester, NH USA
Welcome! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.