• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

RMI NoSuchasMemberException in Client Stub???

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!!
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Yes My code throw the RemoteException , just I didn't put it !
Ricardo
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic