My Oracle Support Banner

Java.Net.BindException: Address Already In Use While Starting Oc4j Process (Doc ID 786992.1)

Last updated on JUNE 22, 2018

Applies to:

Oracle Containers for J2EE - Version 10.1.3.1.0 and later
Information in this document applies to any platform.

Symptoms

When recovering from a process failure for an OPMN managed OC4J process, it was not possible for OPMN to restart the OC4J instance.  opmnctl status will show the process as being down and attempts to start it up will fail.

Reported in the OPMN log file is the following message :-

ERROR 01.03.09 23:01:43 [cz.itsys.gtsrps.view.listener.BootstrapLoader 172] rps_viewcontroler - contextInitialized error Port already in use: 3251; nested exception is:
        java.net.BindException: Address already in use
java.rmi.server.ExportException: Port already in use: 3251; nested exception is:
        java.net.BindException: Address already in use

Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:622)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:231)

09/03/01 23:01:45 WARNING: OC4J will not send ONS ProcReadyPort messages to opmn for service: OC4JServiceInfo id: null protocol: jms hostname: null port: 12604 description: null
09/03/01 23:01:45 null hostname was null
09/03/01 23:01:45 Oracle Containers for J2EE 10g (10.1.3.3.0)  initialized

Changes

 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.