2 Replies Latest reply on Jun 18, 2010 10:47 AM by tomj

    Data service

    HoangNhuY

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getDataListWithCollectionId()[C:\depot\flex\br anches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:286 2]

      at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::processUpdateCollection()[C:\depot\flex\branch es\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:3611]

      at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::commitResultHandler()[C:\depot\flex\branches\e nterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:1625]

      at mx.data::CommitResponder/result()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p rojects\data\src\mx\data\CommitResponder.as:415]

      at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]

      at NetConnectionMessageResponder/resultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx \messaging\channels\NetConnectionChannel.as:491]

      at mx.messaging::MessageResponder/result()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messa ging\MessageResponder.as:199]

       

      I've lost so much time with this error. please help me

        • 1. Re: Data service
          Mike Peterson

          Can you please provide information/code in addition to your stacktrace?

          • 2. Re: Data service
            tomj Adobe Employee

            Check the object coming back over the wire (turn on server side debugging) and ensure that the types are mapped correctly.  Double check your [RemoteClass(alias="xxxx")]  are correctly specified in your ActionScript value objects.

             

            Looks like you are using "corfu" which is LCDS 2.5 if I recall.  That is pretty old, you probably want to upgrade to at least LCDS 2.5.1 (free update) or better yest, jump to LCDS 3.1 and start using Model driven development!