0 Replies Latest reply on Sep 23, 2011 6:53 AM by NPEETE

    Error: Object instance needs an mx_internal::referencedIds property inorder to be managed: Object

    NPEETE

      Hi guys,

       

      We are building an application that is using managed data services. You can find below our data-management-config.xml file.

      Everything works fine, except, when doing a fill from  the cache (for instance by re-starting the application offline, we are getting the error Error: Object instance needs an mx_internal::referencedIds property inorder to be managed: Object

       

      This was not the case before, when we did not use the managed one-to-one associations in the assignments destination.

       

      Does anyone have an idea ?

       

      <?xml version="1.0" encoding="UTF-8"?>
      <service id="data-service" class="flex.data.DataService">

          <adapters>
              <adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter"/>
              <adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter" default="true"/>
          </adapters>

        <default-channels>
              <channel ref="my-rtmp"/>
        </default-channels>

       

      <destination id="assignments">
      <adapter ref="java-dao" />
      <properties>
        <source>AssignmentASS</source>
        <scope>application</scope>
        <item-class>Assignment</item-class>
        <metadata>
         <identity property="orderid" undefined-value="0"/>
         <identity property="activity" undefined-value="0"/>
         <one-to-one property="sold_to" destination="address" lazy="false"/>
                  <one-to-one property="ship_to" destination="address" lazy="false"/>
                  <one-to-one property="statusProfile" destination="statusProfile" lazy="false"/>
        </metadata>
        <network>
         <paging enabled="false" pageSize="10" />
        </network>
      </properties>
      </destination>


      <destination id="address">
          <adapter ref="java-dao" />
          <properties>
              <source>AddressASS</source>
              <scope>application</scope>
              <item-class>Address</item-class>
              <metadata>
               <identity property="orderid" undefined-value="0"/>
         <identity property="activity" undefined-value="0"/>
         <identity property="partner_function" undefined-value="0"/>
              </metadata>
              <network>
                  <paging enabled="false" pageSize="10" />
              </network>
          </properties>
      </destination>

      <destination id="statusProfile">
         <adapter ref="java-dao" />
          <properties>
              <source>StatusProfileASS</source>
              <scope>application</scope>
              <item-class>StatusProfile</item-class>
              <metadata>
               <identity property="orderid" undefined-value="0"/>
         <identity property="activity" undefined-value="0"/>
         <one-to-many property="statuses" destination="statuses" lazy="false"/>
              </metadata>
              <network>
                  <paging enabled="false" pageSize="10" />
              </network>
          </properties>
      </destination>

      <destination id="statuses">
          <adapter ref="java-dao" />
          <properties>
              <source>StatusASS</source>
              <scope>application</scope>
              <item-class>Status</item-class>
              <metadata>
               <identity property="orderid" undefined-value="0"/>
         <identity property="activity" undefined-value="0"/>
         <identity property="stat_order" undefined-value="0"/>
              </metadata>
              <network>
                  <paging enabled="false" pageSize="10" />
              </network>
          </properties>
      </destination>

      </service>