Select to view content in your preferred language

Mobile Flex Serialize Feature Layer Issue

739
2
01-29-2013 04:53 AM
MattSheehan
Deactivated User
We attended the Flex holistic lab in September 2012. At the time we were testing a mobile app using the 3.1b Flex build without problems. We've just started looking at the actual 3.1 release for an online/offline mobile app. In the app we are serializing a feature layer for offline use. With 3.0 and the 3.1b build, we were using in the September lab, all worked well, but in 3.1 we are getting the error below. We wondered what might have changed in 3.1 to cause this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.esri.ags.layers::Layer/updateLayerIfInvalid()
    at com.esri.ags.layers::Layer/updateDisplayList()
    at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/validateNow()
    at mx.core::UIComponent/commitCurrentState()
    at mx.core::UIComponent/setCurrentState()
    at mx.core::UIComponent/set currentState()
    at spark.components.supportClasses::SkinnableComponent/commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/validateProperties()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/validateNow()
    at mx.core::UIComponent/commitCurrentState()
    at mx.core::UIComponent/setCurrentState()
    at mx.core::UIComponent/set currentState()
    at spark.components.supportClasses::SkinnableComponent/commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/validateProperties()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Thanks

--Rory
Tags (2)
0 Kudos
2 Replies
YannCabon
Esri Contributor
Hi Rory,

We are aware of this bug, which will be fixed in the 3.2.
In the meantime try to set the layer as not visible when it's not on the map and put it back to visible when the new map is loaded.

Yann
0 Kudos
MattSheehan
Deactivated User
Thanks Yann. Looking forward to 3.2 particularly for our mobile work.

--Rory
0 Kudos