Designer Error (Eclipse 3.3, Mac OS X 10.5)

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

Designer Error (Eclipse 3.3, Mac OS X 10.5)

Postby LuisSala » Fri Feb 08, 2008 4:59 pm

Here's the situation, GWT Designer worked for about 3 minutes then crashed Eclipse. Now I get this error when trying to enter Design mode for the ImageViewer.java example.

Code: Select all
Designer error occurred.

Reason:
Parse error or internal Designer error. See "Details" section.


Closing the error dialog reveals this message:

Code: Select all
Designer was unable to find any GUI elements in your source.

Check that the open compilation unit is a GUI class.


Here's the stack trace from the "Details" section:

Code: Select all
Stack Trace:

java.lang.IllegalArgumentException: Unable to find TypeDeclaration for com.google.gwt.user.client.ui.HTMLTable$CellFormatter in
/*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.user.client.ui;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant;
import com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.NoSuchElementException;

/**
* HTMLTable contains the common table algorithms for
* {@link com.google.gwt.user.client.ui.Grid} and
* {@link com.google.gwt.user.client.ui.FlexTable}.
* <p>
* <img class='gallery' src='Table.png'/>
* </p>
*/
public abstract class HTMLTable extends Panel implements SourcesTableEvents {
  /**
   * This class contains methods used to format a table's cells.
   */
  public class CellFormatter {
    /**
     * Adds a style to the specified cell.
     *
     * @param row the cell's row
     * @param column the cell's column
     * @param styleName the style name to be added
     * @see UIObject#addStyleName(String)
     */
    public void addStyleName(int row, int column, String styleName) {
      prepareCell(row, column);
      Element td = getCellElement(bodyElem, row, column);
      UIObject.setStyleName(td, styleName, true);
    }


    at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getTypeDeclaration(GWTCompileVisitor.java:455)
    at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getMethod(GWTCompileVisitor.java:464)
    at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.visitMethod(GWTCompileVisitor.java:89)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.swtdesigner.gwt.loader.compiler.GWTClassCompiler.rewriteClass(GWTClassCompiler.java:29)
    at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:104)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
    at java.lang.Class.getMethod0(Class.java:2642)
    at java.lang.Class.getMethod(Class.java:1579)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:565)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:135)
    at com.swtdesigner.gwt.support.browser.saf.GWTStateSaf.<init>(GWTStateSaf.java:30)
    at com.swtdesigner.gwt.support.browser.saf.BrowserSupportFactory.createState(BrowserSupportFactory.java:15)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1468)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:397)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:184)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:66)
    at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:52)
    at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:35)
    at com.swtdesigner.gwt.model.widgets.panel.PanelInfo.<init>(PanelInfo.java:25)
    at com.swtdesigner.gwt.model.widgets.panel.ComplexPanelInfo.<init>(ComplexPanelInfo.java:23)
    at com.swtdesigner.gwt.model.widgets.panel.AbsolutePanelInfo.<init>(AbsolutePanelInfo.java:36)
    at com.swtdesigner.gwt.model.widgets.panel.RootPanelInfo.<init>(RootPanelInfo.java:23)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:152)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:96)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:89)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3770)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1887)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
    at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
    at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
    at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
    at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:3007)
    at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
    at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:213)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:320)
    at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1141)
    at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1073)
    at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1067)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1060)
    at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:426)
    at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:196)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
    at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
    at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
    at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:2734)
    at org.eclipse.swt.widgets.Control.actionProc(Control.java:115)
    at org.eclipse.swt.widgets.Display.actionProc(Display.java:355)
    at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
    at org.eclipse.swt.widgets.Widget.kEventControlTrack(Widget.java:1062)
    at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:1950)
    at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:367)
    at org.eclipse.swt.widgets.Display.controlProc(Display.java:835)
    at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2938)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Full stack trace (to see full context):
org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3781)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1887)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
    at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
    at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
    at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
    at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:3007)
    at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
    at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:213)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
    at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:320)
    at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1141)
    at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1073)
    at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1067)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1060)
    at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:426)
    at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:196)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
    at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
    at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
    at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:2734)
    at org.eclipse.swt.widgets.Control.actionProc(Control.java:115)
    at org.eclipse.swt.widgets.Display.actionProc(Display.java:355)
    at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
    at org.eclipse.swt.widgets.Widget.kEventControlTrack(Widget.java:1062)
    at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:1950)
    at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:367)
    at org.eclipse.swt.widgets.Display.controlProc(Display.java:835)
    at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2938)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: org.apache.commons.lang.exception.NestableError: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:119)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:96)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:89)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3770)
    ... 74 more
Caused by: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
    at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:160)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
    ... 77 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:152)
    ... 78 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: Exception during loading of class com.google.gwt.user.client.ui.HTMLTable$CellFormatter
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:186)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:66)
    at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:52)
    at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:35)
    at com.swtdesigner.gwt.model.widgets.panel.PanelInfo.<init>(PanelInfo.java:25)
    at com.swtdesigner.gwt.model.widgets.panel.ComplexPanelInfo.<init>(ComplexPanelInfo.java:23)
    at com.swtdesigner.gwt.model.widgets.panel.AbsolutePanelInfo.<init>(AbsolutePanelInfo.java:36)
    at com.swtdesigner.gwt.model.widgets.panel.RootPanelInfo.<init>(RootPanelInfo.java:23)
    ... 83 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: Exception during loading of class com.google.gwt.user.client.ui.HTMLTable$CellFormatter
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:404)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:184)
    ... 90 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: Exception during loading of class com.google.gwt.user.client.ui.HTMLTable$CellFormatter
    at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:141)
    at com.swtdesigner.gwt.support.browser.saf.GWTStateSaf.<init>(GWTStateSaf.java:30)
    at com.swtdesigner.gwt.support.browser.saf.BrowserSupportFactory.createState(BrowserSupportFactory.java:15)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1468)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:397)
    ... 91 more
Caused by: org.apache.commons.lang.exception.NestableError: Exception during loading of class com.google.gwt.user.client.ui.HTMLTable$CellFormatter
    at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:145)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
    at java.lang.Class.getMethod0(Class.java:2642)
    at java.lang.Class.getMethod(Class.java:1579)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:565)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:135)
    ... 95 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: java.lang.IllegalArgumentException: Unable to find TypeDeclaration for com.google.gwt.user.client.ui.HTMLTable$CellFormatter in...

// -- SEVERAL HUNDRED MORE LINES OF CODE REMOVED FOR BREVITY --

  /**
   * Gets the Widget associated with the given cell.
   *
   * @param row the cell's row
   * @param column the cell's column
   * @return the widget
   */
  private Widget getWidgetImpl(int row, int column) {
    Element e = cellFormatter.getRawElement(row, column);
    Element child = DOM.getFirstChild(e);
    if (child == null) {
      return null;
    } else {
      return widgetMap.getWidget(child);
    }
  }
}


    at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getTypeDeclaration(GWTCompileVisitor.java:455)

    at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getMethod(GWTCompileVisitor.java:464)

    at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.visitMethod(GWTCompileVisitor.java:89)

    ... 108 more



Here are the version details.

Code: Select all
Designer Configuration Details:

Product: GWT Designer Subscription
Version: 3.0.1.200802081526 [200802081526]
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name:
Actual Eclipse Build ID: M20071023-1652
IDE Actual Name: Eclipse
IDE Actual Version: 3.3.2.R33x_v20071022
IDE Actual NL: en_US
Serial Number: --REDACTED--
Activation Key: --REDACTED--
Physical Address: 00-1C-42-00-00-00, HardwareAddress[00-17-F2-FF-FE-7D-64-0E], HardwareAddress[00-17-F2-E6-8A-2D]
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
GWT Home: /Users/luis/Development/Java/libs/gwt-mac-1.4.61
Platform Product: Eclipse
Platform Version: 3.3.2.R33x_v20071022
OS Name: Mac OS X
OS Architecture: i386
OS Version: 10.5.1


I tried everything in the FAQ including installing on a fresh Eclipse install (I even tried a build of 3.3.2). I'm going to try installing on a different Mac and see what happens.
LuisSala
 
Posts: 3
Joined: Fri Feb 08, 2008 4:45 pm

Re: Designer Error (Eclipse 3.3, Mac OS X 10.5)

Postby Eric Clayberg » Sat Feb 09, 2008 11:33 am

Give this another try in the latest build.

You ran into a side effect of some work we are doing to support GWT-EXT.
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

Re: Designer Error (Eclipse 3.3, Mac OS X 10.5)

Postby LuisSala » Sun Feb 10, 2008 9:01 am

Eric Clayberg wrote:Give this another try in the latest build.

You ran into a side effect of some work we are doing to support GWT-EXT.


Thanks for the tip... I had picked up some more recent builds yesterday, but things weren't working until I picked another one this morning.

Things seem to be working now. I'm looking forward to seeing the upcoming GWT-Ext support.

Thanks again!

-- Luis
LuisSala
 
Posts: 3
Joined: Fri Feb 08, 2008 4:45 pm

Re: Designer Error (Eclipse 3.3, Mac OS X 10.5)

Postby LuisSala » Sun Feb 10, 2008 9:14 am

Perhaps I spoke too soon.

The Designer worked for a few minutes and crashed while I tried to resize a panel. The eclipse logs didn't seem to capture the crash, but I'm pasting the Mac Problem Report below.

Generally it seems I need to work slowly and carefully, remembering to save every few minutes. Trying to do too much at once seems to make things unstable

I understand this build is a work-in-progress, so I have no expectations but figured I'd let you know.

Cheers,

-- Luis
Code: Select all
Process:         eclipse [6187]
Path:            /Applications/Development/eclipse33/Eclipse.app/Contents/MacOS/eclipse
Identifier:      org.eclipse.eclipse
Version:         3.3 (3.3)
Code Type:       X86 (Native)
Parent Process:  launchd [272]

Date/Time:       2008-02-10 10:06:49.135 -0800
OS Version:      Mac OS X 10.5.1 (9B18)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c00000f7
Crashed Thread:  0

Application Specific Information:

Java information:
Version: Java HotSpot(TM) Client VM (1.5.0_13-119 mixed mode)
Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_13-119) for macosx-x86, built on Sep 28 2007 23:59:21 by root with gcc 4.0.1 (Apple Inc. build 5465)
Exception type: Bus Error (0xa) at pc=0x92fd9286

Current thread (0x110015b0):  JavaThread "AWT-AppKit" [_thread_in_native, id=-1605099680]
Stack: [0xbf800000,0xc0000000)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.carbon.OS.SetKeyboardFocus(IIS)I+0
j  org.eclipse.swt.widgets.Composite.kEventControlClick(III)I+119
J  org.eclipse.swt.widgets.Widget.controlProc(III)I
J  org.eclipse.swt.widgets.Display.controlProc(III)I
v  ~StubRoutines::call_stub
J  org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(II)I
J  org.eclipse.swt.widgets.Display.readAndDispatch()Z
J  org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
v  ~OSRAdapter
j  org.eclipse.ui.internal.Workbench.runUI()I+336
j  org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j  org.eclipse.ui.internal.Workbench$4.run()V+23
j  org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j  org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+81
j  org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+102
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
j  org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+210
j  org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+114
j  org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v  ~StubRoutines::call_stub
Java Threads: ( => current thread )
  0x110edd90 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=13824000]
  0x110ecfb0 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=15335936]
  0x110ecb20 JavaThread "Worker-12" [_thread_blocked, id=14558208]
  0x110e3e30 JavaThread "Worker-11" [_thread_blocked, id=14663168]
  0x11097290 JavaThread "http-server" [_thread_in_native, id=11875328]
  0x110915d0 JavaThread "AWT-Shutdown" [_thread_blocked, id=11766272]
  0x1108e2e0 JavaThread "Designer sync thread" [_thread_blocked, id=10834944]
  0x1108cdf0 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=12963840]
  0x11081460 JavaThread "CodePro Background Startup" [_thread_blocked, id=13408256]
  0x11080cd0 JavaThread "Timer-6" [_thread_blocked, id=13316096]
  0x110795e0 JavaThread "Timer-5" [_thread_blocked, id=12850176]
  0x11079da0 JavaThread "btpool1-0 - Acceptor0 SocketConnector@127.0.0.1:8300" [_thread_in_native, id=12836352]
  0x1107e6b0 JavaThread "Timer-3" [_thread_blocked, id=13150208]
  0x1107d620 JavaThread "btpool0-0 - Acceptor0 SocketConnector@127.0.0.1:8000" [_thread_in_native, id=13170176]
  0x11075010 JavaThread "Aptana: 24-hour update check" daemon [_thread_blocked, id=12641792]
  0x11073a50 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=12746752]
  0x11072c90 JavaThread "derby.antiGC" daemon [_thread_blocked, id=12750336]
  0x1106bae0 JavaThread "Opened editors lock manager" [_thread_blocked, id=12457472]
  0x110510d0 JavaThread "Worker-6" [_thread_blocked, id=11608064]
  0x11050c50 JavaThread "Ruby indexing" daemon [_thread_blocked, id=11574272]
  0x1104fd90 JavaThread "Thread-6" [_thread_blocked, id=11336192]
  0x1104f8a0 JavaThread "Timer-2" [_thread_blocked, id=11513856]
  0x1104ad10 JavaThread "Worker-4" [_thread_blocked, id=11315712]
  0x1104a890 JavaThread "Worker-3" [_thread_blocked, id=9877504]
  0x1103fef0 JavaThread "Timer-1" [_thread_blocked, id=10465280]
  0x1103de50 JavaThread "Timer-0" [_thread_blocked, id=10571264]
  0x11033340 JavaThread "Worker-2" [_thread_blocked, id=9994240]
  0x1102ca70 JavaThread "Java indexing" daemon [_thread_blocked, id=9830912]
  0x110253a0 JavaThread "Worker-1" [_thread_blocked, id=9589248]
  0x1101fa30 JavaThread "Worker-0" [_thread_blocked, id=9456128]
  0x11014610 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=9011200]
  0x110140a0 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=8897536]
  0x11013850 JavaThread "State Data Manager" daemon [_thread_blocked, id=8893952]
  0x11009070 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=8513024]
  0x11008640 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8508928]
  0x110081a0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8505344]
  0x11007840 JavaThread "Finalizer" daemon [_thread_blocked, id=8499200]
  0x11007440 JavaThread "Reference Handler" daemon [_thread_blocked, id=8495616]
=>0x110015b0 JavaThread "AWT-AppKit" [_thread_in_native, id=-1605099680]
Other Threads:
  0x11006b90 VMThread [id=8407552]
  0x11009c70 WatcherThread [id=8516608]

VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation   total 8768K, used 1521K [0x15580000, 0x15f00000, 0x16930000)
  eden space 7808K,  11% used [0x15580000, 0x1565eba0, 0x15d20000)
  from space 960K,  65% used [0x15e10000, 0x15ead988, 0x15f00000)
  to   space 960K,   0% used [0x15d20000, 0x15d20000, 0x15e10000)
tenured generation   total 115376K, used 86661K [0x16930000, 0x1d9dc000, 0x25580000)
   the space 115376K,  75% used [0x16930000, 0x1bdd14a0, 0x1bdd1600, 0x1d9dc000)
compacting perm gen  total 76288K, used 76183K [0x25580000, 0x2a000000, 0x35580000)
   the space 76288K,  99% used [0x25580000, 0x29fe5ce8, 0x29fe5e00, 0x2a000000)
No shared spaces configured.

Virtual Machine arguments:
JVM args: -Xdock:icon=../Resources/Eclipse.icns -Xms40m -Xmx256m -XX:MaxPermSize=256m -Dosgi.requiredJavaVersion=1.5 -Dorg.eclipse.swt.internal.carbon.smallFonts -Djava.awt.headless=true
Java command: <unknown>
launcher type: generic


--MORE LINES REDACTED --


LuisSala
 
Posts: 3
Joined: Fri Feb 08, 2008 4:45 pm

Re: Designer Error (Eclipse 3.3, Mac OS X 10.5)

Postby Alexander.Mitin » Sun Feb 10, 2008 1:51 pm

Please update the Eclipse to v3.3 maintenance build http://download.eclipse.org/eclipse/dow ... /index.php
If the problem will persist please see is there any eclipse crash log file? Or OSX-generated crash log? Please send the recent one (as well as Eclipse .log file) to wb-supportATinstantiationsDOTcom
Alexander Mitin
Alexander.Mitin
Moderator
 
Posts: 155
Joined: Fri Jan 19, 2007 3:57 am


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests