Hi

When calling the acceptClient method on a conflict I get the error
below (end of this message). The acceptServer method works just fine,
but for some reason, which I just cannot figure out for days now, the
acceptClient method fails.

If I try to acceptClient a second time I get: Attempt to resolve a
Conflict that was already resolved. mx.data::Conflict (which is not
surprising, but may help to get an idea of what is happening)

Any hint would be much appreciated. Thanks!

My data service is configured as this:

<mx:DataService id="contacts"
conflict="view.dialogs.ConflictDialog.conflictHandler(event)"
destination="contacts" autoCommit="false" autoSyncEnabled="false"/>
        
and on the server:

<destination id="contacts">
         <adapter ref="java-dao" />
         <properties>
          <use-transactions>true</use-transactions>
          <source>flex.data.assemblers.HibernateAssembler</source>
          <scope>application</scope>
          <metadata>
           <identity property="id"/>
            <many-to-one property="contacttype" destination="contacttype"
lazy="false"/>
          </metadata>
          <network>
           <paging enabled="true" pageSize="10" />
           <throttle-inbound policy="ERROR" max-frequency="500"/>
          </network>
          <server>
           <hibernate-entity>model.Contact</hibernate-entity>
           <update-conflict-mode>PROPERTY</update-conflict-mode>
           <delete-conflict-mode>OBJECT</delete-conflict-mode>
           <fill-configuration>
            <use-query-cache>false</use-query-cache>
            <allow-hql-queries>true</allow-hql-queries>
           </fill-configuration>
          </server>
         </properties>
        </destination>


AS error on client when calling acceptClient:


TypeError: Error #1009: Cannot access a property or method of a null
object reference.
        at
mx.data::ConflictResolver/updateMessageForAcceptClient()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConflictResolver.as:458]
        at
mx.data::ConflictResolver/acceptClientForPullConflict()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConflictResolver.as:316]
        at
mx.data::ConflictResolver/acceptClient()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConflictResolver.as:84]
        at
mx.data::Conflict/acceptClient()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\Conflict.as:239]
        

Reply via email to