Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Odd problem with BeansBinding since upgrading Eclipse Link to 1.1 (only with static weaving)

Hi Chris,

I am not familiar with how Beans Binding works, but I suspect it ties your GUI elements to either the fields or the get/set methods in your Object. These are also the things we weave.

One thing you could do to debug is to decompile your weaved classes and put breakpoints in the methods that access your instance variables. (likely your getter and setter methods). Hopefully that can help you ascertain what is happening.

Another debugging option is to try to determine what part of the weaving code interferes with the way things are working. You can do that by using persistence unit properties to disable/enable various parts of our weaving using the following properties:

eclipselink.weaving.lazy=true/false - adds an EclipseLink ValueHolder object for lazy xToOne mappings and methods to control it

eclipselink.weaving.eager=true/false - adds an EclipseLink ValueHolder object for eager xToOne mappings and methods to control it to allow other persistence units to treat the same object as lazy

eclipselink.weaving.internal=true/false - adds some internal optimication

eclipselink.weaving.changetracking=true/false - more internal optimization

eclipselink.weaving.fetchgroups=true/false - enables fetch groups

  The default is true for all but eclipselink.weaving.eager.

-Tom




t3_chris wrote:
Hi!

Due to a bug[1] in EclipseLink 1.0.2 I had to upgrade my application to
EclipseLink 1.1 today.

Unfortunately I am facing a strange problem with tables bound by beans
binding (JSR-295) since then.

Basically i am doing the following:
I build my forms with Netbeans' GUI Builder. Within my forms I have tables
(JTable, JXTable) which are bound to a JPA-Query-Resultlist by Beans
Binding[2]. Additionally there are some textfields which are intended to be
used to edit the currently highlighted record from the tables. Before the
1.1 upgrade whenever i changed the text in the textfields, the corresponding
cell in the table got updated. when i try to do this now, the corresponding
table cell doesn't get updated.

Here comes the absolutely strange thing to me:
As soon as i disable eclipse link's static weaving, everything works as
expected (as it did with 1.0.2 having weaving enabled).

Where can i start to investigate?

best regards & thanks for your help in anticipation,
chris

[1]   https://bugs.eclipse.org/bugs/show_bug.cgi?id=270714
[2]   http://wiki.netbeans.org/BestPracticesWithJPAAndBeansBinding


Back to the top