Thank you very much, that was the ticket. I was using MySQL Driver 5.1.6
which I had downloaded some time ago, once replaced everything worked
perfectly. It is odd that it would only fail on the first time...guess I was
focusing in the wrong place (OpenJPA rather than MySQL). 

Thanks again for saving me even more wasted time :).
Alan.



Michael Dick wrote:
> 
> Hi,
> 
> It looks like you're hitting this problem :
> http://bugs.mysql.com/bug.php?id=37645 . Grabbing the latest MySQL driver
> should resolve the problem for you.
> 
> That it happens only the first time is a bit unusual. If I had to guess
> I'd
> say that subsequent calls are caching the prepared statement instead of
> closing it and you'd see the IllegalArgumentException whenever the
> statement
> was purged from the cache.
> 
> Regards,
> -mike
> On Mon, Nov 9, 2009 at 1:43 PM, aprestwich
> <[email protected]>wrote:
> :confused:
-- 
View this message in context: 
http://n2.nabble.com/IllegalArgumentException-on-persist-but-only-on-first-attempt-tp3975239p3976304.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to