NullPointerException in DataCache

2008-07-16 Thread Roger Keays
Does anybody recognize this exception? It seems to occur mostly on transactions with updates and deletes. It hasn't occured on any persist operations. If I turn off the DataCache the problem goes away. 16-Jul-2008 12:09:07 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Ser

Re: @OneToMany/@ManyToOne, Bidirectional, Composite Key BUG

2008-07-16 Thread hfridland
Hi, I have same problem. I have 2 tables on Sybase Anywhere: @Entity public class Employee { @Id @GeneratedValue private Long Id; private String name; ... } @Entity @IdClass(EmpHourId.class) public class EmpHour { @Id private Long empId; @Id private L

RE: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Beyer,Nathan
OpenEJB provides their own JavaAgent to get the Instrumentation instances, but they take a different approach to transforming the classes. In OpenJPA, as I understand it, the enhancement is done aggressively and up front when the agent loads - at least it acts like that since the agent MUST find

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Kevin Sutter
Gareth, If you are still falling into the non-enhanced class file path, then there's still something wrong with the javaagent processing. I'm not following the reference that Nathan provided [1]. I'm not clear on what it's trying to tell me. Is the javaagent provided by OpenEJB supposed to autom

RE: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Gareth Davies
Kevin, Thanks for your suggestion, I have tried changing it to use the OpenJPA jar file as you suggested, and added the relevant geronimo-jta jar file to the class path, but unfortunately it still has the same problem with unenhanced classes. Thanks Gareth -Original Message- From: Kevin

RE: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Beyer,Nathan
BTW - The OpenEJB agent is supposedly only there for OpenJPA's enhancement [1]. The code maybe slightly different, but it's necessary to use JPA+EJB with OpenEJB as the provider. [1] http://openejb.apache.org/tomcat.html#Tomcat-Limitations -Original Message- From: Kevin Sutter [mailto:[

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Kevin Sutter
Gareth, I'm not familar with the openejb-javaagent-3.0.jar. Does that contain the OpenJPA code? From what I can tell, it does not. (I just now noticed that you had said you were using this and it didn't register when I first read your note.) Try replacing this stanza with the openjpa-1.1.0.jar

RE: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Gareth Davies
Kevin, Thanks for your reply, I changed the RuntimeUnhenhancedClasses to unsupported as you suggested and I did get the error message stating that my a number of my classes were not enhanced. So does this mean that the javaagent is not working correctly? I am specifying it in my maven pom.xml wh

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Kevin Sutter
Gareth, Recently, I found an obscure problem with the IBM JDK when using the javaagent enhancement, but I don't see how this would apply to this situation. You end up with a nasty exception from the Java runtime, and I would think you would have mentioned that... Other than than, I am not aware o

Re: Basic question: EntityManager.merge() vs .persist()?

2008-07-16 Thread swathi
even though we do not commit after deleting the row from data table it is not deleting wihtout commit..which is the same in case of 'remove' then what is the difference between 'delete' and 'remove' which is more efficient? plz make me clear... thanks Patrick Linskey-2 wrote: > > persist() in

Problem with openjpa enhancer - using runtime enhancement

2008-07-16 Thread Gareth Davies
Hi Openjpa 1.1.0 I am having a problem with runtime enhancement on my persistent entities. Runtime enhancement completes during my test phase using the openejb 3.0 javaagent, but when the unit tests run I have problems relating to merges using the entityManager. The id field does not seem to be

Re: no state snapshot available on embedded mapping

2008-07-16 Thread Marc Logemann
Ok, will get it from there. Thanks for your efforts. I will report back then. -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am 16.07.2008 um 01:02 schrieb Pinaki Poddar: The fix is on the trunk i.e. 1.2.0-SNAPSHOT. -- View this message in conte