ingrid.yao@Eng 2001-06-14
J2SE Version (please include all output from java -version flag):
Java 2 Standard Edition, v 1.4.0 build 65 (beta)
Does this problem occur on J2SE 1.3? Yes / No (pick one)
No.
Operating System Configuration Information (be specific):
SuSE 7.1
Hardware Configuration Information (be specific):
Bug Description:
java.rmi.ConnctIOException occurs (picture exception.gif). Attached files:
- RmiServer.java
- RmiClient.java
- RmiIf.java
- exception.gif
Steps to Reproduce (be specific):
1. Place RmiServer.java and RmiIf.java (and RmiClient.java) to same folder.
2. Add suitable .policy-file to the folder.
3. Add the .policy-file to the java.security file.
4. Define right IPv6 address (RmiClient.java row 16) and save.
5. Do:
javac RmiServer.java
rmic RmiServer
java RmiServer
javac RmiClient.java
java RmiClient
Exception throw:
====================
RmiClient 7001
Message: blank
RmiClient exception: Exception creating connection to: fe80::201:3ff:fe1a:a655;
nested exception is:
java.net.SocketException: errno: 22, error: Invalid argument for fd: 5
java.rmi.ConnectIOException: Exception creating connection to: fe80::201:3ff:fe1a:a655; nested exception is:
java.net.SocketException: errno: 22, error: Invalid argument for fd: 5
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:520)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:184)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:170)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:316)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:86)
at RmiClient.main(RmiClient.java:16)
Caused by: java.net.SocketException: errno: 22, error: Invalid argument for fd: 5
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:292)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:158)
at java.net.PlainSocketImpl.ocket.java:391)
at java.net.Socket.connect(Socket.java:349)
at java.net.Socket.<init>(Socket.java:285)
at java.net.Socket.<init>(Socket.java:113)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFacto
ry.java:25)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFacto
ry.java:125)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:502)
... 6 more
Message: blank