Can you post example code that caused the exception?

On Nov 26, 6:50 am, Bhupen <[EMAIL PROTECTED]> wrote:
> hi, I am new to GWT and working on some project... i have added few
> widget in my application.... and when i am changing the contents with
> menu it's not showing any widget... apart from widget all the things
> coming properly and i m getting following error
>
> [ERROR] Uncaught exception escaped
> java.lang.AssertionError: A widget in the detach list was found not
> attached to the document. The is likely caused by wrapping an existing
> element and removing it from the document without calling
> RootPanel.detachNow().
>        at com.google.gwt.user.client.ui.RootPanel.detachWidgets
> (RootPanel.java:200)
>        at com.google.gwt.user.client.ui.RootPanel$1.onWindowClosed
> (RootPanel.java:221)
>        at com.google.gwt.user.client.Window.fireClosedImpl(Window.java:
> 465)
>        at com.google.gwt.user.client.Window.fireClosedAndCatch
> (Window.java:
> 456)
>        at com.google.gwt.user.client.Window.onClosed(Window.java:430)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        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)
>
> And when i pur RootPanel.detachNow(widget)... then nothing is showing
> with that panel..
>
> and getting the following error
>
> [ERROR] Uncaught exception escaped
> java.lang.AssertionError: detachNow() called on a widget not currently
> in the detach list
>        at com.google.gwt.user.client.ui.RootPanel.detachNow
> (RootPanel.java:
> 87)
>        at com.client.agentListWidget.widgetInterface
> (agentListWidget.java:
> 15)
>        at com.client.IRIS$1.onClick(IRIS.java:57)
>        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.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        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)
>
> Please help me out of this problem...
--~--~---------~--~----~------------~-------~--~----~
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