OVD Instance Restart Fails with Error "java.net.BindException: The socket name is already in use" (Doc ID 2151368.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Virtual Directory - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

OVD 11g
Unable to start OVD service after it was shutdown
OVD diagnostic log shows the error "java.net.BindException: The socket name is already in use"

 

The stack that shows the shutdown scenario and the startup errors

[2016-06-14T15:53:59.038+08:00] [octetstring] [NOTIFICATION] [OVD-20052] [com.octetstring.vde.VDEServer] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Oracle Virtual Directory Server is shutting down.
[2016-06-14T15:53:59.103+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 773] [ecid: 0000LLDtlczAhK9_Vd0Fyc1N1Vvx001Eiz,0] Message: Stopping Acceptor [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8899]] 1465890839103
[2016-06-14T15:53:59.150+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Message: Stopped SocketListener on 0.0.0.0:8899 1465890839150
[2016-06-14T15:53:59.150+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Message: Stopped WebApplicationContext[/dsmlv2,Octet String DSMLv2 Administrator Gateway] 1465890839150
[2016-06-14T15:53:59.151+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Message: Stopped WebApplicationContext[/,Apache-Axis] 1465890839151
[2016-06-14T15:53:59.151+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Message: Stopped org.mortbay.jetty.Server@23082308 1465890839151
[2016-06-14T15:53:59.151+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Could not send disconnect notice:
[2016-06-14T15:53:59.182+08:00] [octetstring] [NOTIFICATION] [OVD-20075] [com.octetstring.vde.VDEServer] [tid: 772] [ecid: 0000LLDtlbyAhK9_Vd0Fyc1N1Vvx001Eiy,0] Oracle Virtual Directory Server is stopped.
[2016-06-14T16:22:16.208+08:00] [octetstring] [NOTIFICATION] [OVD-20176] [com.octetstring.vde.VDEServer] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Oracle Virtual Directory 11.1.1.7.0.
[2016-06-14T16:22:16.320+08:00] [octetstring] [NOTIFICATION] [OVD-20177] [com.octetstring.vde.VDEServer] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Copyright (c) 2000,2011 Oracle. All Rights Reserved.
[2016-06-14T16:22:17.190+08:00] [octetstring] [NOTIFICATION] [OVD-20001] [com.octetstring.vde.VDEServer] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Oracle Virtual Directory Server starting up.

........................

........................

[2016-06-14T16:22:23.880+08:00] [octetstring] [NOTIFICATION] [OVD-20048] [com.octetstring.vde.DoSManager] [tid: 2] [ecid: 0000LLE0Hq8AhK9_Vd0Fyc1NNvus000003,0] Denial of Service monitor DISABLED.
[2016-06-14T16:22:24.110+08:00] [octetstring] [NOTIFICATION] [] [com.octetstring.vde.frontend.LDAP] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Listening on Port=7,501 Mode=Blocking
[2016-06-14T16:22:24.112+08:00] [octetstring] [NOTIFICATION] [OVD-20203] [com.octetstring.vde.frontend.LDAP] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Port allocated for LDAP SSL Endpoint:LDAP.
[2016-06-14T16:22:24.154+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Message: JsseListener.needClientAuth=false 1465892544154
[2016-06-14T16:22:24.158+08:00] [octetstring] [NOTIFICATION] [OVD-20203] [com.octetstring.vde.frontend.SocketListener] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Port allocated for Admin Gateway:ADMIN.
[2016-06-14T16:22:24.163+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: 3] [ecid: 0000LLE0HuZAhK9_Vd0Fyc1NNvus000004,0] Message: Starting Jetty/4.2.27 1465892544163
[2016-06-14T16:22:24.191+08:00] [octetstring] [ERROR] [OVD-60216] [com.octetstring.vde.VDEServer] [tid: 0] [ecid: 0000LLE0FzlAhK9_Vd0Fyc1NNvus000001,0] Cannot start Oracle Virtual Directory server: The socket name is already in use..[[
java.net.BindException: The socket name is already in use.
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:156)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:71)
at com.octetstring.vde.frontend.LDAP.doAllocatePort(LDAP.java:238)
at com.octetstring.vde.frontend.LDAP.startListener(LDAP.java:497)
at com.octetstring.vde.frontend.ListenerHandler.addListener(ListenerHandler.java:100)
at com.octetstring.vde.frontend.ListenerHandler.init(ListenerHandler.java:91)
at com.octetstring.vde.VDEServer.startServer(VDEServer.java:183)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms