Re: [Resin-interest] NullPointerException on invoking EntityManager.persist()

2008-04-08 Thread Emil Ong
On Mon, Apr 07, 2008 at 11:07:16PM +0100, Charles Lyons wrote: [snip] > So in summary, I'm not sure if this is a bug in Resin or Connector/J 5.1.5, > but the recommended MySQL pooled driver certainly doesn't work as expected. Hi Charles, I've filed this as a bug: http://bugs.caucho.com/view.p

Re: [Resin-interest] NullPointerException on invoking EntityManager.persist()

2008-04-07 Thread Charles Lyons
Okay, I have successfully traced the source of this problem. Firstly, I'm using the current MySQL Connector/J 5.1.5 binary. I was using the recommended MySQL driver (as per all the Resin tutorials) which is: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource However, if I change this

Re: [Resin-interest] NullPointerException on invoking EntityManager.persist()

2008-04-07 Thread Charles Lyons
>Can you try your example on the latest snapshot? It contains a few >Amber fixes. If you're still getting the error in the snapshot, I'll >file it as a bug. I have already tried on the snapshot from 31st March and get exactly the same NPE stack trace as on 3.1.5 open source. If you need any mor

Re: [Resin-interest] NullPointerException on invoking EntityManager.persist()

2008-04-07 Thread Emil Ong
On Sun, Apr 06, 2008 at 06:37:33PM +0100, Charles Lyons wrote: [snip] > So, is there something obviously wrong with what I'm doing or is this a > bug? If the latter, any idea when there will be a fix? Time permitting, I > can look into a fix myself. It looks like it might be something to do with

[Resin-interest] NullPointerException on invoking EntityManager.persist()

2008-04-06 Thread Charles Lyons
Hello, After a very frustrating day I still haven't got Amber to work as it should on Resin 3.1.5. I have managed to get my examples to read things out of the databases and update objects from data (and vice-versa) already in the databases and this works beautifully. However, whenever I try to