Re: can I run without enhancements?

2008-09-30 Thread Angel Vera
Ops.. Yahoo send my email before I paste the exception lines: SEVERE: Exception sending context initialized event to listener instance of class org.apache.roller.weblogger.ui.core.RollerContext java.lang.RuntimeException: <0.9.7-incubating fatal user error> org.apache.openjpa.persistence.Argu

Re: can I run without enhancements?

2008-09-30 Thread Angel Vera
HI Kevin, I am running inside of the JEE container, I am running "Roller" (which has a a fair amount of JPA objects), but the enhacement is not happening on the fly. Perhaps you can fill me in in option 2. I tried to use the -javaagent but I didn't find a way of passing this argument to the

Re: UPDATE is called when only SELECT is expected

2008-09-30 Thread Kevin Sutter
I believe this issue is already being discussed on this forum: http://n2.nabble.com/Non-dirty-entity-version-field-update-SUPER-URGENT!!!-td1120307.html#a1129303 Please join that discussion with any additional insights. Thanks, Kevin On Tue, Sep 30, 2008 at 2:50 PM, Sergej Shafarenka <[EMAIL PR

UPDATE is called when only SELECT is expected

2008-09-30 Thread Sergej Shafarenka
Hey Guys! I use OpenJPA in tandem with SpringFramework. I wrote a simple application which reads some data from MySQL database and faced very weird problem: openjpa executes an "update" statement when only "select" query is used and no object modifications are done. // My service's method loo

UPDATE is executed when only SELECT is expected

2008-09-30 Thread Sergej Sha
Hey Guys! I use OpenJPA in tandem with SpringFramework. I wrote a simple application which reads some data from MySQL database and faced very weird problem: openjpa executes an "update" statement when only "select" query is used and no object modifications are done. // My service's method looks

Re: Test suite slow on DB2

2008-09-30 Thread Michael Dick
Hi Milosz, Sorry I didn't open the JIRA yesterday. That's exactly what I was thinking, we'll want to be able to override the entire set of parameters, not just MaxIdle or MaxActive. -mike On Tue, Sep 30, 2008 at 12:52 PM, Miłosz Tylenda <[EMAIL PROTECTED]> wrote: > Michael, > > I think this pos

Re: Test suite slow on DB2

2008-09-30 Thread Miłosz Tylenda
Michael, I think this possibility to overrride pool settings is a good idea. Not sure whether I understood you correctly but if you plan to allow to override only maxIdle then it can be not enough for some environments. In my case I had to specify maxIdle but also eviction related properties. S

Re: JPA 2.0 development plans...

2008-09-30 Thread Craig L Russell
Hi Kevin, Good idea to branch and distinguish JPA 1.0 from JPA 2.0 specification level. I'd also like to hear from the user community about both the strategy and the timing of branching. Craig On Sep 30, 2008, at 9:10 AM, Kevin Sutter wrote: Due to the upcoming JPA 2.0 development acti

Re: Non dirty entity version field update SUPER URGENT!!!

2008-09-30 Thread egoosen
Hi Michael, Its a long story, but you can read about it here: http://n2.nabble.com/%40OneToMany-%40ManyToOne%2C-Bidirectional%2C-Composite-Key-BUG-tc210672.html#a221083 http://n2.nabble.com/%40OneToMany-%40ManyToOne%2C-Bidirectional%2C-Composite-Key-BUG-tc210672.html#a221083 In the mean time,

Two different peristent-units

2008-09-30 Thread Claudio Romano
Hi all In our application we have two databases that are managing the same entities. On DB is "live"(Oracle) the other DB is for offline use (HSQL). Now we are try to synchronize entities from the offline to the live one and vice-versa, this causes some problem with id and version generation in f

Re: java.lang.ClassCastException: org.apache.openjpa.util.Id incompatible with org.apache.openjpa.util.LongId

2008-09-30 Thread Michael Dick
Sorry, I read that too quickly. I'll take another look. -mike On Tue, Sep 30, 2008 at 3:57 AM, StephanKoo <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > note, that here are different classes. The one class is Id and the other > IntId (the same with LongId; all classes in package > org.apache.ope

Re: Non dirty entity version field update SUPER URGENT!!!

2008-09-30 Thread Michael Dick
Hi, I'm doing something similar : @Test public void testMergeUnchangedEntityAPIs() { EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); MyEntity e = new MyEntity(); e.setName("MyName1"); em.persist(ct); em.getTransact

Re: can I run without enhancements?

2008-09-30 Thread Kevin Sutter
Angel, There is a "fallback enhancement" process that uses sub-classing, but previous appends to the forums indicate that this is not a production-ready process. This is really meant for the simple "out of the box" applications for demonstration purposes. Real applications should use some type of

Re: OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-09-30 Thread egoosen
Hi, Sorry for late reply, been snowed under. I tested with 1.3.0-SNAPSHOT and it works fine. Thank you guys! Enrico catalina wei-2 wrote: > > Enrico, > I have committed Fay's patch under trunk r699156. Could you please extract > latest code and verify if it fix the problem? > Thanks. > Catal

Re: Non dirty entity version field update SUPER URGENT!!!

2008-09-30 Thread egoosen
Hi, I tested again using 1.3.0-SNAPSHOT, and no luck. Here's the SQL output: 187655 status TRACE [http-8080-1] openjpa.jdbc.SQL - batching prepstmnt 20910753 UPDATE EBSTATUS.TBL_ADR SET VRS_NBR = ? WHERE ADR_ID = ? AND VRS_NBR = ? [params=(int) 26, (int) 1, (int) 25] 187655 status TRACE [

Re: java.lang.ClassCastException: org.apache.openjpa.util.Id incompatible with org.apache.openjpa.util.LongId

2008-09-30 Thread StephanKoo
Hi Michael, note, that here are different classes. The one class is Id and the other IntId (the same with LongId; all classes in package org.apache.openjpa.util). Michael Dick wrote: > > Hi Stephan, > > This type of exception is generally the result of the class being loaded > by > two differ