• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stub not found

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am finding this problem in the startup of the rmi server.

ReportGeneratorImpl Server failed: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.aero.mb.rmi.report.ReportGeneratorImpl_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.aero.mb.rmi.report.ReportGeneratorImpl_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
...

Could anybody suggest why this is happenning?

thanks.


public interface ReportGenerator extends Remote {
public String make(
int ReportKey,
int customerId,
int branchId,
int vehileId,
int driverId,
int aggregationId,
String reportName,
String reportType,
java.util.Date iniDate,
java.util.Date endDate
) throws RemoteException; }

public class ReportGeneratorImpl extends UnicastRemoteObject implements ReportGenerator {
protected ReportGeneratorImpl() throws RemoteException { super(); }
public String make( int ReportKey , int customerId , int branchId , int vehileId , int driverId , int aggregationId , String reportName , String reportType , Date iniDate , Date endDate ) throws RemoteException { ReportMaker rm = new ReportMaker();
return rm.make( ReportKey , customerId , branchId , vehileId , driverId , aggregationId , reportName , reportType , iniDate , endDate);
}
}

public class ReportServer {
public static void main (String[] argv) {
try {
Naming.rebind("generator", new ReportGeneratorImpl());
System.out.println ("ReportGeneratorImpl Server is ready.");
} catch (Exception e) {
System.out.println ("ReportGeneratorImpl Server failed: " + e.getMessage());
e.printStackTrace();
}
}
}
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like your stub is not on the server's classpath. Question - have you generated the stubs? i.e. run rmic?
 
Diego Rosso
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
that is strange
because I executed the rmic and compiled normally.
the stubs had been generated
perhaps the problem has been provoked for server.classpath attribute

[]s
 
reply
    Bookmark Topic Watch Topic
  • New Topic