Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
5.0M9
-
None
-
None
-
Linux only
Description
JUnit test failure:
java.io.EOFException
at org.apache.harmony.rmi.common.SubProcess.expect(SubProcess.java:757)
at org.apache.harmony.rmi.common.SubProcess.expect(SubProcess.java:601)
at org.apache.harmony.rmi.common.SubProcess.expect(SubProcess.java:572)
at org.apache.harmony.rmi.common.SubProcess.expect(SubProcess.java:554)
at org.apache.harmony.rmi.ConnectionTest.testSingleVM(ConnectionTest.java:156)
at org.apache.harmony.rmi.ConnectionTest.testDirectHTTP_SingleVM(ConnectionTest.java:102)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
The following was written to the stderr:
testDirectHTTP_SingleVM starting
Test server started.
Object: MyRemoteObject[UnicastServerRef[endpoint:[[9.20.181.102:54504]](local), ObjID[65536, UID[29a7d899:12042e9daaa:-8000]]]] created and exported.
Test server closing.
Child process (child, 1) failed: java.rmi.server.ExportException: Unable to export object: port 1099 already in use; nested exception is:
java.net.BindException: The address is not available
at org.apache.harmony.rmi.remoteref.UnicastServerRef.exportObject(UnicastServerRef.java:351)
at org.apache.harmony.rmi.server.ExportManager.exportObject(ExportManager.java:149)
at org.apache.harmony.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:137)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:63)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:131)
at org.apache.harmony.rmi.ConnectionTest.initServer(ConnectionTest.java:175)
at org.apache.harmony.rmi.ConnectionTest.runTestSingle(ConnectionTest.java:372)
at org.apache.harmony.rmi.ConnectionTest.main(ConnectionTest.java:417)
Caused by: java.net.BindException: The address is not available
at org.apache.harmony.luni.platform.OSNetworkSystem.bind(OSNetworkSystem.java)
at org.apache.harmony.luni.net.PlainSocketImpl.bind(PlainSocketImpl.java:178)
at java.net.ServerSocket.<init>(ServerSocket.java:119)
at java.net.ServerSocket.<init>(ServerSocket.java:75)
at org.apache.harmony.rmi.transport.proxy.HttpServerSocket.<init>(HttpServerSocket.java:54)
at org.apache.harmony.rmi.transport.proxy.HttpProxyRMISocketFactory.createServerSocket(HttpProxyRMISocketFactory.java:112)
at org.apache.harmony.rmi.transport.DefaultRMISocketFactory.createServerSocket(DefaultRMISocketFactory.java:210)
at org.apache.harmony.rmi.transport.Endpoint.createServerSocket(Endpoint.java:151)
at org.apache.harmony.rmi.server.ServerConnectionManager.<init>(ServerConnectionManager.java:102)
at org.apache.harmony.rmi.server.ServerConnectionManager.getMgr(ServerConnectionManager.java:134)
at org.apache.harmony.rmi.remoteref.UnicastServerRef.exportObject(UnicastServerRef.java:346)
at org.apache.harmony.rmi.server.ExportManager.exportObject(ExportManager.java:149)
... 6 more
Attachments
Issue Links
- depends upon
-
HARMONY-6090 [classlib][luni] - the SO_REUSEADDR's default value of ServerSocket should be true on Linux
- Closed
-
HARMONY-6131 [classlib][luni] check for invalid socket before I/O operations
- Closed