Hosted Browser fails

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Hosted Browser fails

Postby rsr » Sun Mar 30, 2008 12:23 pm

Obviously a bug has appeared in the new version.

You cannot run a GWT application if you have attached another Project to your build path.

The hosted browser shows the Exception:

Unable to open new window for startup URL: http//localhost:8888

The browser widget class could not be instantiated java.lang.RuntimeException: Unable to snatch field 'site' from class org.eclipse.swt.browser.Browser
rsr
 
Posts: 1
Joined: Sun Mar 30, 2008 12:15 pm

Re: Hosted Browser fails

Postby Eric Clayberg » Mon Mar 31, 2008 4:20 am

rsr wrote:Obviously a bug has appeared in the new version.

Unlikely. Maybe you are just doing something incompatible with GWT. If the hosted mode browser itself fails, that is likely not a GWT Designer issue.

rsr wrote:You cannot run a GWT application if you have attached another Project to your build path.

You most certainy can do this...as long as the other project does not contain something incompatible with GWT itself.

rsr wrote:The hosted browser shows the Exception:
Unable to open new window for startup URL: http//localhost:8888
The browser widget class could not be instantiated java.lang.RuntimeException: Unable to snatch field 'site' from class org.eclipse.swt.browser.Browser

This exception means that GWT is unable to create an instance of the SWT Broswer widget. GWT includes its own private, custom copy of SWT. If a newer version of SWT is somehow linked into your GWT project, that can interfer with GWT which expectst to find it own unique version of that class. The most likely cause for the above exception is that your have indirectly (probbaly via the other project you attached) linked in a new copy of the SWT jar (as might be the case, if you were linking in a project that contained Eclipse SWT, RCP or plugin elements.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests