Bug in 1.0.2.swc (could also be in 1.0.1)
Hello all.
I've just started a new project and download the latest and greatest version of RL - 1.0.2.
Things were going swimmingly till i tried to use the commandMap. I was getting all kinds of crazy runtime errors. Now, if i use the 1.0.0 swc, life is good. 1.0.2, run-time errors.
This is because i'm using it via the Flash IDE (cs4 osx) with the externally supplied XML file. 1.0.0 works fine for this - my app compiles and runs great. If i replace the 1.0.0.swc with the 1.0.2.swc, error city.
This is with me having a Command which has nothing but a trace statement in its execute - no dependancies or [inject] tags in it at all. It is mapped like so:
commandMap.mapEvent(ContextEvent.STARTUP_COMPLETE, TestCommand);
Here is a Cut-n-Paste of the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.swiftsuspenders::Injector/createInjectionPointsFromConfigXML()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/Injector.as:279]
at org.swiftsuspenders::Injector/getInjectionPoints()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/Injector.as:188]
at org.swiftsuspenders::Injector/addParentInjectionPoints()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/Injector.as:291]
at org.swiftsuspenders::Injector/getInjectionPoints()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/Injector.as:189]
at org.swiftsuspenders::Injector/instantiate()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/Injector.as:130]
at org.robotlegs.base::CommandMap/routeEventToCommand()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:155]
at <anonymous>()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:104]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/ContextBase.as:120]
at org.robotlegs.mvcs::Context/startup()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:91]
at com.josyule.utilities.robotxml::RobotXMLContext/startup()[/Users/jos/Documents/Projects/Personal/RobotXML/src/com/josyule/utilities/robotxml/RobotXMLContext.as:87]
at org.robotlegs.mvcs::Context/checkAutoStartup()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:213]
at org.robotlegs.mvcs::Context()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:77]
at com.josyule.utilities.robotxml::RobotXMLContext()[/Users/jos/Documents/Projects/Personal/RobotXML/src/com/josyule/utilities/robotxml/RobotXMLContext.as:42]
at RobotXML()[/Users/jos/Documents/Projects/Personal/RobotXML/src/RobotXML.as:19]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at global/runtime::ADLEntry()
I don't even know where to start to try to fix this one... I also don't have a copy of the 1.0.1.swc to see if the error is in that one too. If anyone has a copy of that swc, i can try it out and see if the error crept in there...
Thanks!
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
Support Staff 1 Posted by Till Schneidere... on 18 Jan, 2010 04:13 PM
Hey Jos,
thanks for the bug report - and apologies for the regression, which
I've probably caused in SwiftSuspenders, from the look of things.
I'll take a look and see if I can reproduce the problem without
further info. Will let you know once I've fixed or can't reproduce.
cheers,
till
Support Staff 2 Posted by Till Schneidere... on 18 Jan, 2010 08:12 PM
Ok, this is rather embarrassing: In fixing a previous problem I added a wrong mapping to the integrated XML configuration. This is fixed in the attached SWC and will be deployed to the official github repository shortly.
Till Schneidereit closed this discussion on 18 Jan, 2010 08:12 PM.
Jos Yule re-opened this discussion on 18 Jan, 2010 08:42 PM
3 Posted by Jos Yule on 18 Jan, 2010 08:42 PM
Excellent - thanks! Looking forward to a 1.0.3 release ;)
j
Support Staff 4 Posted by Till Schneidere... on 18 Jan, 2010 08:47 PM
You can use the attached SWC - it should be byte-for-byte identical to what's going to be released on github
Till Schneidereit closed this discussion on 18 Jan, 2010 08:47 PM.
Shaun Smith re-opened this discussion on 19 Jan, 2010 01:46 PM
Support Staff 5 Posted by Shaun Smith on 19 Jan, 2010 01:46 PM
Howdy folks, v1.0.3 is live. Yos, could you check it out to ensure it's functioning correctly? Many thanks,
6 Posted by Jos Yule on 20 Jan, 2010 03:35 PM
Yep, that looks gold, thanks!
j
Shaun Smith closed this discussion on 20 Jan, 2010 03:39 PM.
Till Schneidereit re-opened this discussion on 20 Jan, 2010 03:39 PM
Support Staff 7 Posted by Till Schneidere... on 20 Jan, 2010 03:39 PM
Thanks for verifying the fix!
Stray closed this discussion on 13 Feb, 2011 07:05 PM.