You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Kevin Sutter <kw...@gmail.com> on 2010/08/24 15:53:57 UTC
Period error with loading openbooks inventory
Hi,
I'm using the OpenBooks sample for a demo and I periodically hit an
Optimistic Lock Exception while loading the database:
ant -f run.xml load
This doesn't happen every time, but often enough to have me post this
question and see if this is a known issue.
[java] Caused by: <openjpa-2.1.0-SNAPSHOT-r422266:988223M nonfatal
store error> org.apache.openjpa.persistence.OptimisticLockException: An
optimistic lock violation was detected when flushing object instance
"openbook.domain.Inventory-U0205-90" to the data store. This indicates that
the object was concurrently modified in another transaction.
[java] FailedObject: openbook.domain.Inventory-U0205-90
Any ideas?
Kevin
Re: Period error with loading openbooks inventory
Posted by Kevin Sutter <kw...@gmail.com>.
Yes, MySQL. My code was current as of the evening of 08/23 (trunk). Might
be a MySQL issue...
Thanks for trying to reproduce it.
Kevin
On Wed, Aug 25, 2010 at 10:17 AM, Michael Dick <mi...@gmail.com>wrote:
> I tried with the latest code (as of yesterday) and I wasn't able to
> reproduce it.
>
> I did make a couple of classpath changes and I only tried with Derby. Were
> you using MySQL by any chance?
>
> -mike
>
> On Tue, Aug 24, 2010 at 8:53 AM, Kevin Sutter <kw...@gmail.com> wrote:
>
> > Hi,
> > I'm using the OpenBooks sample for a demo and I periodically hit an
> > Optimistic Lock Exception while loading the database:
> >
> > ant -f run.xml load
> >
> > This doesn't happen every time, but often enough to have me post this
> > question and see if this is a known issue.
> >
> > [java] Caused by: <openjpa-2.1.0-SNAPSHOT-r422266:988223M nonfatal
> > store error> org.apache.openjpa.persistence.OptimisticLockException: An
> > optimistic lock violation was detected when flushing object instance
> > "openbook.domain.Inventory-U0205-90" to the data store. This indicates
> > that
> > the object was concurrently modified in another transaction.
> > [java] FailedObject: openbook.domain.Inventory-U0205-90
> >
> > Any ideas?
> >
> > Kevin
> >
>
Re: Period error with loading openbooks inventory
Posted by Michael Dick <mi...@gmail.com>.
I tried with the latest code (as of yesterday) and I wasn't able to
reproduce it.
I did make a couple of classpath changes and I only tried with Derby. Were
you using MySQL by any chance?
-mike
On Tue, Aug 24, 2010 at 8:53 AM, Kevin Sutter <kw...@gmail.com> wrote:
> Hi,
> I'm using the OpenBooks sample for a demo and I periodically hit an
> Optimistic Lock Exception while loading the database:
>
> ant -f run.xml load
>
> This doesn't happen every time, but often enough to have me post this
> question and see if this is a known issue.
>
> [java] Caused by: <openjpa-2.1.0-SNAPSHOT-r422266:988223M nonfatal
> store error> org.apache.openjpa.persistence.OptimisticLockException: An
> optimistic lock violation was detected when flushing object instance
> "openbook.domain.Inventory-U0205-90" to the data store. This indicates
> that
> the object was concurrently modified in another transaction.
> [java] FailedObject: openbook.domain.Inventory-U0205-90
>
> Any ideas?
>
> Kevin
>