GeeCON Prague 2014*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI Error" Watch "RMI Error" New topic
Author

RMI Error

Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Can anybody explain me whats wrong?
Is the problem my RecordNotFoundException exception? did I forget something?
The error is happening on every method who throws a RecordNotFoundException


Thanks for your answer,
Arno


The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Does my exception need to implement this :


Thanks
Arno
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi Arno

It seams that your remote method(s) does not throw the RemoteException.
Can you post your remote interface ?

Regards M
[ April 05, 2007: Message edited by: Mihai Radulescu ]

SCJP, SCJD, SCWCD, OCPJBCD
David A. Scott
Ranch Hand

Joined: Apr 13, 2006
Posts: 55
I've just been working on my RMI stuff - your remote object's public methods must throw RemoteException.
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
You have reason but i cann't throw a RemoteException because otherwise i don't respect the interface i got from sun.

this is my remote interface...damn...
do you see a solution?
thanks
arno
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Should i wrapp a DBAccess object inside my remote object...
So i would do something like myRemote.getDBAccess()?
with

and my remote interface would look like
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Originally posted by Arno Reper:
Should i wrapp a DBAccess object inside my remote object...
So i would do something like myRemote.getDBAccess()?
with

and my remote interface would look like


its bad idea doing so...
im searching how to deal with this...
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
Eureka...
I use somekind of business interface with high level method...
Nice,
Thanks to the search button of Javaranch
arno
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Error