-
Bug
-
Resolution: Fixed
-
P3
-
10, 11
-
b09
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8316157 | 8u401 | Abhishek N | P3 | Resolved | Fixed | b01 |
----------System.out:(2/90)----------
RegistryRunner.port.start:65162:RegistryRunner.port.end
Starting registry on port 65162
----------System.err:(157/11543)*----------
regression test for 4120329
JAVAVM: command = [C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk10-master.88\\windows-x64.jdk\\jdk-10\\bin\\java, -ea, -esa, -Xmx512m, -Djava.security.policy=C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk10-master.88\\src.full\\open\\test\\jdk\\java\\rmi\\registry\\reexport\\registry.security.policy, --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED, --add-exports=java.rmi/sun.rmi.server=ALL-UNNAMED, --add-exports=java.rmi/sun.rmi.transport=ALL-UNNAMED, --add-exports=java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED, RegistryRunner, 0]
registry is running at port: 65162
Creating duplicate registry, this should fail...
EXPECTING PORT IN USE EXCEPTION:
Port already in use: 65162; nested exception is:
java.net.BindException: Address already in use: NET_Bind
java.rmi.server.ExportException: Port already in use: 65162; nested exception is:
java.net.BindException: Address already in use: NET_Bind
at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234)
at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
at java.rmi/sun.rmi.registry.RegistryImpl.(RegistryImpl.java:205)
at java.rmi/java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:203)
at Reexport.createReg(Reexport.java:99)
at Reexport.main(Reexport.java:65)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.net.BindException: Address already in use: NET_Bind
at java.base/java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.base/java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:437)
at java.base/java.net.PlainSocketImpl.bind(PlainSocketImpl.java:174)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.(ServerSocket.java:243)
at java.base/java.net.ServerSocket.(ServerSocket.java:135)
at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324)
... 15 more
Bringing down the first registry
RegistryRunner.port.start:65162:RegistryRunner.port.end
Starting registry on port 65162
----------System.err:(157/11543)*----------
regression test for 4120329
JAVAVM: command = [C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk10-master.88\\windows-x64.jdk\\jdk-10\\bin\\java, -ea, -esa, -Xmx512m, -Djava.security.policy=C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk10-master.88\\src.full\\open\\test\\jdk\\java\\rmi\\registry\\reexport\\registry.security.policy, --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED, --add-exports=java.rmi/sun.rmi.server=ALL-UNNAMED, --add-exports=java.rmi/sun.rmi.transport=ALL-UNNAMED, --add-exports=java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED, RegistryRunner, 0]
registry is running at port: 65162
Creating duplicate registry, this should fail...
EXPECTING PORT IN USE EXCEPTION:
Port already in use: 65162; nested exception is:
java.net.BindException: Address already in use: NET_Bind
java.rmi.server.ExportException: Port already in use: 65162; nested exception is:
java.net.BindException: Address already in use: NET_Bind
at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234)
at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
at java.rmi/sun.rmi.registry.RegistryImpl.(RegistryImpl.java:205)
at java.rmi/java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:203)
at Reexport.createReg(Reexport.java:99)
at Reexport.main(Reexport.java:65)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.net.BindException: Address already in use: NET_Bind
at java.base/java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.base/java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:437)
at java.base/java.net.PlainSocketImpl.bind(PlainSocketImpl.java:174)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.(ServerSocket.java:243)
at java.base/java.net.ServerSocket.(ServerSocket.java:135)
at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324)
... 15 more
Bringing down the first registry
- backported by
-
JDK-8316157 java/rmi/registry/reexport/Reexport.java failed with Port already in use
- Resolved
- relates to
-
JDK-8025199 java/rmi/registry/reexport/Reexport.java failed with: Port already in use
- Resolved