RPC jumped to a wrong project with same package name and method name

25 views
Skip to first unread message

tong123123

unread,
Nov 16, 2012, 4:11:43 AM11/16/12
to google-we...@googlegroups.com
I have a origin maven gwt project named stg-runtime-debug-log-webapp, then I copy the whole project and
rename to central-runtime-debug-log-webapp, and I modify some code in server package of the new central-runtime-debug-log-webapp, but I found one very strange thing, when using RPC in client package of central-runtime-debug-log-webapp, the breakpoint will jump to
stg-runtime-debug-log-webapp, NOT central-runtime-debug-log-webapp, and so the result returned to client is wrong.
what is the problem?!!
centralToStg.jpg

Thomas Broyer

unread,
Nov 16, 2012, 4:21:16 AM11/16/12
to google-we...@googlegroups.com
First, check your classpath (in the launch configuration that is, not only the build path of the project) as well as the "source" tab in the launch configuration, to make sure it's not a mistake on your part.
Then, it might be a bug in Eclipse, so I'd close the stg-* project when not working on it.

tong123123

unread,
Nov 16, 2012, 5:04:41 AM11/16/12
to google-we...@googlegroups.com
I think it is eclipse problem, I check the run configuration source, classpath and it point to central..., no problem, then I close the stg... project, and everything is correct now!!
(centralLaunchArgument, centralLaunchClassPath, centralLaunchSource.jpg, correctResult.png).

so it is bug of Google Suite Plugin 2.5.1?

I have one more problem which cannot find a answer for a long time, as shown in googleProperties.jpg and runConfiguration-war.jpg,
what  is the function of the "WAR directory" in googleProperties.jpg?
I think in runtime, the application use the launch confinguration > argument, -war attribute as highlighted in "runConfiguration-war.jpg", not any relationship with the "war directory" in properties > Google > Web Applicagtion > war directory, right?
centralLaunchArgument.jpg
centralLaunchClassPath.jpg
centralLaunchSource.jpg
correctResult.png
googleProperties.jpg
runConfiguration-war.jpg

Thomas Broyer

unread,
Nov 16, 2012, 5:48:07 AM11/16/12
to google-we...@googlegroups.com


On Friday, November 16, 2012 11:04:41 AM UTC+1, tong123123 wrote:
I think it is eclipse problem, I check the run configuration source, classpath and it point to central..., no problem, then I close the stg... project, and everything is correct now!!
(centralLaunchArgument, centralLaunchClassPath, centralLaunchSource.jpg, correctResult.png).

so it is bug of Google Suite Plugin 2.5.1?

I'd rather say Eclipse proper, I don't think the GPE is involved at that point at all.

I have one more problem which cannot find a answer for a long time, as shown in googleProperties.jpg and runConfiguration-war.jpg,
what  is the function of the "WAR directory" in googleProperties.jpg?

AFAICT "WAR Directory" is used to propose the startup page when launching DevMode.
 
I think in runtime, the application use the launch confinguration > argument, -war attribute as highlighted in "runConfiguration-war.jpg", not any relationship with the "war directory" in properties > Google > Web Applicagtion > war directory, right?

This is because "launch and deploy" is unchecked. This is the case for non-Maven projects and non-WTP projects, but for simple projects (e.g. those created with the wizard, or some samples of the GWT SDK), the war directory is used both as source and target.
Reply all
Reply to author
Forward
0 new messages