Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RPC problems Method isPrimeNumber of 'PrimeNumber' is not synchronized with 'PrimeNumberAsync'

 
Roy Bean
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i'm new with GWT and i was trying some examples that i found in the Web or in Books.

the example is to do the service to check if a number is prime.
i having in the server the following error:
Method isPrimeNumber of 'PrimeNumber' is not synchronized with 'PrimeNumberAsync'

What im doing wrong and what can i do?

thanks in advance

my code is:
....client:

PrimeNumber.java



PrimeNumberAsync.java



SamplesEntryPoint.java



and in the server part:
PrimeNumberImpl.java:

 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

In your remote interface you define your method will return a boolean

In your async interface, the call back encapsulates a String

Do you see what's wrong here?
 
Roy Bean
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

big noob mistake copy-paste without knowing what to do!

thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic