I'm building a viewer add-on for a third party application using Flex API 2.5 (I can use only Flex 4.0). My viewer must execute a RoutingTask or a ClosestFacilityTask. While I'm in design mode everything works fine but the third party application rebuilds the swf for execution. After rebuilding I receive an error message but only when I use stop points with a spatial reference of 4326 or 102100. Other projections do not throw the error and appear to work fine. Most likely during rebuilding process some classes are losing their reference. The function mentioned in the error is called normalizeCentralMeridian2(). My hope is to import these classes manually and to avoid the error. It can be false hope. At this moment my question is what I need to reference to avoid the error in the function?
TypeError: Error #1034: Type Coercion failed: cannot convert Object@27a47af1 to com.esri.ags.geometry.Geometry. at com.esri.ags.utils::GeometryUtil$/http://www.esri.com/2008/ags/internal::normalizeCentralMeridian2() at com.esri.ags.utils::GeometryUtil$/normalizeCentralMeridian() at com.esri.ags.tasks::RouteTask/solve() at com.businessobjects.xcelsius.sdk.samples::testRouting/runTask() at com.businessobjects.xcelsius.sdk.samples::testRouting/commitProperties() at mx.core::UIComponent/validateProperties()