[OS-JIRA] Created: (CAY-417) Prefetching one-to-one throws an exception

From: jira-norepl..bjectstyle.org
Date: Sun Jan 08 2006 - 20:43:37 EST

  • Next message: Andrus Adamchik: "Re: Prefetch weirdness"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-417

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-417
        Summary: Prefetching one-to-one throws an exception
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 1.2 [DEV]
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Andrus Adamchik

        Created: Sun, 8 Jan 2006 8:42 PM
        Updated: Sun, 8 Jan 2006 8:42 PM

    Description:
    This was first mentioned here:

    http://www.objectstyle.org/cayenne/lists/cayenne-devel/2005/12/0036.html

    Any prefetch of a dependent to-one entity would result in exception like that:

    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2M10 January 5 2006] To-one relationship wasn't handled properly: profile
            at org.objectstyle.cayenne.access.PrefetchProcessorNode.connect(PrefetchProcessorNode.java:192)
            at org.objectstyle.cayenne.access.PrefetchProcessorNode.connectToNodeParents(PrefetchProcessorNode.java:167)
            at org.objectstyle.cayenne.access.PrefetchProcessorNode.connectToParents(PrefetchProcessorNode.java:153)
            at org.objectstyle.cayenne.access.ObjectTreeResolver$PostProcessor.startDisjointPrefetch(ObjectTreeResolver.java:484)
            at org.objectstyle.cayenne.query.PrefetchTreeNode.traverse(PrefetchTreeNode.java:203)
            at org.objectstyle.cayenne.query.PrefetchTreeNode.traverse(PrefetchTreeNode.java:216)
            at org.objectstyle.cayenne.access.ObjectTreeResolver.resolveObjectTree(ObjectTreeResolver.java:113)
            at org.objectstyle.cayenne.access.DataContextSelectAction.getResultsAsObjects(DataContextSelectAction.java:246)
            at org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:181)
            at org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:93)
            at org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1200)
            at org.objectstyle.cayenne.DataObjectUtils.objectForQuery(DataObjectUtils.java:327)

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Sun Jan 08 2006 - 20:43:39 EST