File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes RMI problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "RMI problem" Watch "RMI problem" New topic
Author

RMI problem

Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

i'm unable to start my server Implementation , i got the following Exception


[Thumbnail for Screenshot.png]

Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290




Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40


I don't think spaces are allowed in a URL/URI. You will need to encode it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

why spaces aren't allowed??
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

Arun Giridharan wrote:why spaces aren't allowed??


Don't know. It has been that way -- for as long as I can remember. Maybe you can do some research and report back here.

Henry
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

Of Course ,if i come to know...Thank You.
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

Arun Giridharan wrote:why spaces aren't allowed??


This articlehas an answer. But, I am not 100% clear. That answer can be described in more detail - can someone do that ? (The why, how etc)






SCJP 6. Learning more now.
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

i got the following error , what's wrong
jayakannan-945GZM-S2 bin # java MyRemoteImpl
java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at MyRemoteImpl.main(MyRemoteImpl.java:19)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 6 more
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14273
    
  21

Is "127.0.1.1" a typo? Should that not have been "127.0.0.1"?

"Connection refused' means that there is nothing at the address you're trying to connect to that is waiting to accept a connection.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI problem