Is the library that fails to load an interface library? There are restrictions on classes that can be in interface libraries. See the section titled “Limitations on classes used in a service interface library” on this help page: http://help.adobe.com/en_US/enterpriseplatform/10.0/AEPDeveloperGuide/WSabb771403789c7a3-3 1e63d5312fb7375fac-8000.html#WSabb771403789c7a3-37c95b1412fb7245fd9-8000 Service libraries can use Flex classes that are specific to a flex version, but cannot render any UI elements.
1 person found this helpful
I have found what happened.
I created a library and created a data model within it. I created some entities within the data model. Some of those entities had collections as properties. I created the ActionScript code for the model and the collections were ArrayCollections. I moved the interfaces of the created code to a separate library.
The interfaces need to be changed from using ArrayCollection to IList. I knew enough about that to change it for the service I was trying to bring into my application. I missed another interface that had ArrayCollections as properties and that caused the error.
After cleaning up all of the ArrayCollection references from the interface library my service loaded.
The Hello Gravity video tutorial has a very good explanation on why specific implementations of Flex classes are not used in service interfaces: http://blogs.adobe.com/gravity/2011/09/09/hellogravity-sample-application/