Select to view content in your preferred language

Flex runtime error with Editor

722
2
11-29-2010 07:01 AM
ADEade
by
New Contributor

Hi all,

Since this morning i'm blocked cause a runtime Flex error.
I try to create an Editor in a widget, with the following code :

<fx:Declarations>  
  <esri:GeometryService id="myGeometryService"
         url="xyzxyzx"/>
 </fx:Declarations>
 <esri:FeatureLayer url="xyz" id="featureLayer"/>
 <esri:Editor id="myEditor"
     width="100%" height="200"
     geometryService="{myGeometryService}"
     map="{map}"
     featureLayers="{[featureLayer]}"/>
 



I can create polygons. But when I do a double click to terminate the polygon, the following error occurs in the Flex application :
[INDENT]TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.ags.components::Editor/drawTool_drawEndHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.esri.ags.tools::DrawTool/removeLayerEndDraw() at com.esri.ags.tools::DrawTool/map_doubleClickHandler()[/INDENT]


And next, all clicks in the map give errors like :
[INDENT]TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.ags.components::Editor/map_mouseUpHandler()[/INDENT]

It's very hard to debug because the error occurs in the Editor component...
Do you have idea ? What can I try to investigate this problem ?

Thanks in advance,
Antoine

Tags (2)
0 Kudos
2 Replies
ADEade
by
New Contributor
Hi,

Can I know what is the property/method at the line 1776 in the class com.esri.ags.components.Editor ?I use the release 2.1.

Thanks,
Antoine
0 Kudos
DavidTreat
Emerging Contributor
Antoine,

Is your Feature Service based on data hosted in an ArcSDE geodatabase?  That is a prerequisite for the edit function.

Dave
0 Kudos