You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Rajadurai K <ra...@trigent.com> on 2004/10/04 06:57:40 UTC

getting problem in reppsitory xml

hi,
   i m getting this exception when trying to persist the data

 i attached the java file and repository xml.
  i m getting the following exception


Executing Query :QueryByCriteria from class com.trigent.vo.NextSequence
where [sequenceFor = CLASSNAME]
- Create new ObjectCacheImplementation for 'ora1'
Next Sequence	:com.trigent.vo.NextSequence@f62a017
Next Value	:1
propertiesMap ={sequenceFor=CLASSNAME, nextValue=2, tableID=1, class=class
com.trigent.vo.NextSequence}
org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException:
java.lang.Long not found in OJB Repository
	at
org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(Unknown
Source)
	at
org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(Unknown
Source)
	at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getClassDescriptor(Unknown
Source)
	at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(Unknown Source)
	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(Unknown
Source)
	at
com.trigent.datamanagement.JdbcPersistenceManagerImpl.getUpdatedNextSequence
(JdbcPersistenceManagerImpl.java:447)
	at
com.trigent.actions.NextSequenceDAO.getUpdatedNextSequence(NextSequenceDAO.j
ava:68)
	at
com.trigent.runtime.util.NameGeneratorWrapper.getClassName(NameGeneratorWrap
per.java:20)
	at
com.trigent.runtime.util.NameGeneratorWrapper.main(NameGeneratorWrapper.java
:90)
Exception	:com.trigent.exception.UpdateException: java.lang.Long not found
in OJB Repository




can anyone give me the solution please.
Thanks in advance.


with Regards,
Rajadurai