I had similar error with SDK 4.5.1, even with the right order in my
rsl.

To fix that I had to disable Apparat. In flex-mojo config put the
following:

 <!-- optimization with apparat -->
<debug>false</debug>
<optimizeRsl>false</optimizeRsl>
<reduce>false</reduce>
<reduceLzma>false</reduceLzma>f
<reduceMatryoshkaType>none</reduceMatryoshkaType>
<reduceMergeABC>false</reduceMergeABC>
<reduceMergeCF>false</reduceMergeCF>
<reduceQuality>1.0</reduceQuality>
<reduceSortCPool>false</reduceSortCPool>

It resulted in larger rsl but they worked at least.

On Nov 2, 4:51 pm, Nigel Magnay <[email protected]> wrote:
> 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=X3oDMTJzYzRraWRkBF...>|
> >  Start
> > a New 
> > Topic<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmZ2M1YXA1BF...>
> > Messages in this 
> > topic<http://groups.yahoo.com/group/flexcoders/message/164183;_ylc=X3oDMTM5...>(
> > 2)
> >  Recent Activity:
>
> >    - New 
> > Members<http://groups.yahoo.com/group/flexcoders/members;_ylc=X3oDMTJnN2xnOWZ...>
> >    4
>
> >  Visit Your 
> > Group<http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJmNThpOXZzBF9TAzk...>
> >  --
> > 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-b4...
> > 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....>
> >    [image: Yahoo! 
> > Groups]<http://groups.yahoo.com/;_ylc=X3oDMTJlMmVrYWJxBF9TAzk3NDc2NTkwBGdycEl...>
> > 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/

Reply via email to