4 Replies Latest reply on Oct 13, 2008 2:25 PM by ntsiii

    Error #1009

    FlexRooky
      I am just learning Flex and trying to connect it to Salesforce.com web services. I created a very basic sample app, but I cannot get it to do anything as I continually get this Error #1009 (see output below). I have no idea what I am doing wrong, I actually followed a video step-by-step and still can't get this to work.

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.utils::URLUtil$/getProtocol()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\utils\URLUti l.as:199]
      at com.salesforce::Connection/_invoke()[/home/jamesw/projects/mavericks/sdk/src/com/salesfor ce/Connection.as:1015]
      at com.salesforce::Connection/invoke()[/home/jamesw/projects/mavericks/sdk/src/com/salesforc e/Connection.as:972]
      at com.salesforce::Connection/query()[/home/jamesw/projects/mavericks/sdk/src/com/salesforce /Connection.as:467]
      at main/render()[/Users/MFidler_Work/Documents/Flex Builder 3/Flex Sample App/src/main.mxml:22]
      at main/___main_Application1_applicationComplete()[/Users/MFidler_Work/Documents/Flex Builder 3/Flex Sample App/src/main.mxml:2]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:9156]
      at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\3.1.0\frameworks\proje cts\framework\src\mx\managers\SystemManager.as:2265]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\3.1.0\frameworks\projects\f ramework\src\mx\preloaders\Preloader.as:434]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::DownloadProgressBar/timerHandler()[E:\dev\3.1.0\frameworks\projects\framew ork\src\mx\preloaders\DownloadProgressBar.as:1451]
      at mx.preloaders::DownloadProgressBar/initCompleteHandler()[E:\dev\3.1.0\frameworks\projects \framework\src\mx\preloaders\DownloadProgressBar.as:1503]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/dispatchAppEndEvent()[E:\dev\3.1.0\frameworks\projects\framework \src\mx\preloaders\Preloader.as:291]
      at mx.preloaders::Preloader/appCreationCompleteHandler()[E:\dev\3.1.0\frameworks\projects\fr amework\src\mx\preloaders\Preloader.as:442]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:9156]
      at mx.core::UIComponent/set initialized()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:701]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framework\sr c\mx\core\UIComponent.as:8565]
      at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framework\src \mx\core\UIComponent.as:8508]