Skip to main content
Participant
December 7, 2011
Question

TypeError: Error #1034:

  • December 7, 2011
  • 1 reply
  • 1509 views

Hi,

I am hoping someone can give me a little assistance debugging a Flash issue.  I paid an overseas developer to create a basketball plays application in FLEX.  Its been having intermittent issues connecting to the database that have recently gotten worse.  The connections work fine on this page:http://www.basketballplaybook.org/publicgames.aspx but intermittenly it will not connect to the database when a user chooses a play such as this:http://www.basketballplaybook.org/default.aspx?category=Man%20Baseline %20Out%20of%20Bounds%20Plays&play=Triangle

I have been trying to track down the issue as the developer blames it on the host.  I used a Firefox extension called Flash Tracer which gave me the following error.

TypeError: Error #1034: Type Coercion failed: cannot convert mx.rpc.events::FaultEvent@c2e0941 to org.basketballplaybook.GetLinkOnGameResultEvent.

          at flash.events::EventDispatcher/dispatchEventFunction()

          at flash.events::EventDispatcher/dispatchEvent()

          at org.basketballplaybook::BaseHoopCoachWS/faultResult()

          at mx.rpc::AsyncResponder/fault()

          at mx.rpc::AsyncRequest/fault()

          at DirectHTTPMessageResponder/errorHandler()

          at flash.events::EventDispatcher/dispatchEventFunction()

          at flash.events::EventDispatcher/dispatchEvent()

          at flash.net::URLLoader/onComplete()

Can someone maybe point me in the right direction in regard to how to fix this issue or what this error means?  Any help would be greatly appreciated!

Thansk!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 7, 2011

it means there's a data type mismatch in the code on line 1005 of pCoachWS.as.

code to handle a FaultEvent should be added so your gamelineevent handler isn't called when there's a faultevent.  but that won't stop the main problem, a faultevent.