cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malcolm Edgar" <>
Subject DataObjectUtils.objectForPK
Date Wed, 26 Mar 2008 00:04:58 GMT
Hi All,

I have been having issues with using Cayenne 3.0M3 DataObjectUtils
method objectForPK(ObjectContext, Class, Object)

Caused by: java.lang.NoSuchMethodError:
10:59:06,990 INFO  [STDOUT] 	at

The cod which is causing this error is below:

    Class<DataObject> dataClass = getDataObjectClass();

    DataObject dataObject = (DataObject)
DataObjectUtils.objectForPK(getDataContext(), dataClass, id);

Runtime environment is Java 1.5, running on JBoss 4.0.3

Can anyone suggest a resolution here.

regards Malcolm Edgar

View raw message