1 Reply Latest reply on Feb 24, 2011 11:24 AM by Michael Thornburgh

    error cannot access property or method

    lsharma1064

      i downloaded the sample code and as per the instruction i download flex builder, flash debugger. then i downloaded the sqlite3. in that i created registrations.db file and as per changed the db variable in .cgi file, also added the developer key and webservice url. but i am getting the following error.... i debugged the code and found the below information:- (i am new to flex and usually a dotnet developer)

      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 370,463 bytes after decompression
      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 2,311,734 bytes after decompression
      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 609,929 bytes after decompression
      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 650,777 bytes after decompression
      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 441,362 bytes after decompression
      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 1,432,382 bytes after decompression
      [SWF] C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\bin-debug\VideoPhoneLabs.swf - 323,354 bytes after decompression
      ScriptDebug: Player: WIN 10,0,45,2

       

      ScriptDebug: Connecting to rtmfp://p2p.rtmfp.net

       

      ScriptDebug: NetConnection event: NetConnection.Connect.Success

       

      ScriptDebug: Connected, my ID: 78e69f93deef48850a2aa296362b0aebc78caa83423233226d2cf7a97e886b91

       

      ScriptDebug: ID event: idManagerError

       

      ScriptDebug: Error description: HTTP error: (mx.messaging.messages::ErrorMessage)#0
        body = ""
        clientId = "DirectHTTPChannel0"
        correlationId = "59298888-7821-989F-5510-567C0D3F827A"
        destination = ""
        extendedData = (null)
        faultCode = "Server.Error.Request"
        faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/6620faa05e8785b2ea3616a2-7ffe01f89c02/?username=er%2Edhaliwal%40jap pix%2Ecom&identity=78e69f93deef48850a2aa296362b0aebc78caa83423233226d2cf7a97e886b91"]. URL: rtmfp://p2p.rtmfp.net/6620faa05e8785b2ea3616a2-7ffe01f89c02/"
        faultString = "HTTP request error"
        headers = (Object)#1
          DSStatusCode = 0
        messageId = "84DFF286-7D49-645C-A640-567C0D5EFFC5"
        rootCause = (flash.events::IOErrorEvent)#2
          bubbles = false
          cancelable = false
          currentTarget = (flash.net::URLLoader)#3
            bytesLoaded = 0
            bytesTotal = 0
            data = ""
            dataFormat = "text"
          eventPhase = 2
          target = (flash.net::URLLoader)#3
          text = "Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/6620faa05e8785b2ea3616a2-7ffe01f89c02/?username=er%2Edhaliwal%40jap pix%2Ecom&identity=78e69f93deef48850a2aa296362b0aebc78caa83423233226d2cf7a97e886b91"
          type = "ioError"
        timestamp = 0
        timeToLive = 0

       

      ScriptDebug: Disconnecting.

       

      ScriptDebug: Hanging up call

       

      ScriptDebug: NetConnection event: NetConnection.Connect.Closed

       

      ScriptDebug: ID event: idManagerError

       

      ScriptDebug: Error description: HTTP error: (mx.messaging.messages::ErrorMessage)#0
        body = ""
        clientId = "DirectHTTPChannel0"
        correlationId = "40340E78-D159-8BDB-D49A-567C0DAC1AEB"
        destination = ""
        extendedData = (null)
        faultCode = "Server.Error.Request"
        faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/6620faa05e8785b2ea3616a2-7ffe01f89c02/?username=er%2Edhaliwal%40jap pix%2Ecom&identity=0"]. URL: rtmfp://p2p.rtmfp.net/6620faa05e8785b2ea3616a2-7ffe01f89c02/"
        faultString = "HTTP request error"
        headers = (Object)#1
          DSStatusCode = 0
        messageId = "ABF79244-3980-DB42-7C24-567C0DDBCFA6"
        rootCause = (flash.events::IOErrorEvent)#2
          bubbles = false
          cancelable = false
          currentTarget = (flash.net::URLLoader)#3
            bytesLoaded = 0
            bytesTotal = 0
            data = ""
            dataFormat = "text"
          eventPhase = 2
          target = (flash.net::URLLoader)#3
          text = "Error #2032: Stream Error. URL: rtmfp://p2p.rtmfp.net/6620faa05e8785b2ea3616a2-7ffe01f89c02/?username=er%2Edhaliwal%40jap pix%2Ecom&identity=0"
          type = "ioError"
        timestamp = 0
        timeToLive = 0

       

      ScriptDebug: Disconnecting.

       

      ScriptDebug: Hanging up call

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at VideoPhoneLabs/onDisconnect()[C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\src\VideoPhoneLabs.mxml:536]
          at VideoPhoneLabs/idManagerEvent()[C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\src\VideoPhoneLabs.mxml:482]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at HttpIdManager/httpFault()[C:\Documents and Settings\lakshya\Adobe Flash Builder 4\VideoPhoneLabs\src\HttpIdManager.as:165]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.x\frameworks\proje cts\rpc\src\mx\rpc\http\HTTPService.as:989]
          at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.x\frameworks\projects\ rpc\src\mx\rpc\AbstractInvoker.as:350]
          at mx.rpc::Responder/fault()[E:\dev\4.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
          at mx.rpc::AsyncRequest/fault()[E:\dev\4.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.a s:113]
          at DirectHTTPMessageResponder/errorHandler()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messa ging\channels\DirectHTTPChannel.as:405]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at flash.net::URLLoader/onComplete()