error while inserting object

From: kalpesh modi (modi_kalpes..ahoo.com)
Date: Fri Sep 17 2004 - 13:38:40 EDT

  • Next message: kalpesh modi: "very poor documentation and tutorials"

    Hi,
    When I try to insert one object that has reference to
    another object. I tried to get that reference object
    using primary key, and I get the hollow object.
    When I set my hollow object, it is throwing run time
    exception.

    org.objectstyle.cayenne.CayenneRuntimeException:
    [v.1.1B2 July 25 2004] Query exception.
            at
    org.objectstyle.cayenne.access.util.SelectObserver.nextQueryException(SelectObserver.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:1373)
            at
    org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:176)
            at
    org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1331)
            at
    org.objectstyle.cayenne.access.DataRowStore.getSnapshot(DataRowStore.java:307)
            at
    org.objectstyle.cayenne.access.ObjectStore.getSnapshot(ObjectStore.java:731)
            at
    org.objectstyle.cayenne.access.ObjectStore.resolveHollow(ObjectStore.java:970)
            at
    org.objectstyle.cayenne.CayenneDataObject.resolveFault(CayenneDataObject.java:215)
            at
    org.objectstyle.cayenne.CayenneDataObject.readProperty(CayenneDataObject.java:225)
            at
    org.objectstyle.cayenne.CayenneDataObject.addToManyTarget(CayenneDataObject.java:321)
            at
    org.objectstyle.cayenne.CayenneDataObject.setReverseRelationship(CayenneDataObject.java:407)
            at
    org.objectstyle.cayenne.CayenneDataObject.setToOneTarget(CayenneDataObject.java:377)

    Any help is appreciated.
    Thanks,

    =====
    Regards,
    -Kalpesh
    (703)506-8229 X-3308 (Work)
    (203)676-9385 (Mobile)

                    
    _______________________________
    Do you Yahoo!?
    Declare Yourself - Register online to vote today!
    http://vote.yahoo.com



    This archive was generated by hypermail 2.0.0 : Fri Sep 17 2004 - 13:38:42 EDT