aspose file tools*
The moose likes GWT and the fly likes RPC problems Method isPrimeNumber of 'PrimeNumber' is not synchronized with 'PrimeNumberAsync' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "RPC problems Method isPrimeNumber of Watch "RPC problems Method isPrimeNumber of New topic
Author

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

Roy Bean
Greenhorn

Joined: Jan 26, 2012
Posts: 5
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

Joined: Jul 26, 2007
Posts: 10360
    
    8

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?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Roy Bean
Greenhorn

Joined: Jan 26, 2012
Posts: 5
Thanks,

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

thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RPC problems Method isPrimeNumber of 'PrimeNumber' is not synchronized with 'PrimeNumberAsync'