Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » eclipselink dynamic weaving not working from remote computer
eclipselink dynamic weaving not working from remote computer [message #514179] Fri, 12 February 2010 17:29 Go to next message
Michal Ondrovic is currently offline Michal OndrovicFriend
Messages: 7
Registered: February 2010
Junior Member
Dear all,

I have troubles with dynamic weaving. In my entities I use manytoone lazy relations, so I need the dynamic weaving. My project is an enterprise application build with Netbeans 6.7.1, running on Glassfish 2.1.1, JDK6, Eclipselink 2.0.0. The project contains an ejb module and a swing client runned using java web start.
So to the problem:
Everything works great on localhost (client runned from netbeans or using JWS from browser). But when I run the client using JWS on another computer (tried Win7 and Ubuntu), entities which have manytoone lazy relations are returned to server empty - all attributes are null. They are loaded to client correctly, but by save, server receives empty entities... When I set the relation to EAGER, entities are returned (and saved) correctly.
I tried to set static weaving, but then my app throws nullpointer exceptions, when I try to load an manytoone lazy object.

Can anybody help me?

Thank you

Re: eclipselink dynamic weaving not working from remote computer [message #515692 is a reply to message #514179] Fri, 19 February 2010 19:31 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1296
Registered: July 2009
Senior Member

When using static weaving, the problem sounds like you are accessing an untriggered lazy relationship after serializing it. JPA does not allow this, as lazy relationships need to be accessed/triggered/fetched before serialization if the relationships are to be used after serialization. This is because a detached/serialized entity will no longer have access to its persistence context inorder to fetch the relationship. Could you be doing something similar when using dynamic weaving?

Best Regards,
Previous Topic:Check the connection and try to reconnect
Next Topic:NullPointerException on @VariableOneToOne
Goto Forum:

Current Time: Sun May 20 21:01:48 GMT 2018

Powered by FUDForum. Page generated in 0.01855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top