SIMPLE RMI PROB
I have created a very simple rmi test class passing a bk obkect to a remote library class - the code is below but i keep getting the oops error as specified in the client class - any ideas would be appreciated.
public class bk{
String st;
public bk(String s){
st=s;
import java.rmi.*;
public interface libint extends Remote{
public void addbook(bk b)throws RemoteException;
import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
public class lib extends UnicastRemoteObject implements libint{
Vector v;
public lib()throws RemoteException{
Vector v = new Vector();
System.out.println("lib created");
public void addbook(bk b){
v.add(b);
System.out.println("BOOK ADDED");
import java.rmi.Naming;
public class Server{
public static void main(String args[]){
try{
Naming.rebind("libs", new lib());
System.out.println("System ready");
catch(Exception e){}
import java.rmi.Naming;
public class client{
public static void main(String args[]){
try{
bk b = new bk("john");
libint li = (libint)Naming.lookup("//127.0.0.1/libs");
li.addbook(b);
}catch(Exception e){System.out.println("oops2");}
I kind of guessed it was something to do with the addbook method but i have no idea why - any suggestions would again be welcome - cheers
java.lang.NullPointerException
at lib.addbook(lib.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at lib_Stub.addbook(Unknown Source)
at client.main(client.java:8)
Similar Messages
-
Macbook pro will not restart to download update instead goes straight to download?
macbook pro will not restart to download update instead goes straight to update download probably simple setting prob but i dont know can some on help me i just replaced a dieing hard drive and and im running on 08 software pleas helpi replaced my hard drive and put osz back on now im trying to update but will not update supost to restart then update but instead of restarting it goeses to update and i have to shut it down pleas ignore typos im trippen
-
Hi all
I've wrote a simple RMI application; I've made a stub and a skeleton and I've started a rmiregistry; when I'm execute a server, I have this exception:
java.rmi.UnmarshalException: error unmarshalling arguments; ecc.
Where is the problem?Ok, but I'm a student and my teacher wants ....I'm 49 years old and have blond, long hair (other call it grey, but they are
loonies) and I drive a Ford that doens't want to start when it's freezing
but that's still no excuse for the RMI mechanism not to work properly ;-)
Anyway, the problem was an sub-directory; now I catch a
ConnectException: connection refused (to 127.0.0.1);
any ideas?Yep, you have to start the server part first and then start your client. I also
suspect that you don't have the 'rmiregistry' running ... (we can talk about
that later).
kind regards,
Jos -
Problem with a simple RMI program
I'm trying to get a simple RMI program to work, by following the instructions in this link:
http://developer.java.sun.com/developer/technicalArticles/RMI/CreatingApps/index.html#dro
When it gets to this line:
Lookup look_obj = (Lookup)Naming.lookup(name);this exception is generated:
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
What's wrong, eh?Canadian, eh?
Looks like your security settings on you computer are set to not allow a socket connection.
Specifically is is saying that access to port 1099 on your local machine (127.0.0.1 is the loopback address) is being denied.
There are two main reasons this could happen (off the top of my head), though someone else might know from the message exaclty which one.
1. Your java security permissions do not allow an out going socket connection (are you writing an applet?)
2. Your computer protects access to port 1099. -
Hello,
I'm trying to compile and execute a simple RMI example. The compilation is OK.
The rmiregistry is running.
I'm using windows and java 1.5
I have the files:
Server <== the Server
myStudentImpl <== remote object
myStudent <== interface
myStudentImpl_Stub <== the Stub of myStudentImpl (generated by rmic)
When I'm trying to execute the command from the Server file
Naming.rebind("john",student);
I'm getting an error.
Error:RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: myStudentImpl_Stub
Then I executed
C:\myrmi2>java -Djava.rmi.server.codebase=c:/myrmic2 Server
.... and I got the below error
Error:Error unmarshaling return; nested exception is:
java.net.MalformedURLException: unknown protocol: c
Probably, I have a mistake with the environment variables.
Can anybody help me, please?
ThanksNow I'm getting
Error(2):error marshalling arguments; nested exception is:
java.io.NotSerializableException: testprovider.DS.DS_TicketImpl
This is my interface
public interface DS_Ticket extends Remote
public EncryptedTicket RequestTicket(RequestForTicket req) throws RemoteException;
This is my return object
public class EncryptedTicket implements java.io.Serializable
public byte[] cipherToken2;
public byte[] cipherSignToken2;
public byte[] cipherSignature;
public String Description;
This is the parameter object
public class RequestForTicket implements java.io.Serializable
public PublicKey pubKey;
public byte[] e_s_Token2;
public byte[] e_Token2;
public byte[] BeKey;
public byte[] BeToken;
public byte[] signature;
Any idea what I'm doing wrong?
Thank you very much -
How to deploy simple RMI server WLS 7
Hi,
I understand that if I write a simple RMI server - not
extending UnicastRemoteObject, no clustering or IIOP
issues - I don't need to run an rmic program. I'm not
clear, however, on what then gets deployed. Does the
client get the interface or implementation class? And, in
this simple case, no deployment descriptor configuration
for RMI is required, correct? I seem to be making this
harder than it's supposed to be ...
Thanks, GarryGarry, WLS itself is a server , you dont need an additional RMI server. All you need is create an RMI object and bind it to the server JNDI (from the server side) , then your clients can lookup the RMI object via the JNDI and they will get the stubs to make method invocations on the RMI object.
Check out documentation at :
http://e-docs.bea.com/wls/docs81/rmi/rmi_api.html#1000008693 -
Help me to run this simple RMI example
When i m running this example in standalone pc it works but while running on to different pc it gives error though I m giving the IP address from client of server.. If anyone can help me out plz help.
Code:
ReceiveMessageInterface
import java.rmi.*;
public interface ReceiveMessageInterface extends Remote
void receiveMessage(String x) throws RemoteException;
Server code:
import java.rmi.*;
import java.rmi.registry.*;
import java.rmi.server.*;
import java.net.*;
public class RmiServer extends java.rmi.server.UnicastRemoteObject
implements ReceiveMessageInterface
int thisPort;
String thisAddress;
Registry registry; // rmi registry for lookup the remote objects.
// This method is called from the remote client by the RMI.
// This is the implementation of the �ReceiveMessageInterface�.
public void receiveMessage(String x) throws RemoteException
System.out.println(x);
public RmiServer() throws RemoteException
try{
// get the address of this host.
thisAddress= (InetAddress.getLocalHost()).toString();
catch(Exception e){
throw new RemoteException("can't get inet address.");
thisPort=3232; // this port(registry�s port)
System.out.println("this address="+thisAddress+",port="+thisPort);
try{
// create the registry and bind the name and object.
registry = LocateRegistry.createRegistry( thisPort );
registry.rebind("rmiServer", this);
catch(RemoteException e){
throw e;
static public void main(String args[])
try{
RmiServer s=new RmiServer();
catch (Exception e) {
e.printStackTrace();
System.exit(1);
Client code:
import java.rmi.*;
import java.rmi.registry.*;
import java.net.*;
public class RmiClient
static public void main(String args[])
ReceiveMessageInterface rmiServer;
Registry registry;
String serverAddress=args[0];
String serverPort=args[1];
String text=args[2];
System.out.println("sending "+text+" to "+serverAddress+":"+serverPort);
try{
// get the �registry�
registry=LocateRegistry.getRegistry(
serverAddress,
(new Integer(serverPort)).intValue()
// look up the remote object
rmiServer=
(ReceiveMessageInterface)(registry.lookup("rmiServer"));
// call the remote method
rmiServer.receiveMessage(text);
catch(RemoteException e){
e.printStackTrace();
catch(NotBoundException e){
e.printStackTrace();
}When we compile with rmic skeleton and stub get created then we hav to place stub at each client ???Your remote client applcation need only _Stub.class fiels.
Is there way by which we can know how many clients are connected to the
server and there IP address, can anyone give the code... I guess that you should use a RMI login/logout method to register/unregister your client connection information into a databse or a simple static Hashtable(Vector) object. -
Simple RMI over HTTP in MIDP1.0 - open source project
Hi All,
For anyone interested in doing remote method calls (over HTTP) to a server from a MIDP 1.0 MIDlet there is an open source project now available for this. Please see MeRMI (Micro Edition RMI) at:
http://mermi.dev.java.net
You can use this to create a remote server class, much like you would in RMI. MeRMI then generates classes to do the remote communications for you. So you can just make nice, simple Java calls from your MIDlet, without having to worry about how the calls are passed to the server, etc. It's all pretty easy to use (especially if you have used RMI before) and takes a lot of the hard work out of building network applications.
The toolkit is completely free (LGPL) and open source, you can use the code and do what you want with it.
Hope it comes in useful to someone!
zonski.
Note: MeRMI does not support callbacks, but an event mechanism using blocking, polling requests can be used to create server to client messaging.It sounds interesting. It is only for MIDP 1.0?, what about MIDP 2.0?
-
Help! simple RMI app with Linux
Hello,
I am quite new to RMI, so I think this problem might be a simple one, but I don't get it.... I try to set up a sample RMI Demo on Suse Linux 9.3 with jdk1.5.0_02.
On WIndows XP, everything is working just fine...same JDK, same environment vars, same java code. On Linux, I get the following error whne launchin the server (rmiregistry is running):
non-JRMP Server at remote endpointhere's my Server Code:
RemoteDateImpl im = new RemoteDateImpl();
Registry r = LocateRegistry.getRegistry();
Naming.rebind(RemoteDate.LOOKUPNAME,im);...an the Interface RemoteDate:
public interface RemoteDate extends Remote
public Date getRemoteDate() throws java.rmi.RemoteException;
public final static String LOOKUPNAME = "rmi://192.168.0.1:1099/RemoteDate";
}at last the Implementation Code:
public class RemoteDateImpl extends UnicastRemoteObject implements RemoteDate
public RemoteDateImpl() throws RemoteException
super();
public Date getRemoteDate() throws RemoteException
return new Date();
}so what is going wrong here?hello!!
the only thing that comes to my mind regarding this exception is that the port 1099 might be in use by some other program (and rmiregistry is starting at a diff port)...
try starting it manually at a different port to see what happens...
are you running plain rmi? or rmi iiop? -
Not able to run a simple RMI server
I am running an RMI program like follwing
import java.rmi.* ;
import java.rmi.registry.* ;
import java.rmi.server.* ;
public class CallBeanServer extends UnicastRemoteObject implements ICallBeanServer
//main
public static void main(String args[]) throws Exception
int port = 1000 ;
Registry reg = null ;
if( args[0].equals("true"))
reg = LocateRegistry.createRegistry(port) ;
System.out.println("Successfully created registry") ;
else
reg = LocateRegistry.getRegistry(port) ;
System.out.println("Connected to existing registry") ;
CallBeanServer callBeanServer = new CallBeanServer(reg) ;
}//main
//constructor
public CallBeanServer(Registry reg) throws Exception, RemoteException
super() ;
reg.rebind("CallBeanServer",this) ;
System.out.println("CallBeanServer Object bound") ;
//my public method
public String callBeanServer() throws RemoteException
{ return "Success" ;
I have run the rmiregistry at port no 1000 like
rmiregistry 1000
I have compiled ICallBeanServer also and run rmic also over CallBeanServer like
rmic CallBeanServer
when I run this program using
java CallBeanServer false
it gives the follwoing errors
Connected to existing registry
Exception in thread "main" java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: CallBeanServer_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: CallBeanServer_Stub
java.lang.ClassNotFoundException: CallBeanServer_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at CallBeanServer.<init>(CallBeanServer.java:38)
at CallBeanServer.main(CallBeanServer.java:30)
Can you please tell me what is the error?
Thanks
Prashant GuptaAdd the classes (the stubs included) to the classpath when you start the registry.
-
Hi all!
I'm a new to ejb, just started, for the beginning got an exception:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at SimpleEjbTest.main(SimpleEjbTest.java:19)when trying to
private static Context getInitialContext(String url, String user, String password) throws
NamingException {
Hashtable h = new Hashtable();
// h.put(Context.INITIAL_CONTEXT_FACTORY,
// "WHAT IS HERE?????");
h.put(Context.PROVIDER_URL, url);
h.put(Context.SECURITY_PRINCIPAL, user);
h.put(Context.SECURITY_CREDENTIALS, password);
return new InitialContext(h);
}What to put into INITIAL_CONTEXT_FACTORY?
Or you know easier way to make an InitialContext?
Using jndi.properties? But what should it be then??
Please help!
Thanks a lot to alL!!
Best regards, Boris.well, since you don't specify your app server, how's this?
weblogic.jndi.WLInitialContextFactory
if that doesn't work, try this
com.inprise.j2ee.jndi.CtxFactory
if that doesn't work, try this
com.evermind.server.rmi.RMIInitialContextFactory
if that doesn't work, try this
org.jnp.interfaces.NamingContextFactory
if that doesn't work, try this
com.ibm.websphere.naming.WsnInitialContextFactory
And if that doesn't work, look through your docs again, or maybe try google. Note that whatever you do, you have to have the appropriate jars on your classpath.
Good Luck
Lee -
Need help getting a very simple RMI program running
I've been pulling my hair out trying to get RMI running on windows. I decided to do a verbatim copy of a tutorial to see if it would work, well it didn't. Here is the sample code:
//HelloInterface.java - located in dir c:\java
import java.rmi.*;
public interface HelloInterface extends Remote {
public String say() throws RemoteException;
//Hello.java - located in c:\java
import java.rmi.*;
import java.rmi.server.*;
public class Hello extends UnicastRemoteObject implements HelloInterface {
private String message;
public Hello (String msg) throws RemoteException {
message = msg;
public String say() throws RemoteException {
return message;
//HelloServer.java - located in c:\java
import java.rmi.*;
import java.rmi.Naming;
public class HelloServer{
public static void main (String[] argv) {
try {
Naming.rebind ("Hello", new Hello ("Hello, world!"));
System.out.println ("Hello Server is ready.");
} catch (Exception e) {
System.out.println ("Hello Server failed: " + e);
Then I open a command prompt and go to c:\java and type:
C:\java>javac HelloInterface.java
C:\java>javac Hello.java
C:\java>rmic Hello
C:\java>javac HelloServer.java
I then open a second command prompt and navigate to c:\registry to (to avoid being in the same directory as the stub files) and type:
C:\register>C:\j2sdk1.4.2_03\bin\rmiregistry
In the original command prompt, I then run HelloServer. I've tried running it a 100 different ways and always get the same error:
Hello Server failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Hello_Stub
I've tried just running it as:
java HelloServer
java -classpath . HelloServer
C:\java>java -Djava.rmi.server.codebase=http://localhost -classpath . HelloServer
C:\java>java -Djava.security.policy=..\policy.all -Djava.rmi.server.codebase=http://localhost -classpath . HelloServer
Where policy.all is:
grant {
permission java.security.AllPermission;
And pretty much just about every combination of the above that you can think of.//HelloInterface.java - located in dir c:\java
import java.rmi.*;
public interface HelloInterface extends Remote {
public String say() throws RemoteException;
}//Hello.java - located in c:\java
import java.rmi.*;
import java.rmi.server.*;
public class Hello extends UnicastRemoteObject implements HelloInterface {
private String message;
public Hello (String msg) throws RemoteException {
message = msg;
public String say() throws RemoteException {
return message;
}//HelloServer.java - located in c:\java
import java.rmi.*;
import java.rmi.Naming;
public class HelloServer{
public static void main (String[] argv) {
try {
Naming.rebind ("Hello", new Hello ("Hello, world!"));
System.out.println ("Hello Server is ready.");
} catch (Exception e) {
System.out.println ("Hello Server failed: " + e);
}I'm not sure what you are saying about the CLASSPATH. I thought rmiregistry had to be ran in a different directory than the stub files and that the stubs shouldn't be in the CLASSPATH of the terminal launching rmiregistry.
The HelloServer is being ran with the -classpath option set to "." and the stubs are in the same directory. -
Simple RMI/IIOP app : "no security manager: RMI class loader disabled"
Hello colleagues!
I do not understand the problem at all, and asking for your kind help.
This is my first code for RMI/IIOP. We are using JBoss as application server.
What I've done :
1) created test.Command interface , extending Remote
2) created test.CommandImpl , implementing above mentioned interface and java.io.Serializable, and extending javax.rmi.PortableRemoteObject.
BTW, Serializable is not implemented in some tutorials, but absence of Serializable causes NotSerializableException when trying to rebind (next step).
3) in server code, created initial context and called
context.rebind("test/Command",new CommandImpl());
4) Ran rmic -iiop test.CommandImpl . A result was two new cass files, CommandImplTie.class and CommandStub.class , both are also in package "test".
5) Created remote client and put CommandStub.class to client
classpath (under package "test", too).
6) In client code, initialized the context and called
context.lookup("test/Command").
On this line (lookup), the following exception is being raised :
javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: test.CommandImpl (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:161)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
Is _Stub class all that client needs from server classes, to obtain
the reference ? I tried to put _Tie also to client, but with the same result.
All Jndi paths to JBoss server are correct, as I've used them successfully in other applications.
Many thanks in advance,
DanielNext few words to the topic.
I made tests with canonical RMI/IIOP tutorial from Sun.
When I use Sun's ORB (orbd.exe) , everything work fine. I started
orbd on the same PC as JBoss, and client and server are running
remotely.
But with JBoss ORB, I have the same exception as described above.
Server starts and registers in JNDI successfully, but client can not
obtain a remote reference. Exception is being thrown on
context.lookup().
So the difference is definitely in security managers for two ORBs.
I also tried to create new RMISecurityMananger and set it, but with
no effect.
Any ideas ?
TIA,
Daniel. -
Hi there,
I have had alot of problems running a small RMI program.
It has now boiled down to a java.lang.NoClassDefFoundError
when i try to use my policy file.
The program complies, when i run javac *.java
It also creates the stub, when i run rmic.
I have trawled alot of forums and the closest answer i got was "add your classpath".
As im a student of java, this does not really tell me much.
The class/java files are in
C:\Documents and Settings\MONDARIZ\workspace\RmiHello\server
The policy file is also in the folder.
I must add, that the program is from an example, so i would not think there is any coding errors.
Also when i run it en eclipse, i get "Hello server failed: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)"
So it seems something is running.The answer you found is correct. Java needs to know where to find the class files for execution.
For starters, use the environment variable CLASSPATH. Set the value to:
C:\Documents and Settings\MONDARIZ\workspace\RmiHello\server
This way whatever you run (RMI Registry, Server, Client) has the proper class path. When you get everything running ok, then you can look into other methods of specifying where the class files are found.
Eclipse, as well as command line Java starts, need to find the policy file. Set up this:
-Djava.security.policy=C:\Documents and Settings\MONDARIZ\workspace\RmiHello\server\your_policy_file.xxx -
I have completed reading tutorial...... i have understood How to code in RMI ?
How you can interact with other JVM and call remote methods....basically you need to write code for RMIServer { // it will have interface and classes which implemets those interfaces } and also a RMIClient .
Client will look for rmiregistry and from the naming look up it will find out the remote object and then it calls the remote method.
I have got some question after reading the tutorial
Question 1:
in the binding
// implemented class in RMI server
public class PowerServiceServer extends UnicastRemoteObject
implements PowerService
// blah blah
Naming.bind ("PowerService", svr); // can i give any name instead of the Server name "PowerService" ?
bcoz i saw another tutorial where they have coded like below ....
Naming.bind ("rmi://john/ServerName", svr); // note "rmi :// " ? its different than above. why "rmi://" ? Ho many convention !!so It is misleading to me ......... can i give any name whatever i wish ( may not be SERVER name as well ) for Naming.bind ? like below
Naming.bind ("abcdefghijklmnop", svr); // IS IT LEGAL ?
or is there any convention or standard to follow ?
OR do i need to write the path localtion of my server in that string ?
like below...
Naming.bind ("c:/packagename/RMIServer", svr); ?
Plz correct me
thank youYou can use any name.yea......freedommmmmm............i like.
//host:port/namewell , if i use this convention then it will be like...
//CompName:1099/AnythingULike......right ?
thanks ?kaj i am happy .
I have some more queries.
Question 2 :
If you noticed my earlier post on "Stub and Skeleton" where ceil has given a fantastic explanation of what does this phrase means in programming point of view.
In fact while reading RMI tutorial i came across these two words . But after reading the tutorial it seems to me Author is misusing these 2 words.
see a comment from A CBT . i copied it in a notebook
The server generates the stub and the skeleton. THE STUB resides on the client side and the skeleton on the server. In the recent version the generating skeleton are not required unless compatibality is required.
To Generate stub and skeleton you can follow the command
rmic myserver ( ???)
plz note the statements which starts Capitalized . Its confusing .
THE STUB resides on the client side and the skeleton on the server.No.
Interfaces are there in the server code to make happy the compiler. so those are stubs and skeletons ( group of stubs) in the server.
there is NO STUB in the client side. its wrong.
To Generate stub and skeleton you can follow the command
rmic myserver ( ???)wow ...what is this ? some tutorials dont tell about this at all !!
i read a tutorial where they said the shortcut tips
(compile all source files + start rmiregistry + run server + run client )....thats it !!
tutorials are varryingggggggg.
Maybe you are looking for
-
DataSocket memory leak problem (2VO0SF00) -- more info?
When upgrading to LabVIEW 8.5 recently, I noticed the following known issue in the readme file: "ID: 2VO0SF00 DataSocket/OPC Leaks Memory using ActiveX VIs to perform open-write-close repeatedly If you call the DataSocket Open, DataSocket Write, and
-
Pagination with conditional text
Hello, We have an classroom book we want to put conditional instructor information into but I'm stumped on how to maintain pagination so that the instructor pages do not have page numbers and the instructor's versions will have the same page numberin
-
Hello, In my application I need to perform some XML validation against an DTD file. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Properties SYSTEM "MyFile.dtd"> <Properties> <Property name="a" value="a1"/> </Properties> Both XML file and the DTD
-
We have Oracle 8.1.7 spatial database. We got to load some java classes into the database. We would like to make it as the java programs to be loaded from a client system into the oracle server. I am using CREATE DIRECTORY command to create a directo
-
I have an iPhone 3GS on the Rogers Network, but I need to use the phone in an area where Rogers have no coverage. How do I unlock the phone so I can use it also on the Bell Network?