I'm trying to upgrade from 0.9.7 to 0.9.8 and am having some problems that I don't understand yet.

I'm getting the warning about not finding an autoincrement attribute for a class. I'm not sure when
I have to have an autoincrement attribute, but the primarykey for the class I'm using is a varchar
so that autoincrement doesn't seem appropriate.

Subsequently, I get an null pointer exception error in the SequenceManagerHelper that I don't understand:
java.lang.NullPointerException
at org.apache.ojb.broker.util.sequence.SequenceManagerHelper.buildSequenceName(SequenceManagerHelper.java:48)
at org.apache.ojb.broker.util.sequence.SequenceManagerHiLoImpl.getUniqueId(SequenceManagerHiLoImpl.java:49)
at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getUniqueId(PersistenceBrokerImpl.java:2258)
at org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.getUniqueId(DelegatingPersistenceBroker.java:242)
at gov.lanl.Database.OJBDatabaseMgr.getNextSeq(OJBDatabaseMgr.java:582)
at gov.lanl.COAS.AbstractObservationValue_.<init>(AbstractObservationValue_.java:54)
at gov.lanl.COAS.Empty_.<init>(Empty_.java:31)

I'm pretty sure that it is being called correctly from my code (which works fine in 0.9.7), but it is failing now.

An unrelated warning in a different application is that OJB says I should use addLike() for using LIKE, but it
seems to use the right code anyway. Is this just a deprecation issue? I don't see why it bothers
to tell me this, if it can figure what to do anyway.

Thanks,

Dave


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to