The Artima Developer Community
Sponsored Link

Java Buzz Forum
GWT AttachDetachException

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tim Vernum

Posts: 58
Nickname: tpv
Registered: Dec, 2002

Tim Vernum is passionate about designing secure systems
GWT AttachDetachException Posted: Sep 19, 2012 1:42 AM
Reply to this message Reply

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.
Latest Java Buzz Posts
Latest Java Buzz Posts by Tim Vernum
Latest Posts From A word used to describe something

Advertisement

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.

Read: GWT AttachDetachException

Topic: How to Cheat at Application Security Previous Topic   Next Topic Topic: Getting started with Scala and Scalatra - Part II

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use