Re: DataObjectUtils.objectForPK

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Mar 26 2008 - 05:24:51 EDT

  • Next message: Andrus Adamchik: "Re: Crash when reconnecting to MySQL (3.0M3)"

    Doesn't look like a bug. Just an indicator that something needs to be
    recompiled.

    Andrus

    On Mar 26, 2008, at 2:04 AM, Malcolm Edgar wrote:

    > Hi All,
    >
    > I have been having issues with using Cayenne 3.0M3 DataObjectUtils
    > method objectForPK(ObjectContext, Class, Object)
    >
    > Caused by: java.lang.NoSuchMethodError:
    > org.apache.cayenne.DataObjectUtils.objectForPK(Lorg/apache/cayenne/
    > ObjectContext;Ljava/lang/Class;Ljava/lang/Object;)Lorg/apache/
    > cayenne/DataObject;
    > 10:59:06,990 INFO [STDOUT] at
    > net
    > .sf.click.extras.cayenne.CayenneForm.getDataObject(CayenneForm.java:
    > 336)
    >
    > 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
    >



    This archive was generated by hypermail 2.0.0 : Wed Mar 26 2008 - 05:25:25 EDT