Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » 2.1.0 to 2.3.2(2.1.0 to 2.3.2)
2.1.0 to 2.3.2 [message #849399] Thu, 19 April 2012 01:34 Go to next message
klind Mising name is currently offline klind Mising name
Messages: 5
Registered: August 2011
Junior Member
Hi, I am using eclipselink 2.1.0 and want to upgrade to 2.3.2.
But when doing so I get this error :

"Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialize
d and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization."

And I see why, I am reading a message from a JMS queue with a serialized object in the message and try to call a lazy relation... but how come this works fine in 2.1.0 ???



[Updated on: Thu, 19 April 2012 02:00]

Report message to a moderator

Re: 2.1.0 to 2.3.2 [message #849895 is a reply to message #849399] Thu, 19 April 2012 10:53 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 995
Registered: July 2009
Senior Member
I do not know of any differences in this behavior from 2.1 to 2.3. My guess would be your application running in 2.1 was running for a while - it may have triggered the relationship sometime in the past before putting it in the queue. EclipseLink has a shared cache, so it would remain triggered in the cache until it was garbage collected, refreshed or the application is restarted.

Best Regards,
Chris
Previous Topic:Unable to create query.
Next Topic:Missing descriptors
Goto Forum:
  


Current Time: Fri Apr 18 16:49:31 EDT 2014

Powered by FUDForum. Page generated in 0.05222 seconds