Hi,

I have experienced the same behavior and output.
Here it happens exactly when the cache directory is empty or missing,
and the server is offline.
Any remote or cache related method call on the dataService object ends
with this error (ds.getCacheDescriptors(..), etc).

Initial ds properties are :
...
        ds.autoSaveCache = false;
        ds.autoConnect = false;
        ds.autoCommit = false; 
...

I've spent the day along with a customer who's implementing a world
wide application with the offline AIR synch feature, and isolated the
same behavior on Christophe's InSync.
 
We were using lcds2.6 beta with flex3 sdk 3.0.1.1050 on their
application, and lcds2.6 update1 with sdk 3.0.3.2490 on InSync.

After playing a while with the parameters, i've found, having the
cache empty, that the only way to make it work is to have the server
online  + setting the ds.autoconnect at true.
Otherwise, I get the same error. Try/catching won't help as the error
get risen in another method stack.

Once the cache is filled with data, everything is fine except when I
set the autoconnect=true. In this case, the datagrid ends empty.

To sum it up :
1/ cache empty :
   - Server OFF + autoconnect=true => error
   - server OFF + autoconnect=false => error
   - server ON  + autoconnect=true => Loads data and fills cache
   - server OFF + autoconnect=false => error

2/ cache filled : 
   - Server OFF + autocommit=true => datagrid empty, no error message
   - server OFF + autocommit= false => works fine
   - server ON  => always works.

This behavior is maybe linked with Florence's one.

Daniel Pesic.
KapIT


--- In [email protected], "fkolberg" <[EMAIL PROTECTED]> wrote:
> Filling...
> ServerConfig.xml
> DataService.fill() called for destination: insync with args: []
> 'ds-producer-insync' producer acknowledge of
> '30E89B94-338F-3AB4-4E01-68AD10E196
> 4C'.
> Finished validating destination: insync loadOnDemand/paged
> associations: [] sub-
> types:
> Caught error initializing metadata for datastore: null error:
> TypeError: Error #
> 2007: Parameter value must be non-null.
>         at ObjectOutput/writeUTF()
>         at
> mx.data::MessageBatch/writeExternal()[C:\depot\flex\branches\enterpri
> se_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:738]
>         at ObjectOutput/writeObject()
>         at
> mx.data::DataMessageCache/writeExternal()[C:\depot\flex\branches\ente
>
rprise_corfu_rc\frameworks\projects\data\src\mx\data\DataMessageCache.as:1110]
>         at flash.utils::ByteArray/writeObject()
>         at
> mx.utils::ObjectUtil$/copy()[E:\dev\3.0.x\frameworks\projects\framewo
> rk\src\mx\utils\ObjectUtil.as:100]
>         at
> mx.data::SQLDBCacheCollection/get()[C:\depot\flex\branches\enterprise
>
_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCacheCollection.as:90]
>         at
> mx.data::DataStore/initMessageCache()[C:\depot\flex\branches\enterpri
> se_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:3493]
>         at
> <anonymous>()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p
> rojects\data\src\mx\data\DataStore.as:2324]
>         at
> <anonymous>()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p
> rojects\data\src\mx\data\DataStore.as:2363]
>         at flash.events::EventDispatcher/dispatchEventFunction()
>         at flash.events::EventDispatcher/dispatchEvent()
>         at
> mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\ente
>
rprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540]
>         at Function/http://adobe.com/AS3/2006/builtin::apply()
>         at
> mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\p
> rojects\rpc\src\mx\rpc\AsyncDispatcher.as:50]
>         at flash.utils::Timer/_timerDispatch()
>         at flash.utils::Timer/tick()
> Dispatching fault event for destination: insync
> ds.fill(): failure
> Could not initialize DataService.
> Finished calling fault handlers for destination: insync
> 
> Do you know what I should do to solve that?
> thanks 
> Florence
> 


Reply via email to