weird bug with flex service classes

creynders's Avatar

creynders

15 Oct, 2010 12:06 PM

I'm encountering a very weird bug with some service classes auto-generated by Flex from a WSDL service.
If I use this

injector.mapSingletonOf( IWines, Wines );

I get a RTE

[MessagingError] at mx.messaging.config::ServerConfig$/internalGetChannelSet()

But if I change that line to

injector.mapValue( IWines, new Wines() );

it works, while (apart from deferred instantiation) there should not be a real difference between those two lines, correct?
I suppose this has more to with SwiftSuspenders than Robotlegs though.

  1. 1 Posted by Nikos on 20 Oct, 2010 10:14 AM

    Nikos 's Avatar

    Write your own, don't use service classes auto-generated by Flex

  2. Support Staff 2 Posted by Shaun Smith on 01 Nov, 2010 10:45 PM

    Shaun Smith's Avatar

    Hi Camille,

    I believe that this is an issue that crops up when trying to perform reflection on the constructor arguments of flash.utils.Proxy classes. It's a SwiftSuspenders/describeType issue, and the solution/workaround is pretty much what you outlined in your post: use mapValue() for these situations (which, thankfully, are pretty rare).

  3. Support Staff 3 Posted by creynders on 02 Nov, 2010 07:17 PM

    creynders's Avatar

    Ok, thanks, good to know!

  4. creynders closed this discussion on 02 Nov, 2010 07:17 PM.

  5. creynders re-opened this discussion on 15 Nov, 2010 10:38 AM

  6. creynders closed this discussion on 15 Nov, 2010 10:39 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac