Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI NoSuchasMemberException in Client Stub???

 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all: I got this Exception in the STUB ???
my code :
public Client(String host, String title) {
// title is user name
super(title);
connect(host, title);
....
try {
server.send(title + " is online"); // CallBack works fine
} catch (RemoteException rmEx) {
...
try {
dataDB = server.criteriaFind("ANY");
...
} catch (RemoteException rmEx1)
in the RemoteServerImpl
...
public DataInfo[] criteriaFind(String criteria) {
try {
if (criteria == null) {criteria="ANY";}
return datalocal.criteriaFind(criteria);

}catch (DatabaseException e)
...
an also I defined in the server interface and generate the stub too. I have many others methods define in the same way and woks fine.
Some can help me ? I took a look inside the Client Stub and inside the wrapper method give me a such as RuntimeException
PLZ HELP !!!
 
Andras Nemeth
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ricardo Polero:
Hi all: I got this Exception in the STUB ???
my code :
public Client(String host, String title) {
// title is user name
super(title);
connect(host, title);
....
try {
server.send(title + " is online"); // CallBack works fine
} catch (RemoteException rmEx) {
...
try {
dataDB = server.criteriaFind("ANY");
...
} catch (RemoteException rmEx1)
in the RemoteServerImpl
...
public DataInfo[] criteriaFind(String criteria) {
try {
if (criteria == null) {criteria="ANY";}
return datalocal.criteriaFind(criteria);

}catch (DatabaseException e)
...

Hello Ricardo,
I wonder how it can work without throws RemoteException signature
in the RemoteServerImpl.
Chin up,
Ban
 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yes My code throw the RemoteException , just I didn't put it !
Ricardo
 
Shailendra Guggali
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ricardo
I have a peculiar RMI problem
All works fine the first time the server and clients are started but when you disconnect a client and try to connect again it gives null pointer exception - traced it to RandomAccessFile Object - it shows null the second time
WHY ?? What is different the second time
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic