• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,

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

thanks!
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic