I am working with GWT and trying to add a flex application in the web.
I am using  gwt2swf.jar and gwt-fabridget.jar and the Flex app shows
up but if I try to do any action it shows an error.

The gwt code looks like this:
    SWFParams params = new SWFParams("TimeLine.swf", new Integer(800),
new Integer(100));

    params.addVar("bridgeName", "timeline");
    swfWidget = new SWFABridgeWidget(params);

    vPanel.add(swfWidget);

    swfWidget.show();

    BridgeObject flexApp = swfWidget.root();



Last line is the one producing the error when running in hosted mode:
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.FABridge[...]' is null or not an object
 number: -2146823281
 description: '$wnd.FABridge[...]' is null or not an object
    at org.argunet.gwt.fabridge.client.SWFABridgeWidget.getBridgeRoot
(Native Method)
    at org.argunet.gwt.fabridge.client.SWFABridgeWidget.root
(SWFABridgeWidget.java:79)
    at proyecto.gen.client.Modulo1.calculateTimeLine(Modulo1.java:217)
    at proyecto.gen.client.Modulo1.access$1(Modulo1.java:209)
    at proyecto.gen.client.Modulo1$1$1.onSuccess(Modulo1.java:88)
    at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:215)
    at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:254)
    at
com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:226)
    at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:217)

I've read that 
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/09b95dfc19cadc9c?pli=1
thread. They mention it doesn't work on hosted mode and suggested to
try it in web mode but it's still not working.

Now the error looks like this:
com.google.gwt.core.client.JavaScriptException: (TypeError):
$wnd.FABridge[org_argunet_gwt_fabridge_client_SWFABridgeWidget_
$getBridgeRoot__Lorg_argunet_gwt_fabridge_client_SWFABridgeWidget_2_bridgeName_0]
is undefined
 fileName: 
http://localhost:8888/proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html
 lineNumber: 7908
 stack: org_argunet_gwt_fabridge_client_SWFABridgeWidget_
$root__Lorg_argunet_gwt_fabridge_client_SWFABridgeWidget_2([object
Object])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:7908
proyecto_gen_client_Modulo1_
$calculateTimeLine__Lproyecto_gen_client_Modulo1_2Ljava_util_List_2
([object Object])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:8162
proyecto_gen_client_Modulo1$1$1_
$onSuccess__Lproyecto_gen_client_Modulo1$1$1_2Ljava_lang_Object_2
([object Object],[object Object])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:8248
com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_
$onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2
([object Object],[object Object])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:3519
com_google_gwt_http_client_Request_
$fireOnResponseReceivedImpl__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2
([object Object],[object Object])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:458
com_google_gwt_http_client_Request_fireOnResponseReceived__Lcom_google_gwt_http_client_RequestCallback_2
([object Object])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:472
([object Event])@http://localhost:8888/
proyecto.gen.Modulo1/57D7D7A778C1FDC77F3CA4E59D344299.cache.html:732

Does anyone have an idea of what is the problem about?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to