RE: Newbie question on Cayenne error at runtime

From: McBrayer, Roy (Roy.McBraye..ail.va.gov)
Date: Wed Jul 14 2004 - 18:05:47 EDT

  • Next message: shaun: "Re: Tapestry + relationship-backed form components"

    Thanks. That resolved that set of errors. I will need to edit my XML to
    reflect the package name. I really appreciate your help.

    Now I am getting

    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1B1 July 13 2004]
    Query exception. at
    org.objectstyle.cayenne.access.util.SelectObserver.nextQueryException(Select
    Observer.java:213) at
    org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:363)
    at
    org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:654
    ) at
    org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1
    336) at
    org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:1
    76) at
    org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1
    294) at
    org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:155
    0) at
    org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:141
    3) at iiv_test.CreateReport.cayenneReport1(CreateReport.java:33) at
    iiv_test.CreateReport.main(CreateReport.java:20) Caused by:
    java.sql.SQLException: ORA-00600: internal error code, arguments:
    [ttcgcshnd-1], [0], [], [], [], [], [], []

    that occurs when I try to query using

            DataContext ctxt =DataContext.createDataContext();
                SiteDailySum sdm = new SiteDailySum();
                ctxt.registerNewObject(sdm);
                SelectQuery query = new SelectQuery(SiteDailySum.class);
                List records = ctxt.performQuery(query);

    Thanks,
    Roy

    -----Original Message-----
    From: Andrus Adamchik [mailto:andru..bjectstyle.org]
    Sent: Wednesday, July 14, 2004 4:54 PM
    To: cayenne-use..bjectstyle.org
    Subject: RE: Newbie question on Cayenne error at runtime

    Ok this one might be easy... The message "Class 'SiteDailySum'..."
    indicates that the class name doesn't have a package in the mapping.
    Doublecheck that the entity for SiteDailySum has fully qualified class
    name in the "Java Class:" field. I.e. "iiv_test.SiteDailySum" instead of
    just "SiteDailySum".

    Andrus

    > Thanks.
    >
    > I used
    >
    > Configuration.bootstrapSharedConfiguration(iiv_test.SiteDailySum.class);
    >
    > and was able to build without an error. But the running the program
    > still
    > gives me:
    >
    >
    >
    > WARN EntityResolver: *** Class 'SiteDailySum' not found in runtime.
    > Ignoring.
    > java.lang.IllegalArgumentException: Can't find ObjEntity for DataObject
    > class: iiv_test.SiteDailySum, class is likely not mapped. at
    >
    org.objectstyle.cayenne.access.DataContext.registerNewObject(DataContext.jav
    > a:889) at
    iiv_test.CreateReport.cayenneReport1(CreateReport.java:29)
    > at iiv_test.CreateReport.main(CreateReport.java:20) Exception in
    thread
    > "main"
    >
    > Thanks,
    > Roy
    >



    This archive was generated by hypermail 2.0.0 : Wed Jul 14 2004 - 18:05:31 EDT