"java.net.BindException: Cannot assign requested address" in Oracle Container for J2EE 10.1.3.1 (Doc ID 779343.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version 10.1.3.1.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 12-Nov-2012***

Symptoms

In an Oracle Container for J2EE (OC4J) 10.1.3.1 clustered environment , the following errors are reported in the OC4J log occurring regularly with specific operations:


WARNING: EJBContainer.initReplicationService Error initialize replication
serviceorg.jgroups.ChannelException: failed to start protocol stack
at org.jgroups.JChannel.connect(JChannel.java:394)
at com.oracle.jgroups.ChannelAdapter.start(ChannelAdapter.java:152)
at com.oracle.jgroups.AbstractGroup.start(AbstractGroup.java:131)
at com.oracle.bricks.SessionManagerFactory.getManager(SessionManagerFactory.java:139)
at com.oracle.bricks.SessionManagerFactory.create(SessionManagerFactory.java:112)
at com.oracle.bricks.SessionManagerFactory.create(SessionManagerFactory.java:101)
at com.evermind.server.ejb.JGroupEJBService.<init>(JGroupEJBService.java:63)
at com.evermind.server.ejb.EJBContainer.initReplicationService(EJBContainer.java:124)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:273)
at com.evermind.server.Application.setConfig(Application.java:454)
at com.evermind.server.Application.setConfig(Application.java:355)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
at java.lang.Thread.run(Thread.java:595)

Caused by: java.lang.Exception: exception caused by UDP.start()
at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:600)
at org.jgroups.stack.DownHandler.run(Protocol.java:118)

Caused by: java.lang.Exception: problem creating sockets
(bind_addr=/fe80:0:0:0:217:a4ff:fe8f:40c8%2, mcast_addr=null)
at org.jgroups.protocols.UDP.start(UDP.java:381)
at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:589)
... 1 more

Caused by: java.net.BindException: Cannot assign requested address
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
at java.net.DatagramSocket.bind(DatagramSocket.java:368)
at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
at org.jgroups.protocols.UDP.createEphemeralDatagramSocket(UDP.java:581)
at org.jgroups.protocols.UDP.createSockets(UDP.java:445)
at org.jgroups.protocols.UDP.start(UDP.java:376)
... 2 more








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