Announcement Announcement Module
Collapse
No announcement yet.
Exception in TraderDesktop testdrive example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception in TraderDesktop testdrive example

    Hi,

    I have imported 1.0 testdrive code into FlexBuilder3 and trying to run on Tomcat6 which came up with testdrive M2
    (on Christophe Coenraets' site).
    I did create another app context (feedstarter1 and traderdesktop1), so it should not interfere with existing M2 ones.
    Have not changed anything in the code or testdrive config.

    It compiles and shows on the page fine, but as soon as I start a Market Feed, getting exception:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at traderdesktop/messageHandler()[C:\Documents and Settings\Oleg\workspace\TraderDesktop\src\traderde sktop.mxml:95]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::AbstractConsumer/http://www.adobe.com/2006/flex/mx/internal::messageHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\ messaging\AbstractConsumer.as:727]
    at mx.messaging::ConsumerMessageDispatcher/messageHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\ messaging\ConsumerMessageDispatcher.as:251]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::ChannelSet/messageHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\ messaging\ChannelSet.as:1363]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at PollCommandMessageResponder/resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\ messaging\channels\PollingChannel.as:746]
    at mx.messaging::MessageResponder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\ messaging\MessageResponder.as:199]

    line 95 of
    94: var changedStock:Stock = event.message.body as Stock;
    95: var stock:Stock = stockMap[changedStock.symbol];

    What am I missing ?

    Please help !

    TIA,
    Oleg.
Working...
X