Hi Nigel I have encountered errors like this several times. Unfortunately they are extremely bitchy to sort out as there is no place where you can really place a breakpoint. Are the errors occuring in Server-To-Client communication or are they occuring within the application? If it's Server-To-Client you can usually set a breakpoint in the readExternal and writeExternal methods (If supported)
If it's not Server-To-Client related, one thing I would check: If you have several Modules loaded hierarchially I can happen that a child Module knows classes the loader doesn't know. So make sure that all SWF modules actually know the class you are passing around. Chris 2011/11/2 Nigel Magnay <[email protected]> > It's just passing classes that are constructed in the normal way; - > > mycorp-flex-xreader rsl defines > > public class XReader { > ... > public function XReader(reflectionProvider:ReflectionProvider) {} > where > public interface ReflectionProvider { ... } > > public class ASReflectionProvider implements ReflectionProvider { .. } > mycorp-flex-components defines > > public class ModelXReader extends XReader { > ... > public function ModelXReader() { > .. > super( new ModelReflectionProvider() ); > } > > public class ModelReflectionProvider extends ASReflectionProvider { > ... > } > > mycorp-flex-xreader and mycorp-flex-components are RSLs in mycorp-flex-app; > mycorp-flex-xreader is an external in mycorp-flex-components. > > It's bombing out here trying to call the super() constructor, which I can > only think means that there are >1 definitions for ReflectionProvider, > which I don't understand.. > > > > > > > On Wed, Nov 2, 2011 at 8:06 PM, Alex Harui <[email protected]> wrote: > >> ** >> >> >> What is the code doing? If it is trying to find a class definition by >> name and can’t that might be the issue. >> >> >> >> On 11/2/11 12:21 PM, "Nigel Magnay" <[email protected]> wrote: >> >> >> >> >> >> >> >> I've just been updating our build to use the latest Flexmojos 4.1-beta, >> and to use RSL versions of the 4.5.1 flex framework. To do this, I've >> included all the dependencies in a manual, correct order, so that the RSL >> load order is correct. I've even manually added entries to get the correct >> <application-domain-target>default</application-domain-target> entries for >> the runtime-shared-library-path elements, and validated against the flash >> builder generated -config xml. >> >> It works. Mostly. >> >> I have one rather frustrating error - a TypeError. I believe I understand >> what it is telling me, but >> I can find no way of getting anything sensible out of flash to help me >> figure out why the domains >> are screwed up. The link reports and config outputs all look OK to me. >> >> The error is: >> >> TypeError: Error #1034: Type Coercion failed: cannot convert to >> xreader.converters.reflection.ReflectionProvider. >> at xreader::xreader() >> at >> xreader::Modelxreader()[/Users/magnayn/dev/mycorp/mycorp-workspace/mycorp/flex-modules/mycorp-flex-components/src/main/flex/xreader/Modelxreader.as:33] >> at >> Function/<anonymous>()[/Users/magnayn/dev/mycorp/mycorp-workspace/mycorp/flex-modules/mycorp-flex-components/src/main/flex/managers/SystemManager.as:65] >> at >> Function/<anonymous>()[/Users/magnayn/dev/mycorp/mycorp-workspace/mycorp/flex-modules/mycorp-flex-components/src/main/flex/rpc/AdminService.as:96] >> at Function/http://adobe.com/AS3/2006/builtin::call() >> at >> Function/<anonymous>()[/Users/magnayn/dev/mycorp/mycorp-workspace/mycorp/flex-modules/mycorp-flex-components/src/main/flex/rpc/BaseWebService.as:82] >> at >> net.mycorp.mycorp.util::Timing/time()[/Users/magnayn/dev/mycorp/mycorp-workspace/mycorp/flex-modules/mycorp-flex-components/src/main/flex/net/mycorp/mycorp/util/Timing.as:61] >> at >> rpc::BaseWebService/resultHandler()[/Users/magnayn/dev/mycorp/mycorp-workspace/mycorp/flex-modules/mycorp-flex-components/src/main/flex/rpc/BaseWebService.as:80] >> at flash.events::EventDispatcher/dispatchEventFunction() >> at flash.events::EventDispatcher/dispatchEvent() >> at mx.rpc::AbstractOperation/ >> http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:249] >> at mx.rpc::AbstractInvoker/ >> http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:318] >> at >> mx.rpc::Responder/result()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:56] >> at >> mx.rpc::AsyncRequest/acknowledge()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84] >> at >> DirectHTTPMessageResponder/completeHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:451] >> at flash.events::EventDispatcher/dispatchEventFunction() >> at flash.events::EventDispatcher/dispatchEvent() >> at flash.net::URLLoader/onComplete() >> >> (suspicious that there is no class mentioned in the 'cannot convert to' >> part. >> >> The flex-app includes mycorp-flex-components and mycorp-flex-xreader as >> RSLs. mycorp-flex-components references mycorp-flex-xreaderas an >> 'external', and at the point of the error is passing an object which is a >> subclass of one defined within mycorp-flex-xreader (ReflectionProvider), >> but the class there doesn't think the type is correct. I can only assume >> that for some reason there's something wierd going on with domains, but I >> cannot figure out what. >> >> Is there any tooling that could help to figure this out? >> >> >> >> >> >> -- >> Alex Harui >> Flex SDK Team >> Adobe System, Inc. >> http://blogs.adobe.com/aharui >> >> __._,_.___ >> Reply to >> sender<[email protected]?subject=Re%3A%20%5Bflexcoders%5D%20Diagnosing%20a%20TypeError%20%231034%20with%20RSLs>| >> Reply >> to >> group<[email protected]?subject=Re%3A%20%5Bflexcoders%5D%20Diagnosing%20a%20TypeError%20%231034%20with%20RSLs>| >> Reply >> via web >> post<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJzYzRraWRkBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxNjQxODUEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMzIwMjY0Mzgx?act=reply&messageNum=164185>| >> Start >> a New >> Topic<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmZ2M1YXA1BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzEzMjAyNjQzODE-> >> Messages in this >> topic<http://groups.yahoo.com/group/flexcoders/message/164183;_ylc=X3oDMTM5NzB1amQ5BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxNjQxODUEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMzIwMjY0MzgxBHRwY0lkAzE2NDE4Mw-->( >> 2) >> Recent Activity: >> >> - New >> Members<http://groups.yahoo.com/group/flexcoders/members;_ylc=X3oDMTJnN2xnOWZlBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzIwMjY0Mzgx?o=6> >> 4 >> >> Visit Your >> Group<http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJmNThpOXZzBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzMjAyNjQzODE-> >> -- >> Flexcoders Mailing List >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >> Alternative FAQ location: >> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 >> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com >> MARKETPLACE >> >> Stay on top of your group activity without leaving the page you're on - >> Get the Yahoo! Toolbar >> now.<http://global.ard.yahoo.com/SIG=15os44323/M=493064.14543979.14562481.13298430/D=groups/S=1705007207:MKP1/Y=YAHOO/EXP=1320271582/L=228d68a8-058e-11e1-be70-177e89eb3d89/B=7b8PHWKJiT4-/J=1320264382128387/K=jIRvIQyEq7CgG7otO0Wq2g/A=6060255/R=0/SIG=1194m4keh/*http://us.toolbar.yahoo.com/?.cpdl=grpj> >> [image: Yahoo! >> Groups]<http://groups.yahoo.com/;_ylc=X3oDMTJlMmVrYWJxBF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTMyMDI2NDM4Mg--> >> Switch to: >> Text-Only<[email protected]?subject=Change+Delivery+Format:+Traditional>, >> Daily >> Digest<[email protected]?subject=Email+Delivery:+Digest>• >> Unsubscribe <[email protected]?subject=Unsubscribe>• >> Terms >> of Use <http://docs.yahoo.com/info/terms/> >> . >> >> __,_._,___ >> > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
