File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Error

 
Arno Reper
Ranch Hand
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Arno Reper
Ranch Hand
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does my exception need to implement this :


Thanks
Arno
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
David A. Scott
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just been working on my RMI stuff - your remote object's public methods must throw RemoteException.
 
Arno Reper
Ranch Hand
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic