Using the 0.9.8 distribution, I receive the following error:

org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: 
com.unitechsys.intransportstruts.businessobjects.SenderRequest not found in OJB 
Repository

I do have a class descriptor for this class in my repository_user.xml file.

Tracing through the OJB code, I see that the exception is thrown in the 
getDescriptorFor() method in the org.apache.ojb.broker.metadata.DescriptorRepository 
class.  The hashtable (descriptorTable) does contain a key with the value I am looking 
for; however, it is padded with nulls on the end, so the underlying char[] of the 
String has a length of 70.  The String value passed as a parameter to 
descriptorTable.get() does not have any of these extra nulls, so the lookup fails.

Has anyone seen behavior like this?  Why the extra nulls after parsing the contents of 
the repository_user.xml file?

Thanks,

Ron Prueter
Senior Product Developer
Unitech Systems, Inc.
[EMAIL PROTECTED]


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

Reply via email to