flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin H. (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34357) FlexUnit4Training - ExternalDependencyToken->notifyResult() null pointer
Date Wed, 04 Jun 2014 13:53:01 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin H. updated FLEX-34357:
-------------------------------

    Description: 
Compile one of the examples working with ExternalDependencyToken you get a null pointer, ExternalDependencyToken
tries to call resolver.dependecnyResolved but resolver is null. Tried to Subcass ExternalDependencyToken
(FBExternalDependencyToken) overriding the methods add/remove resolver and notifyResult but
then the test never runs through. Here is the stack trace:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at org.flexunit.runner.external::ExternalDependencyToken/notifyResult()[/Users/justinmclean/Documents/flex-flexunit/FlexUnit4/src/org/flexunit/runner/external/ExternalDependencyToken.as:85]
	at FBExternalDependencyToken/notifyResult()[C:\data\FlexDevelopment\FlexUnit4Training_wt2\src\FBExternalDependencyToken.as:26]
	at helper::RadiiDataHelper/result()[C:\data\FlexDevelopment\FlexUnit4Training_wt2\tests\helper\RadiiDataHelper.as:24]
	at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as:247]
	at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as:215]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as:314]
	at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as:1006]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as:365]
	at mx.rpc::Responder/result()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/Responder.as:64]
	at mx.rpc::AsyncRequest/acknowledge()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as:92]
	at DirectHTTPMessageResponder/completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as:459]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flash.net::URLLoader/onComplete()

  was:
Compile one of the examples working with ExternalDependencyToken you get a null pointer, ExternalDependencyToken
tries to call resolver.dependecnyResolved but resolver is null. Tried to Subcass ExternalDependencyToken
(FBExternalDependencyToken) overriding the methods add/remove resolver and notifyResult but
then the test never runs through. Her is the stack trace:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at org.flexunit.runner.external::ExternalDependencyToken/notifyResult()[/Users/justinmclean/Documents/flex-flexunit/FlexUnit4/src/org/flexunit/runner/external/ExternalDependencyToken.as:85]
	at FBExternalDependencyToken/notifyResult()[C:\data\FlexDevelopment\FlexUnit4Training_wt2\src\FBExternalDependencyToken.as:26]
	at helper::RadiiDataHelper/result()[C:\data\FlexDevelopment\FlexUnit4Training_wt2\tests\helper\RadiiDataHelper.as:24]
	at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as:247]
	at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as:215]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as:314]
	at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as:1006]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as:365]
	at mx.rpc::Responder/result()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/Responder.as:64]
	at mx.rpc::AsyncRequest/acknowledge()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as:92]
	at DirectHTTPMessageResponder/completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as:459]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flash.net::URLLoader/onComplete()


> FlexUnit4Training - ExternalDependencyToken->notifyResult() null pointer
> ------------------------------------------------------------------------
>
>                 Key: FLEX-34357
>                 URL: https://issues.apache.org/jira/browse/FLEX-34357
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: FlexUnit 4.2
>         Environment: Flash Builder 4.7 on Windows
>            Reporter: Benjamin H.
>            Priority: Critical
>
> Compile one of the examples working with ExternalDependencyToken you get a null pointer,
ExternalDependencyToken tries to call resolver.dependecnyResolved but resolver is null. Tried
to Subcass ExternalDependencyToken (FBExternalDependencyToken) overriding the methods add/remove
resolver and notifyResult but then the test never runs through. Here is the stack trace:
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at org.flexunit.runner.external::ExternalDependencyToken/notifyResult()[/Users/justinmclean/Documents/flex-flexunit/FlexUnit4/src/org/flexunit/runner/external/ExternalDependencyToken.as:85]
> 	at FBExternalDependencyToken/notifyResult()[C:\data\FlexDevelopment\FlexUnit4Training_wt2\src\FBExternalDependencyToken.as:26]
> 	at helper::RadiiDataHelper/result()[C:\data\FlexDevelopment\FlexUnit4Training_wt2\tests\helper\RadiiDataHelper.as:24]
> 	at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as:247]
> 	at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as:215]
> 	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as:314]
> 	at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as:1006]
> 	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as:365]
> 	at mx.rpc::Responder/result()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/Responder.as:64]
> 	at mx.rpc::AsyncRequest/acknowledge()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as:92]
> 	at DirectHTTPMessageResponder/completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as:459]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at flash.net::URLLoader/onComplete()



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message