Re: Bug in latest cvs --No suitable DataNode to handle query with root: class [dataobject class]

From: Mike Kienenberger (mkienen..laska.net)
Date: Thu Feb 12 2004 - 17:00:55 EST

  • Next message: Mike Kienenberger: "correct way to Log from within Cayenne code?"

    Andrus Adamchik <andru..bjectstyle.org> wrote:
    > Is there anything special about your configuration, like multiple
    > DataNodes or multiple DataMaps, or entities created on the fly? Do you
    > see any warnings of your code relying on deprecated API?
    >
    > I changed DataDomain routing code a few days back to look up nodes by
    > DataMap, instead of ObjEntity. This worked with the test cases, but I
    > won't be surprised if I overlooked some deployment scenario.

    Yeah, right away I had noticed that depreciation and updated my optimistic
    locking code to use the new Lookup function. However, the failure occurred
    on the first generic select query executed by the application. I had no
    depreciation warnings after upgrading.

    Probably the odd thing about my config is that I have two DataNodes and one
    DataMap.

            <node name="OpenBase"
                     datasource="OpenBase.driver.xml"
                     adapter="org.objectstyle.cayenne.dba.openbase.OpenBaseAdapter"
                     factory="org.objectstyle.cayenne.conf.DriverDataSourceFactory">
             </node>
            <node name="Oracle 9i"
                     datasource="Oracle 9i.driver.xml"
                     adapter="org.objectstyle.cayenne.dba.oracle.OracleAdapter"
                     factory="org.objectstyle.cayenne.conf.DriverDataSourceFactory">
                            <map-ref name="OnlineBilling"/>
             </node>

    I swap the map ref line between them depending on whether I'm testing under
    OpenBase or under Oracle.
    No entities created on the fly.

    -Mike



    This archive was generated by hypermail 2.0.0 : Thu Feb 12 2004 - 17:00:56 EST