Problem with RPC service support

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

Problem with RPC service support

Postby nopalot » Tue Jan 01, 2008 8:59 am

Happy 2008 and thanks for the great work!

When creating a new RPC Service, the async service interface is not created. Also, adding a method to the service interface does not update any other files.
nopalot
 
Posts: 11
Joined: Fri Jul 27, 2007 1:19 pm

Re: Problem with RPC service support

Postby Eric Clayberg » Tue Jan 01, 2008 10:17 am

That generally means that your project is not configured correctly.

How was this project created? Any exceptions in your Eclipse ".log" file?
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

Postby nopalot » Tue Jan 01, 2008 12:14 pm

Hi Eric,

thanks for the quick response!
I've created the project with the following commands:

projectCreator -eclipse GwtTest -out GwtTest
applicationCreator -eclipse GwtTest -out GwtTest com.domain.client.GwtTest
i18nCreator -eclipse GwtTest -out GwtTest com.domain.client.GwtTestConstants
junitCreator -junit /home/nop/bin/junit3.8.2/junit.jar -eclipse GwtTest -module com.domain.GwtTest -out GwtTest com.domain.client.test.GwtTestTest


Here is the content of the eclipse log file:
!SESSION 2008-01-01 18:01:39.411 -----------------------------------------------
eclipse.buildId=M20071023-1652
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.ui 4 0 2008-01-01 18:12:26.335
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.server.ui.internal.actions.RunOnServerActionDelegate.selectionChanged(RunOnServerActionDelegate.java:726)
at org.eclipse.wst.server.ui.internal.ServerLaunchShortcut.launch(ServerLaunchShortcut.java:38)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:429)
at org.eclipse.debug.internal.ui.contextlaunching.ContextRunner.selectAndLaunch(ContextRunner.java:170)
at org.eclipse.debug.internal.ui.contextlaunching.ContextRunner.launch(ContextRunner.java:82)
at org.eclipse.debug.ui.actions.AbstractLaunchToolbarAction.run(AbstractLaunchToolbarAction.java:80)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
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:597)
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)

!ENTRY org.eclipse.ui 4 4 2008-01-01 18:50:29.830
!MESSAGE Plug-in 'com.instantiations.j2ee' contributed an invalid Menu Extension (Path: 'com.instantiations.j2ee.menu' is invalid): com.instantiations.j2ee.action.NewServletAction

!ENTRY org.eclipse.ui 4 4 2008-01-01 18:50:29.831
!MESSAGE Plug-in 'com.instantiations.j2ee' contributed an invalid Menu Extension (Path: 'com.instantiations.j2ee.menu' is invalid): com.instantiations.j2ee.action.NewAppletAction

!ENTRY org.eclipse.ui 4 4 2008-01-01 18:50:29.831
!MESSAGE Plug-in 'com.swtdesigner.gwt' contributed an invalid Menu Extension (Path: 'com.swtdesigner.gwt.menu' is invalid): com.swtdesigner.gwt.actions.wizard.ui.NewPopupAction

!ENTRY org.eclipse.ui 4 4 2008-01-01 18:50:29.831
!MESSAGE Plug-in 'com.swtdesigner.gwt' contributed an invalid Menu Extension (Path: 'com.swtdesigner.gwt.menu' is invalid): com.swtdesigner.gwt.actions.wizard.ui.NewDialofAction

!ENTRY org.eclipse.ui 4 4 2008-01-01 18:50:29.831
!MESSAGE Plug-in 'com.swtdesigner.gwt' contributed an invalid Menu Extension (Path: 'com.swtdesigner.gwt.menu' is invalid): com.swtdesigner.gwt.actions.wizard.ui.NewCompositeAction

!ENTRY org.eclipse.ui 4 4 2008-01-01 18:50:29.832
!MESSAGE Plug-in 'com.swtdesigner.gwt' contributed an invalid Menu Extension (Path: 'com.swtdesigner.gwt.menu' is invalid): com.swtdesigner.gwt.actions.wizard.ui.NewEntryPointAction



I've noticed that version 3.0.0 of GWT Designer does not cause any entries in the eclipse error log. So the above messages are specific to todays (01.01.2008) build. But regardless if i use version 3.0.0 or 3.0.1, the behaviour is the same.

Do you have any ideas what went wrong?
Thanks for your support!
Last edited by nopalot on Tue Jan 01, 2008 12:31 pm, edited 1 time in total.
nopalot
 
Posts: 11
Joined: Fri Jul 27, 2007 1:19 pm

Postby Eric Clayberg » Tue Jan 01, 2008 12:20 pm

Please see the docs for how to create a GWT Designer project.

GWT Designer does not provide any compilation assistance to projects that it knows nothing about.
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

Postby nopalot » Tue Jan 01, 2008 12:41 pm

Thanks for pointing to the docs!
Rightclicking the Project and selecting "Google Web Toolkit->Convert project into GWT project" fixed it.
Thanks again!
nopalot
 
Posts: 11
Joined: Fri Jul 27, 2007 1:19 pm

Postby Eric Clayberg » Wed Jan 02, 2008 10:38 am

The key elements in your .classpath file and .project file are shown below...

Image

Image
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