Select to view content in your preferred language

Compiled FV 3.1 needs reload to appear properly

780
3
Jump to solution
02-26-2013 04:35 AM
RyanCoghlin
Deactivated User
When loading my flex viewer 3.1 compiled version, it will sometimes stop loading halfway through and become unresponsive (map will load, but not all header elements/widgets in widget container appear). If I reload the page, it comes up as expected and functions normally.

When the problem occurs, content debugger reveals this:
TypeError: Error #1009: Cannot access a property or method of a null object reference.  at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem/createChildren()  at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem()  at com.esri.viewer.components.toc::TOC/registerMapLayer()  at MethodInfo-389()  at com.esri.viewer.components.toc.utils::MapUtil$/forEachMapLayer()  at com.esri.viewer.components.toc::TOC/registerAllMapLayers()  at com.esri.viewer.components.toc::TOC/commitProperties()  at mx.core::UIComponent/validateProperties()  at mx.managers::LayoutManager/validateProperties()  at mx.managers::LayoutManager/doPhasedInstantiation()  at mx.managers::LayoutManager/doPhasedInstantiationCallback()


Has anyone experienced this problem? Know of a solution? The fact that everything works fine after reloading confuses me. Thanks for the help!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ryan,

   This is a known bug in the viewer and should be addresses in Version 3.2 projected for release this March.

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Ryan,

   This is a known bug in the viewer and should be addresses in Version 3.2 projected for release this March.
0 Kudos
sreeharikottoormadam
Occasional Contributor
Hi Robert,

Is there any solution for this? I am using the flex viewer 3.1 source to create the build and the problem occures only when the application is compiled and deployed.



Thanks for your help,
Sreehari
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sreehari,

   The fix for this is in Beta but you can find it here because you are compiling the source code:

https://github.com/Esri/arcgis-viewer-flex/issues/28
0 Kudos