wweifu / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

aop-proxy-factory example compiles fine but raises exception #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Downloaded the latest source from 
http://as3-commons.googlecode.com/svn/trunk (revision 1570)
2. Compiled example from 
http://as3-commons.googlecode.com/svn/trunk/as3-commons-aop/src/examples/aop-pro
xy-factory
3. Run using FlashDevelop with Flex 4.6.0 SDK

>What is the expected output? What do you see instead?

I would expect to get an output similar to the one described in 
http://www.herrodius.com/blog/382 but instead get the following exception:
TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode 
eines null-Objektverweises ist nicht möglich.
    at org.as3commons.bytecode.proxy.impl::ProxyFactory/buildProxyClass()[C:\Users\Maël\Documents\AOPTest\src\org\as3commons\bytecode\proxy\impl\ProxyFactory.as:406]
    at org.as3commons.bytecode.proxy.impl::ProxyFactory/generateProxyClasses()[C:\Users\Maël\Documents\AOPTest\src\org\as3commons\bytecode\proxy\impl\ProxyFactory.as:302]
    at org.as3commons.aop.factory.impl::AOPBatchProxyFactory/load()[C:\Users\Maël\Documents\AOPTest\src\org\as3commons\aop\factory\impl\AOPBatchProxyFactory.as:100]
    at org.as3commons.aop.factory.impl::AOPProxyFactory/load()[C:\Users\Maël\Documents\AOPTest\src\org\as3commons\aop\factory\impl\AOPProxyFactory.as:114]
    at Main/creationCompleteHandler()[C:\Users\Maël\Documents\AOPTest\src\Main.mxml:68]
    at Main/___Main_Application1_creationComplete()[C:\Users\Maël\Documents\AOPTest\src\Main.mxml:6]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
    at mx.core::UIComponent/set initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:842]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

>What version of the product are you using? On what operating system?
Windows 7 Business. For the rest, see above.

Original issue reported on code.google.com by goo...@mh-nexus.de on 13 Mar 2012 at 2:39

GoogleCodeExporter commented 8 years ago
Just to clarify, the German part says: " Der Zugriff auf eine Eigenschaft oder 
eine Methode eines null-Objektverweises ist nicht möglich." which means 
"Access to a property or a method of a null-objectreference is not possible".

As noted in the title, compilation works without warnings or errors and all is 
built from source, I didn't use any SWCs.

Original comment by goo...@mh-nexus.de on 13 Mar 2012 at 2:44

GoogleCodeExporter commented 8 years ago
Hi there,

thanks for bringing this issue to our attention, the problem has been fixed and 
the changes have been committed to the trunk.
Let us know if you find anything else and we'll be happy to help.

cheers,

Roland

Original comment by ihatelivelyids on 17 Mar 2012 at 2:44