kross77 / as3-commons

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

ReferenceError: Error #1065: Variable org.as3commons.reflect:Method::_parameters is not defined. #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Execute the following two lines (taken from the proxy guide, but replaced 
FlexGlobals since I am on 3.6)

      var _applicationDomain : ApplicationDomain = mx.core.Application.application.loaderInfo.applicationDomain;
      ByteCodeType.fromLoader(mx.core.Application.application.loaderInfo);

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

I would expect the two lines to silently succeed. Instead:

ReferenceError: Error #1065: Variable 
org.as3commons.reflect:Method::_parameters is not defined.
    at org.as3commons.bytecode.reflect::ByteCodeMethod/get parameters()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ByteCodeMethod.as:115]
    at org.as3commons.bytecode.reflect::ReflectionDeserializer/readTypes()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:618]
    at org.as3commons.bytecode.reflect::ReflectionDeserializer/readABCTag()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:96]
    at org.as3commons.bytecode.reflect::ReflectionDeserializer/readTags()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:715]
    at org.as3commons.bytecode.reflect::ReflectionDeserializer/read()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:84]
    at org.as3commons.bytecode.reflect::ByteCodeTypeProvider/fromByteArray()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ByteCodeTypeProvider.as:131]
    at org.as3commons.bytecode.reflect::ByteCodeTypeProvider/fromLoader()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ByteCodeTypeProvider.as:119]
    at org.as3commons.bytecode.reflect::ByteCodeType$/fromLoader()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ByteCodeType.as:136]
    at InterceptorTest/populateByteCodeCache()[/Users/sean/Documents/eclipse/DictionaryOIT/src/InterceptorTest.as:18]
    at DictionaryOIT/interceptorTest()[/Users/sean/Documents/eclipse/DictionaryOIT/src/DictionaryOIT.mxml:63]
    at DictionaryOIT/appComplete()[/Users/sean/Documents/eclipse/DictionaryOIT/src/DictionaryOIT.mxml:58]
    at DictionaryOIT/___DictionaryOIT_Application1_applicationComplete()[/Users/sean/Documents/eclipse/DictionaryOIT/src/DictionaryOIT.mxml:3]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9590]
    at mx.managers::SystemManager/preloader_preloaderDoneHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:3147]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/displayClassCompleteHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\preloaders\Preloader.as:435]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::DownloadProgressBar/timerHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1451]
    at mx.preloaders::DownloadProgressBar/initCompleteHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1503]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/dispatchAppEndEvent()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\preloaders\Preloader.as:291]
    at mx.preloaders::Preloader/appCreationCompleteHandler()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\preloaders\Preloader.as:443]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9590]
    at mx.core::UIComponent/set initialized()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1175]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8892]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8832]

What version of the product are you using? On what operating system?

Flex 3.6 on OSX
as3commons-lang-0.3.5.swc
as3commons-logging-2.7.swc
as3commons-reflect-1.5.1-SNAPSHOT.swc

Happens with both as3commons-bytecode-1.1.1-SNAPSHOT.swc and 
as3commons-bytecode-1.1.0.swc.

Original issue reported on code.google.com by sean....@gmail.com on 29 Mar 2012 at 7:16

GoogleCodeExporter commented 9 years ago
this was due to the usage of the wrong as3commons-reflect version. Using 
version 1.6 fixes this.

Original comment by ihatelivelyids on 31 Mar 2012 at 9:48