Error E0011E: Invalid feature layer with ArcGIS API 3.0 (final) for Flex

4142
18
12-07-2012 05:17 AM
SarahBurgin
New Contributor
I'm experiencing this runtime problem (Error E0011E: Invalid feature layer) at startup for every FeatureLayer after switching the agslib-3.0pre-2012-03-15.swc for agslib-3.0-2012-06-06.swc (the swc change is the only difference; everything else remains the same).

Can anyone suggest any obvious causes or resolutions to this issue please?
Tags (2)
0 Kudos
18 Replies
RobertScheitlin__GISP
MVP Emeritus
Sarah,

   Did you run the Clean... Command from the Project menu in Flash Builder?
0 Kudos
SarahBurgin
New Contributor
Did you run the Clean... Command from the Project menu in Flash Builder?


Thanks for the suggestion. I don't normally need to run Clean but have just tried that now; unfortunately the problem is still happening afterwards. Here's the stack trace:

Error: E0011E: Invalid feature layer:
 at com.esri.ags.layers::FeatureLayer/initLayer()
 at Function/com.esri.ags.layers:FeatureLayer/private:loadDetails/com.esri.ags.layers:myResultFunction()
 at mx.rpc::AsyncResponder/result()
 at com.esri.ags.tasks::DetailsTask/handleDetails()
 at Function/http://adobe.com/AS3/2006/builtin::call()
 at com.esri.ags.tasks::BaseTask/handleResultEvent()
 at mx.rpc::AsyncResponder/result()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()
 at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
 at mx.rpc::Responder/result()
 at mx.rpc::AsyncRequest/acknowledge()
 at DirectHTTPMessageResponder/completeHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sarah,

   Have you insured that you do not have both swcs in the libs folder or have an older swc referenced by your project?
0 Kudos
SarahBurgin
New Contributor
Yes, I can confirm that. The exception doesn't occur if the 2.x or 3.0pre-release swc files are used.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sarah,

   I have been using AGS Flex 3.0 final lib extensively since it came out and have not had this error...

How are you using FeatureLayer in your code?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sarah,

  Are you using the Adobe 4.6 SDK? This was a requirement change from pre release that could use 4.5 SDK.

Documentation:

http://resources.arcgis.com/en/help/flex-api/concepts/017p/017p0000000m000000.htm

Adobe Flex SDK versions
The minmum supported software development kit (SDK) version is Adobe Flex SDK 4.6.    For detailed Flex framework system requirements, read the current Flex SDK system requirements by Adobe.


0 Kudos
SarahBurgin
New Contributor
Thanks again for the replies Robert. Do you know if the REST protocol has changed or become more strict for ArcGIS API 3.0 (final)?

How are you using FeatureLayer in your code?


Some of the layers are declared statically using MXML whilst in other applications we create them dynamically from ActionScript; both suffer from the same issue with ArcGIS API 3.0 (final). Our layers have mode set to onDemand, useAMF is false and we have custom event handlers for graphicAdd, updateStart and updateEnd.

Are you using the Adobe 4.6 SDK?


Yes, the build environment is Flash Builder 4.6 with the Adobe Flex 4.6.0 SDK. I've also briefly tried the more recent Apache Flex 4.8.0 but had no luck getting it to build successfully.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sarah,

   Can you start a brand new project and test one of simple FeatureLayer samples?

http://resources.arcgis.com/en/help/flex-api/samples/0000/0000000q36m3000000.htm
0 Kudos
SarahBurgin
New Contributor
Sadly that's not an option as our development environment is an offline system, therefore arcgisonline would be unreachable.

Do you know if there's a way to find out what Error E0011E actually means, please?
0 Kudos