You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by Jesse McConnell <je...@gmail.com> on 2007/02/06 22:58:01 UTC

couldn't obtain new sequence number

I mailed erik directly on this exception a little bit ago but I
figured I would check if anyone else had run into something like this
before.

my analysis of this turned up that it appears to have failed on
getting a new sequence number for the ChangeFile object of a
BuildResult that was getting stored.  Looking at the sequence table in
the database I see that the next available number for the sequence is
48256.  This is a postgres database btw.

looking at the model we don't really do much with this class in terms
of persistence, it has 3 fields of interest on it and its not indexed
or anything.

Has anyone seen anything like this before?

jesse


Caused by: org.jpox.store.poid.PoidException: Couldnt obtain a new
sequence (unique id) : ERROR: current transaction is aborted, commands
ignored until end of transaction block
        at org.jpox.store.rdbms.table.SequenceTable.getNextVal(SequenceTable.java:258)
        at org.jpox.store.rdbms.poid.SequenceTablePoidGenerator.reserveBlock(SequenceTablePoidGenerator.java:150)
        at org.jpox.store.poid.AbstractPoidGenerator.reserveBlock(AbstractPoidGenerator.java:284)
        at org.jpox.store.rdbms.poid.AbstractRDBMSPoidGenerator.obtainPoidBlock(AbstractRDBMSPoidGenerator.java:152)
        at org.jpox.store.poid.AbstractPoidGenerator.obtainPoidBlock(AbstractPoidGenerator.java:187)
        at org.jpox.store.poid.AbstractPoidGenerator.next(AbstractPoidGenerator.java:95)
        at org.jpox.store.rdbms.RDBMSManager.getStrategyValue(RDBMSManager.java:1622)
        at org.jpox.state.StateManagerImpl.populateStrategyFields(StateManagerImpl.java:804)
        at org.jpox.state.StateManagerImpl.<init>(StateManagerImpl.java:578)
        at org.jpox.state.StateManagerFactory.newStateManager(StateManagerFactory.java:105)
       at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1197)
        at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1261)
        at org.codehaus.plexus.jdo.PlexusJdoUtils.makePersistent(PlexusJdoUtils.java:175)
        at org.apache.maven.continuum.store.JdoContinuumStore.makePersistent(JdoContinuumStore.java:694)
        at org.apache.maven.continuum.store.JdoContinuumStore.addBuildResult(JdoContinuumStore.java:434)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.makeAndStoreBuildResult(DefaultBuildController.java:678)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.updateBuildResult(DefaultBuildController.java:230)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:444)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.bui

-- 
jesse mcconnell
jesse.mcconnell@gmail.com