aspose file tools
The moose likes Distributed Java and the fly likes Marshaling & java.io.EOFException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Marshaling & java.io.EOFException" Watch "Marshaling & java.io.EOFException" New topic
Author

Marshaling & java.io.EOFException

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello Every Body. I am Newbie in RMI. So please be patient and read whole of the posting. My problem goes like this
I have the following files
(i) Product.class which is Remote
(ii)ProductImpl.class Product's implementations class
(iii)ProductServer.class which binds the references to registry
(iv)ProductClient.class which invokes remote methods
(v) a policy file client.policy
(iv) a Stub.
When i start the server and client in the same directory ,after
starting the rmiregistry every thing is working fine.
After this i divided the files into following directories
1) server which contains
(i)Product.class
(ii)stub
(iii)ProductImpl.class
(iv)ProductServer.class
2) download
(i) stub
(ii)Product.class
3) client
(i)client.policy
(ii)Product.class
(ii)ProductClient.class
After this i have placed download in public_html and started the JWS.Then started a new shell, uset the classpath then start rmiregistry.
Then i changed to the server & started the server with codebase=http://myserver:8080/download/
Then i changed to client & executed the client as security.policy option
I got a Transport marshal exception, nested exception EOFException.
Can any one pleaaaase explain me why.
(This is an example from core java book)
Thanx in advance
Note:- I have unset classpath using the following command
set classpath=;%classpath%;. Is this ok
------

[This message has been edited by clkanth (edited June 23, 2000).]
Milind Kulkarni
Ranch Hand

Joined: Jun 01, 2000
Posts: 146
Hi,
Can you please send me all the source files. Here is my mail id:
milindkulkarni@usa.net
Regards,
Milind
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Milind! I got the solution.But i have mailed asu have said my source files.The problem was i was writing in the client as
Naming.lookup("rmi://nist10:8080/xx");
Ihave omitted :8080 and it worked fine. I did this silly thing(writing :8080, Idid this while setting the codebase property,so thaught that i should do it the client program also) b'cause i thaught i should mention the port of the JWS. I was wrong.I removed it everything worked fine.
Dont bother my attachment.
Thank you very much for responding for my silly query.
Hope u extend your cooperation in the future also
Thanx once again
Clkanth
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Marshaling & java.io.EOFException
 
Similar Threads
where to bind the remote object??
rmi deployment, confirm
UnMarshalException - Nested ClassNotFoundException
RMI Newbie needs help bad......
URLyBird - RMI dynamic class loading