openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aprestwich <>
Subject Re: IllegalArgumentException on persist, but only on first attempt
Date Mon, 09 Nov 2009 22:41:50 GMT

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 :).

Michael Dick wrote:
> Hi,
> It looks like you're hitting this problem :
> . 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
> <>wrote:
> :confused:
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message