Hi all,
 
I am having a problem when I am trying to store object into the database
calling store() on the persistent broker. Here is the the resulting
exception
 
<2002-10-09 14:18:30,107> <HttpProcessor[8082][4]> <ERROR> <DEFAULT>
<10.32.4.179|FDEA434D27E2BB84E4B95362713E38DD> <java.lang.RuntimeException:
OJB ERROR: Dont know how to autoincrement field class
au.com.vodafone.sid.model.OjbObject.myID>
<2002-10-09 14:18:30,122> <HttpProcessor[8082][4]> <ERROR>
<OjbBrokerManager> <10.32.4.179|FDEA434D27E2BB84E4B95362713E38DD> <Error
while storing handset in the database: OJB ERROR: Dont know how to
autoincrement field class au.com.vodafone.sid.model.OjbObject.myID>
<2002-10-09 14:18:30,122> <HttpProcessor[8082][4]> <ERROR>
<OjbBrokerManager> <10.32.4.179|FDEA434D27E2BB84E4B95362713E38DD>
<org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: OJB
ERROR: Dont know how to autoincrement field class
au.com.vodafone.sid.model.OjbObject.myID
 at org.apache.ojb.broker.Identity.<init>(Identity.java:157)
 at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBroker
Impl.java:388)
 at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBroker
Impl.java:352)

I am using ojb version 0.9.2. I have searched through the message boards and
read a number fo related entries. Alot of them seem to point to the how the
broker is being used however what i have works, and has worked well for a
number of months on our production server. 
 
The weird thing about it is I can store thing fine, but then after what
seems to be a random amount of usage all attempts to store object result in
the exception. I am using the SequenceManagerHighLowImpl. I have 2 theories,
perhaps there is a problem with the sequence numbers in the OJB_HL_SEQ table
(but it works to start with?). My second is that somehow the persistent
broker doesn't know about the mapping?
 
Has anyone else experienced this or know what the problem may be?
 
        try
        {
            getBroker().beginTransaction();
            storeObject(claim);
            getBroker().commitTransaction();
        }
        catch(OptimisticLockException ole)
        {
            getBroker().abortTransaction();
            handleOptimisticLockException("Error while storing claim in the
database", ole, claim);
        }
        catch (PersistenceBrokerException e)
        {
            getBroker().abortTransaction();
            handleOjbException("Error while storing claim in the database",
e);
        }
        finally
        {
            releaseBroker();
        }
 
cheers

Shea Kelly

Reply via email to