weird bug with flex service classes
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.
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
1 Posted by Nikos on 20 Oct, 2010 10:14 AM
Write your own, don't use service classes auto-generated by Flex
Support Staff 2 Posted by Shaun Smith on 01 Nov, 2010 10:45 PM
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).
Support Staff 3 Posted by creynders on 02 Nov, 2010 07:17 PM
Ok, thanks, good to know!
creynders closed this discussion on 02 Nov, 2010 07:17 PM.
creynders re-opened this discussion on 15 Nov, 2010 10:38 AM
creynders closed this discussion on 15 Nov, 2010 10:39 AM.