This post originated from an RSS feed registered with Java Buzz
by Tim Vernum.
Original Post: GWT AttachDetachException
Feed Title: A word used to describe something
Feed URL: http://blog.adjective.org/feed/category/Development/rss2
Feed Description: Tim's random musings on software development, java, jetty and other such frivolities.
This is one of those "document it so that no one else has to go through the
same pain as you did"
I spent all afternoon trying to diagnose this GWT exception
... Caused by: com.google.gwt.user.client.ui.AttachDetachException: One or more exceptions caught, see full set in UmbrellaException#getCauses
... Caused by: IllegalStateException: Should only call onDetach when the widget is attached to the browser's document
It was occurring when a PopupPanel was hidden, and involved a
particularly complex widget that used JSNI to integrate with a 3rd party
JavaScript library.
Debugging it was a pain, but the solution was simple: My
onAttach method wasn't calling
super.onAttach.
Sometimes the most confusing errors have the most simple solutions.