AmbiguousClassNameError: Class ... exists in several application domains

15 views
Skip to first unread message

Александр Шелюгов

unread,
Mar 27, 2015, 9:02:40 AM3/27/15
to gran...@googlegroups.com
I work in application, that loads many of swc/swf. Recently, I enabled change set mechanism. When I try save an entity once/multiple times, I get this error.

Here is the source code and line, that throws an error.
https://github.com/graniteds/graniteds/blob/master/granite-client-flex-advanced/src/main/flex/org/granite/reflect/Type.as#L182

Please, could you suggest, how to fix this issue? Did anyone face the same problem?

Александр Шелюгов

unread,
Mar 27, 2015, 10:04:15 AM3/27/15
to gran...@googlegroups.com
Judging by official documentation, see second NOTE: http://www.granitedataservices.com/public/docs/3.1.0/docs/reference/flex/graniteds-refguide-flex.html#reflection.appdomain
The problem is because an entity's class is "registered" or something in multiple ApplicationDomain's (analogue of java ClassLoaders). And when we're trying to load an instance of this class Granite throws exception at line 182 from the source code above. For now, I don't know how to make Granite and multiple loaded swf/swc friends. Since then, I have to go away of ChangeSet mechanism for a while.

If anyone have a solution, please, share it.

Reply all
Reply to author
Forward
0 new messages