Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.rmi.ConnectException: Connection refused to host (but telnet success)

843793Jan 26 2010 — edited Jan 26 2010
Hi everyone.

I have two computers directly connect with a cable.

The xx.xx.xx.119 computer (Windows Vista) is the server where I bind my object.
The xx.xx.xx.120 computer (Windows XP) is the client which try to get the remote object.

When the client try to get the remote object with
Naming.lookup("rmi://xx.xx.xx.119:1099/MyObject")
I get this error :
java.rmi.ConnectException: Connection refused to host: xx.xx.xx.120; nested exception is:
        java.net.ConnectException: Connection refused: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
        at sun.rmi.server.UnicastRef.newCall(Unknown Source)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at java.rmi.Naming.lookup(Unknown Source)
I have no securityManager

Ping xx.xx.xx.119 is ok
Telnet xx.xx.xx.119 1099 : connect ok

I don't understand why the address noticed in the error message is the client address and not the server address.

Have you an idea ? A link ?

Thanks

Rémi,
(Sorry for my English)

Comments

Alex Keh-Oracle
Answer

You can limit the length of your identifiers by setting the RelationalModelAnnotations.MaxIdentifierLength property. The documentation that is part of the EF Core beta has more info on how to use this property.

Marked as Answer by 18d56f16-5b80-4617-bffb-d3ebc1d4e94b · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 23 2010
Added on Jan 26 2010
6 comments
3,699 views