Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
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:

 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!