odd error when trying to enter designer (win XP eclipse 3.3)

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

odd error when trying to enter designer (win XP eclipse 3.3)

Postby thunderer » Mon Mar 03, 2008 5:56 pm

Hi
I got same problem as described in viewtopic.php?f=11&t=1783,
I can not find solution in the thread.
Can anyone please tell me what's the problem? Thank you very much.


Stack Trace:
java.util.zip.ZipException: The system cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.swtdesigner.gwt.loader.JarFileLoader.<init>(JarFileLoader.java:38)
at com.swtdesigner.gwt.loader.GWTClassLoader.<init>(GWTClassLoader.java:49)
at com.swtdesigner.gwt.loader.GWTClassLoaderProvider.<init>(GWTClassLoaderProvider.java:60)
at com.swtdesigner.gwt.model.widgets.support.GWTState.getClassLoader(GWTState.java:397)
at com.swtdesigner.gwt.model.widgets.support.GWTState.accept(GWTState.java:1421)
at com.swtdesigner.gwt.model.widgets.support.GWTState.getCSSDeclarations(GWTState.java:254)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:106)
at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:28)
at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1538)
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.FocusWidgetInfo.<init>(FocusWidgetInfo.java:17)
at com.swtdesigner.gwt.model.widgets.button.ButtonBaseInfo.<init>(ButtonBaseInfo.java:25)
at com.swtdesigner.gwt.model.widgets.button.ButtonInfo.<init>(ButtonInfo.java:28)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:159)
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.endVisit(JavaInfoParser.java:1447)
at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:336)
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:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
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:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
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:153)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

Full stack trace (to see full context):
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.endVisit(JavaInfoParser.java:1447)
at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:336)
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:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
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:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
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:153)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Caused by: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:167)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
... 65 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:159)
... 66 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: Can not open file |gwt-dev-windows.jar|
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.FocusWidgetInfo.<init>(FocusWidgetInfo.java:17)
at com.swtdesigner.gwt.model.widgets.button.ButtonBaseInfo.<init>(ButtonBaseInfo.java:25)
at com.swtdesigner.gwt.model.widgets.button.ButtonInfo.<init>(ButtonInfo.java:28)
... 71 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: Can not open file |gwt-dev-windows.jar|
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:404)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:184)
... 76 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: Can not open file |gwt-dev-windows.jar|
at com.swtdesigner.gwt.loader.GWTClassLoaderProvider.<init>(GWTClassLoaderProvider.java:62)
at com.swtdesigner.gwt.model.widgets.support.GWTState.getClassLoader(GWTState.java:397)
at com.swtdesigner.gwt.model.widgets.support.GWTState.accept(GWTState.java:1421)
at com.swtdesigner.gwt.model.widgets.support.GWTState.getCSSDeclarations(GWTState.java:254)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:106)
at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:28)
at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1538)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:397)
... 77 more
Caused by: org.apache.commons.lang.exception.NestableError: Can not open file |gwt-dev-windows.jar|
at com.swtdesigner.gwt.loader.JarFileLoader.<init>(JarFileLoader.java:40)
at com.swtdesigner.gwt.loader.GWTClassLoader.<init>(GWTClassLoader.java:49)
at com.swtdesigner.gwt.loader.GWTClassLoaderProvider.<init>(GWTClassLoaderProvider.java:60)
... 85 more
Caused by: java.util.zip.ZipException: The system cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.swtdesigner.gwt.loader.JarFileLoader.<init>(JarFileLoader.java:38)
... 87 more

Designer Configuration Details:

Product: WindowBuilder Unlicensed
Version: 6.6.0.200802131330
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name:
Actual Eclipse Build ID: I20070625-1500
IDE Actual Name: MyEclipse Enterprise Workbench
IDE Actual Version: 6.0.1.zmyeclipse601200710
IDE Actual NL: en_AU
Physical Address: 00-16-76-A5-89-4D
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
Platform Product: MyEclipse Enterprise Workbench
Platform Version: 6.0.1.zmyeclipse601200710
OS Name: Windows XP
OS Architecture: x86
OS Version: 5.1
thunderer
 
Posts: 3
Joined: Mon Mar 03, 2008 4:49 pm

Re: odd error when trying to enter designer (win XP eclipse 3.3)

Postby thunderer » Mon Mar 03, 2008 7:35 pm

I solved the problem by adding the GWT_HOME.

But I got another problem

Stack Trace:
java.lang.IllegalArgumentException: Unable to find TypeDeclaration for com.google.gwt.core.client.JavaScriptObject typePos: -1 typeNamePos: -1
Checked positions:
SimpleName in TypeDeclaration: 1137
in
/*
* Copyright 2006 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.core.client;

/**
* An opaque handle to a native JavaScript object. A
* <code>JavaScriptObject</code> cannot be created directly.
* <code>JavaScriptObject</code> should be declared as the return type of a
* JSNI method that returns native (non-Java) objects. A
* <code>JavaScriptObject</code> passed back into JSNI from Java becomes the
* original object, and can be accessed in JavaScript as expected.
*
* <p>
* <b>SUBCLASSING IS NOT SUPPORTED EXCEPT FOR THE EXISTING SUBCLASSES.</b>
* </p>
*/
public class JavaScriptObject {

/**
* Returns a new array.
*/
public static native JavaScriptObject createArray() /*-{
return [];
}-*/;

/**
* Returns an empty function.
*/
public static native JavaScriptObject createFunction() /*-{
return function() {
};
}-*/;

/**
* Returns a new object.
*/
public static native JavaScriptObject createObject() /*-{
return {};
}-*/;

private static native boolean equalsImpl(JavaScriptObject o,
JavaScriptObject other) /*-{
return o === other;
}-*/;

private static native String toStringImpl(JavaScriptObject o) /*-{
if (o.toString)
return o.toString();
return "[object]";
}-*/;

/**
* The underlying JavaScript object. This is used internally and should never
* be accessed by client code.
*/
protected Object hostedModeReference;

/**
* Not directly instantiable. Subclasses should also define a protected
* no-arg constructor to prevent client code from directly instantiating
* the class.
*/
protected JavaScriptObject() {
};

public boolean equals(Object other) {
if (!(other instanceof JavaScriptObject)) {
return false;
}
return equalsImpl(this, (JavaScriptObject) other);
}

public int hashCode() {
return Impl.getHashCode(this);
}

public String toString() {
/*
* Hosted mode will marshal an explicit argument from a JavaScriptObject
* back to its underlying object, but it won't currently do that for the
* implicit "this" arg. For now, can't implement instance methods on JSO
* directly as natives, so use a delegator.
*/
return toStringImpl(this);
}
}

at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getTypeDeclaration(GWTCompileVisitor.java:466)
at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getMethod(GWTCompileVisitor.java:485)
at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.visitMethod(GWTCompileVisitor.java:91)
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(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at com.swtdesigner.gwt.loader.GWTClassLoader.getClassFromBytes(GWTClassLoader.java:206)
at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:115)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:411)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:136)
at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:28)
at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1538)
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:37)
at com.swtdesigner.gwt.model.widgets.panel.CompositeInfo.<init>(CompositeInfo.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:159)
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.endVisit(JavaInfoParser.java:1447)
at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:336)
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.Assignment.accept0(Assignment.java:311)
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.ExpressionStatement.accept0(ExpressionStatement.java:143)
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:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
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:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
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:153)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

Full stack trace (to see full context):
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.endVisit(JavaInfoParser.java:1447)
at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:336)
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.Assignment.accept0(Assignment.java:311)
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.ExpressionStatement.accept0(ExpressionStatement.java:143)
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:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
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:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
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:153)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Caused by: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:167)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
... 65 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:159)
... 66 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.Element
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:37)
at com.swtdesigner.gwt.model.widgets.panel.CompositeInfo.<init>(CompositeInfo.java:26)
... 71 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.Element
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:404)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:184)
... 75 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.Element
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:142)
at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:28)
at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1538)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:397)
... 76 more
Caused by: org.apache.commons.lang.exception.NestableError: Exception during loading of class com.google.gwt.user.client.Element
at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:145)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:411)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:136)
... 80 more
Caused by: org.apache.commons.lang.exception.NestableError: Exception during loading of class com.google.gwt.core.client.JavaScriptObject
at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:145)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at com.swtdesigner.gwt.loader.GWTClassLoader.getClassFromBytes(GWTClassLoader.java:206)
at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:115)
... 84 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.core.client.JavaScriptObject typePos: -1 typeNamePos: -1
Checked positions:
SimpleName in TypeDeclaration: 1137
in
/*
* Copyright 2006 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.core.client;

/**
* An opaque handle to a native JavaScript object. A
* <code>JavaScriptObject</code> cannot be created directly.
* <code>JavaScriptObject</code> should be declared as the return type of a
* JSNI method that returns native (non-Java) objects. A
* <code>JavaScriptObject</code> passed back into JSNI from Java becomes the
* original object, and can be accessed in JavaScript as expected.
*
* <p>
* <b>SUBCLASSING IS NOT SUPPORTED EXCEPT FOR THE EXISTING SUBCLASSES.</b>
* </p>
*/
public class JavaScriptObject {

/**
* Returns a new array.
*/
public static native JavaScriptObject createArray() /*-{
return [];
}-*/;

/**
* Returns an empty function.
*/
public static native JavaScriptObject createFunction() /*-{
return function() {
};
}-*/;

/**
* Returns a new object.
*/
public static native JavaScriptObject createObject() /*-{
return {};
}-*/;

private static native boolean equalsImpl(JavaScriptObject o,
JavaScriptObject other) /*-{
return o === other;
}-*/;

private static native String toStringImpl(JavaScriptObject o) /*-{
if (o.toString)
return o.toString();
return "[object]";
}-*/;

/**
* The underlying JavaScript object. This is used internally and should never
* be accessed by client code.
*/
protected Object hostedModeReference;

/**
* Not directly instantiable. Subclasses should also define a protected
* no-arg constructor to prevent client code from directly instantiating
* the class.
*/
protected JavaScriptObject() {
};

public boolean equals(Object other) {
if (!(other instanceof JavaScriptObject)) {
return false;
}
return equalsImpl(this, (JavaScriptObject) other);
}

public int hashCode() {
return Impl.getHashCode(this);
}

public String toString() {
/*
* Hosted mode will marshal an explicit argument from a JavaScriptObject
* back to its underlying object, but it won't currently do that for the
* implicit "this" arg. For now, can't implement instance methods on JSO
* directly as natives, so use a delegator.
*/
return toStringImpl(this);
}
}

at com.swtdesigner.gwt.loader.compiler.GWTClassCompiler.rewriteClass(GWTClassCompiler.java:43)
at com.swtdesigner.gwt.loader.GWTClassLoader.findClass(GWTClassLoader.java:104)
... 92 more
Caused by: org.apache.commons.lang.exception.NestableError: java.lang.IllegalArgumentException: Unable to find TypeDeclaration for com.google.gwt.core.client.JavaScriptObject typePos: -1 typeNamePos: -1
Checked positions:
SimpleName in TypeDeclaration: 1137
in
/*
* Copyright 2006 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.core.client;

/**
* An opaque handle to a native JavaScript object. A
* <code>JavaScriptObject</code> cannot be created directly.
* <code>JavaScriptObject</code> should be declared as the return type of a
* JSNI method that returns native (non-Java) objects. A
* <code>JavaScriptObject</code> passed back into JSNI from Java becomes the
* original object, and can be accessed in JavaScript as expected.
*
* <p>
* <b>SUBCLASSING IS NOT SUPPORTED EXCEPT FOR THE EXISTING SUBCLASSES.</b>
* </p>
*/
public class JavaScriptObject {

/**
* Returns a new array.
*/
public static native JavaScriptObject createArray() /*-{
return [];
}-*/;

/**
* Returns an empty function.
*/
public static native JavaScriptObject createFunction() /*-{
return function() {
};
}-*/;

/**
* Returns a new object.
*/
public static native JavaScriptObject createObject() /*-{
return {};
}-*/;

private static native boolean equalsImpl(JavaScriptObject o,
JavaScriptObject other) /*-{
return o === other;
}-*/;

private static native String toStringImpl(JavaScriptObject o) /*-{
if (o.toString)
return o.toString();
return "[object]";
}-*/;

/**
* The underlying JavaScript object. This is used internally and should never
* be accessed by client code.
*/
protected Object hostedModeReference;

/**
* Not directly instantiable. Subclasses should also define a protected
* no-arg constructor to prevent client code from directly instantiating
* the class.
*/
protected JavaScriptObject() {
};

public boolean equals(Object other) {
if (!(other instanceof JavaScriptObject)) {
return false;
}
return equalsImpl(this, (JavaScriptObject) other);
}

public int hashCode() {
return Impl.getHashCode(this);
}

public String toString() {
/*
* Hosted mode will marshal an explicit argument from a JavaScriptObject
* back to its underlying object, but it won't currently do that for the
* implicit "this" arg. For now, can't implement instance methods on JSO
* directly as natives, so use a delegator.
*/
return toStringImpl(this);
}
}

at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.visitMethod(GWTCompileVisitor.java:119)
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)
... 93 more
Caused by: java.lang.IllegalArgumentException: Unable to find TypeDeclaration for com.google.gwt.core.client.JavaScriptObject typePos: -1 typeNamePos: -1
Checked positions:
SimpleName in TypeDeclaration: 1137
in
/*
* Copyright 2006 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.core.client;

/**
* An opaque handle to a native JavaScript object. A
* <code>JavaScriptObject</code> cannot be created directly.
* <code>JavaScriptObject</code> should be declared as the return type of a
* JSNI method that returns native (non-Java) objects. A
* <code>JavaScriptObject</code> passed back into JSNI from Java becomes the
* original object, and can be accessed in JavaScript as expected.
*
* <p>
* <b>SUBCLASSING IS NOT SUPPORTED EXCEPT FOR THE EXISTING SUBCLASSES.</b>
* </p>
*/
public class JavaScriptObject {

/**
* Returns a new array.
*/
public static native JavaScriptObject createArray() /*-{
return [];
}-*/;

/**
* Returns an empty function.
*/
public static native JavaScriptObject createFunction() /*-{
return function() {
};
}-*/;

/**
* Returns a new object.
*/
public static native JavaScriptObject createObject() /*-{
return {};
}-*/;

private static native boolean equalsImpl(JavaScriptObject o,
JavaScriptObject other) /*-{
return o === other;
}-*/;

private static native String toStringImpl(JavaScriptObject o) /*-{
if (o.toString)
return o.toString();
return "[object]";
}-*/;

/**
* The underlying JavaScript object. This is used internally and should never
* be accessed by client code.
*/
protected Object hostedModeReference;

/**
* Not directly instantiable. Subclasses should also define a protected
* no-arg constructor to prevent client code from directly instantiating
* the class.
*/
protected JavaScriptObject() {
};

public boolean equals(Object other) {
if (!(other instanceof JavaScriptObject)) {
return false;
}
return equalsImpl(this, (JavaScriptObject) other);
}

public int hashCode() {
return Impl.getHashCode(this);
}

public String toString() {
/*
* Hosted mode will marshal an explicit argument from a JavaScriptObject
* back to its underlying object, but it won't currently do that for the
* implicit "this" arg. For now, can't implement instance methods on JSO
* directly as natives, so use a delegator.
*/
return toStringImpl(this);
}
}

at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getTypeDeclaration(GWTCompileVisitor.java:466)
at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.getMethod(GWTCompileVisitor.java:485)
at com.swtdesigner.gwt.loader.compiler.GWTCompileVisitor.visitMethod(GWTCompileVisitor.java:91)
... 96 more

Designer Configuration Details:

Product: GWT Designer Evaluation
Version: 4.0.0.200802131342
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name:
Actual Eclipse Build ID: I20070625-1500
IDE Actual Name: MyEclipse Enterprise Workbench
IDE Actual Version: 6.0.1.zmyeclipse601200710
IDE Actual NL: en_AU
Activation Key: GWTDesignerEval-JD0SF-GM13G-M868X
Physical Address: 00-16-76-A5-89-4D
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
GWT Home: C:/download/gwt-windows-1.4.61/gwt-windows-1.4.61
Platform Product: MyEclipse Enterprise Workbench
Platform Version: 6.0.1.zmyeclipse601200710
OS Name: Windows XP
OS Architecture: x86
OS Version: 5.1
thunderer
 
Posts: 3
Joined: Mon Mar 03, 2008 4:49 pm

Re: odd error when trying to enter designer (win XP eclipse 3.3)

Postby thunderer » Mon Mar 03, 2008 9:02 pm

Problem solved. Something to do with maven converted project. Still not sure but working now.
thunderer
 
Posts: 3
Joined: Mon Mar 03, 2008 4:49 pm

Re: odd error when trying to enter designer (win XP eclipse 3.3)

Postby Eric Clayberg » Tue Mar 04, 2008 4:38 am

thunderer wrote:Problem solved. Something to do with maven converted project. Still not sure but working now.

The second problem looked like a configuration problem of some sort. Specifically, what did you do to solve it?
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: odd error when trying to enter designer (win XP eclipse 3.3)

Postby ahi » Mon Apr 21, 2008 3:52 am

Is already known, what solved the problem?

I'm interested to know, since we have the same error on one machine here.
ahi
 
Posts: 3
Joined: Mon Apr 14, 2008 8:04 am

Re: odd error when trying to enter designer (win XP eclipse 3.3)

Postby Konstantin.Scheglov » Mon Apr 21, 2008 10:20 am

Try following:

1. ensure that you use supported version of GWT, such as 1.4.62, not 1.5;

2. ensure that you use GWT in standard way, using GWT_HOME classpath variable;

2. upgrade to the latest build of GWT Designer;

3. upgrade to Eclipse 3.3.2.

If nothing helps, create small test case (project), error log and send this to support.
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests