[nbusers] Re: Problems with debugger on NB 7.2

  • From: Edson Richter < >
  • To:
  • Subject: [nbusers] Re: Problems with debugger on NB 7.2
  • Date: Wed, 29 Aug 2012 19:32:57 -0300
  • Organization: Simkorp Inform├ítica Ltda

Seems that I've hit an obscure bug in EclipseLink, not yet fixed.

For some reason, EclipseLink would reload all graph in case there are mixed Lazy and not-Lazy OneToMany collections in an object (thus overriding my changes).

Thanks for your time (and patience),

Edson.


Em 29/08/2012 19:10, Edson Richter escreveu:
These are plain beans, retrieved from database using EclipseLink (detached, so AFAIK, there is no relation to EclipseLink itself). No "synchronized", no special treatment.

Example "setNumero(String num)":

@Entity
@Table(name = "telefone")
public class Telefone implements Serializable {
  private static final long serialVersionUID = 2035879030946733293L;
  private String numero;

  @Basic(optional = false)
  @Column(name = "numero")
  public String getNumero() {
    return numero;
  }

  public void setNumero( String numero ) {
    this.numero = numero;
  }

}

Em 29/08/2012 18:53, Gregg Wonderly escreveu:
On 8/29/2012 2:58 PM, Edson Richter wrote:
Has anyone seen this weird behavior on NB 7.2? Two variables in same address
space with different contents?

Relevant code:

Telefone tel = telefoneList.get(5);
tel.setNumero("");
tel.setArea("");


where Telefone is a serializable class, and telefoneList is a Vector.

After that, I suppose the "list" and "tel" must have same content.

Can you show the source code for tel.setNumero() and tel.setArea()? What threads are accessing what values? Is the "read" of tel fields coming from a different thread that the set/write is?

It sounds like a visibility issue where there is no "happens-before" relationship between the reader and the writer, but I'm just guessing.

Are the setters and getters using "synchronized" in their declaration or otherwise?

Gregg









[nbusers] Problems with debugger on NB 7.2

Edson Richter 08/29/2012

[nbusers] Re: Problems with debugger on NB 7.2

Gregg Wonderly 08/29/2012

[nbusers] Re: Problems with debugger on NB 7.2

Edson Richter 08/29/2012

[nbusers] Re: Problems with debugger on NB 7.2

Edson Richter 08/29/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close