Issue 143 in as3-commons: NPE when ByteCodeType.fromLoader is invoked in an empty Application

28 views
Skip to first unread message

as3-c...@googlecode.com

unread,
Oct 14, 2013, 1:12:07 PM10/14/13
to as3-commons...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 143 by ilo...@gmail.com: NPE when ByteCodeType.fromLoader is
invoked in an empty Application
http://code.google.com/p/as3-commons/issues/detail?id=143

What steps will reproduce the problem?
1. Create an empty Flex Application
2. Define applicationComplete Handler
3. In handler, execute ByteCodeType.fromLoader(this.loaderInfo)

What is the expected output? What do you see instead?
The expected would be ByteCodeType loading the classes successfully. I get
an error instead.

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
org.as3commons.reflect::JSONTypeProvider/getAccessorsForType()[C:\projects\as3-commons\as3-commons-reflect\src\main\actionscript\org\as3commons\reflect\JSONTypeProvider.as:71]
at org.as3commons.reflect::Type/get
accessors()[C:\projects\as3-commons\as3-commons-reflect\src\main\actionscript\org\as3commons\reflect\Type.as:478]
at
org.as3commons.bytecode.reflect::ReflectionDeserializer/readTraitsInfo()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:408]
at
org.as3commons.bytecode.reflect::ReflectionDeserializer/readTypes()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:621]
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
bytecode/application1_applicationCompleteHandler()[E:\workspaces\evo-llamadas-base\bytecode-test\src\bytecode.mxml:15]
at
bytecode/___bytecode_Application1_applicationComplete()[E:\workspaces\evo-llamadas-base\bytecode-test\src\bytecode.mxml:5]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at
mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2682]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:582]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.preloaders::SparkDownloadProgressBar/initCompleteHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\SparkDownloadProgressBar.as:1087]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.preloaders::Preloader/dispatchAppEndEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:380]
at
mx.preloaders::Preloader/appCreationCompleteHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:590]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()

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

Flex SDK: 4.5.1.A
as3commons-bytecode: 1.1.1
as3commons-lang: 0.3.7
as3commons-logging: 2.7
as3commons-reflect: 1.6.4


Attachments:
bytecode.mxml 820 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

as3-c...@googlecode.com

unread,
Nov 13, 2013, 7:07:41 AM11/13/13
to as3-commons...@googlegroups.com

Comment #1 on issue 143 by sagar.ro...@gmail.com: NPE when
ByteCodeType.fromLoader is invoked in an empty Application
http://code.google.com/p/as3-commons/issues/detail?id=143

Hi, have you got any workaround for this?
Reply all
Reply to author
Forward
0 new messages