Hi

I am having a similar problem using the same versions of GWT and
gwtwidgets, trying to show() a Lightbox object :

[ERROR] Uncaught exception escaped
java.lang.AssertionError: Element may only be set once
        at com.google.gwt.user.client.ui.UIObject.setElement(UIObject.java:
802)
        at org.gwtwidgets.client.ui.PNGImage.<init>(PNGImage.java:48)
        at org.gwtwidgets.client.ui.LightBox.show(LightBox.java:85)
        at org.bioversityinternational.cisf.client.panel.PassportPanel
$2.onClick(PassportPanel.java:115)
        at
com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCollection.java:
34)
        at com.google.gwt.user.client.ui.Image.onBrowserEvent(Image.java:484)
        at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
        at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1287)
        at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
        at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
        at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
126)
        at
com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:
155)
        at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
294)
        at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
194)
        at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

I found this note 
http://code.google.com/p/bunsenandbeaker/wiki/FAQ_AssertionElementMayOnlyBeSetOnce
which gives an idea of what's happening, but still keeps us stuck
since it's not our own code that's causing the problem.  If there's a
bug in gwtwidgets 0.2.0, is there any workaround for it?

Thanks in advance.


On Sep 15, 10:39 am, browndar <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> I recently upgraded to the GWT 1.5.2.  Now, I can deploy just fine to
> a war, but am having some difficulties in hosted mode.  It seems to be
> related with the gwt-widgets library (version 0.2.0).  When I try to
> create an image button, I get this:
>
> [ERROR] Uncaught exception escaped
> java.lang.AssertionError:Element may only be set once
>         at com.google.gwt.user.client.ui.UIObject.setElement(UIObject.java:
> 802)
>         at org.gwtwidgets.client.ui.PNGImage.<init>(PNGImage.java:48)
>         at org.gwtwidgets.client.ui.ImageButton.<init>(ImageButton.java:63)
>         at
> com.intime.client.widget.PagedMiniStripWidget.<init>(PagedMiniStripWidget.java:
> 54)
>         at
> com.intime.client.page.CompletedStripsPage.<init>(CompletedStripsPage.java:
> 81)
>         at com.intime.client.Controller.init(Controller.java:243)
>         at com.intime.client.Controller.resultConfig(Controller.java:222)
>         at com.intime.client.service.ConfigProvider
> $ConfigCallBack.onSuccess(ConfigProvider.java:49)
>         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)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>         at
> com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:
> 80)
>         at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
> Method)
>         at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:
> 1428)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
>         at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
>         at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
>         at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
>
> Has anyone else come across this?
>
> Thanks very much,
>
> Darren
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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