I've run into a problem that has stumped me for a couple of weeks.
I'm working on URLyBird 1.3.1 and am using a remote design identical to the latest DennyDvD project in
SCJD Exam with J2SE 5 as shown below.
suncertify.db packageAll methods throw RecordNotFoundException except one that throws DuplicateKeyException
suncertify.remote packageAll methods with signature identical to those found in DBMain
I run into the following errors for each of the DBMain methods when I compile RoomDatabaseImpl with rmic:
I have the standalone client working and the RMI server running. However, when I start the RMI server and then the network client, I run into the exceptions
I understand that all remote methods must be declared to throw RemoteException in the corresponding remote interface. However, when I try to add throwing a RemoteException to the methods in RoomDatabaseImpl, the NetBeans compiler give me an error because I'm overriding a method in DBMain that doesn't throw a RemoteException. I don't understand why I'm running into this problem when the DennysDVD class matching mine, DvDDatabaseImpl class has methods that throw RemoteException although none of the methods in the DBClient class throw a RemoteException. I have been able to get the Denny's DVD project running in my Netbeans
IDE.
I'm open to major changes in my RMI design but, if possible, I'd like to first find out what's wrong with my current design and make minor changes.
Any sugestions/questions you have are welcome!
Thanks!
Bill Rowell
[Andrew: Changed tabs to 2 spaces to attempt to reduce horizontal wrappping. Forced some wrapping for the same reason.]
[ June 04, 2006: Message edited by: Andrew Monkhouse ]