java.net.BindException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • bind exception
    via by 696489,
  • when start in standalone/cluster way. The following error always occur: [main] 27-Apr 17:42:10,798 WARNING [DiscoveryGroupImpl] Could not bind to 238 .7.8.10 (IPv4 address); make sure your discovery group-address is of the same ty pe as the IP stack (IPv4 or IPv6). Ignoring discovery group-address, but this may lead to cross talking. 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:372) at java.net.MulticastSocket.<init>(MulticastSocket.java:147) at org.hornetq.core.cluster.impl.DiscoveryGroupImpl.start(DiscoveryGroup Impl.java:129) at org.hornetq.core.client.impl.ServerLocatorImpl.initialise(ServerLocat orImpl.java:370) at org.hornetq.core.client.impl.ServerLocatorImpl.start(ServerLocatorImp l.java:544) at org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.activate(C lusterConnectionImpl.java:707) at org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.start(Clus terConnectionImpl.java:385) at org.hornetq.core.server.cluster.impl.ClusterManagerImpl.start(Cluster ManagerImpl.java:205) at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(Hornet QServerImpl.java:1493) at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQSer verImpl.java:138) at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivat ion.run(HornetQServerImpl.java:1919) at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImp l.java:366) at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManag erImpl.java:269) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(Reflec tionUtils.java:59) at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke( ReflectMethodInfoImpl.java:150) at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethod JoinPoint.java:66) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$Joi npointDispatchWrapper.execute(KernelControllerContextAction.java:241) at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(Executio nWrapper.java:47) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis patchExecutionWrapper(KernelControllerContextAction.java:109) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis patchJoinPoint(KernelControllerContextAction.java:70) at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInte rnal(LifecycleAction.java:221) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction (InstallsAwareAction.java:54) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction (InstallsAwareAction.java:42) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim pleInstallAction(SimpleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins tall(AccessControllerContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install (AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra ctControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractContr oller.java:1631) at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra ctController.java:934) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr actController.java:1082) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr actController.java:984) at org.jboss.dependency.plugins.AbstractController.install(AbstractContr oller.java:774) at org.jboss.dependency.plugins.AbstractController.install(AbstractContr oller.java:540) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean (AbstractKernelDeployer.java:319) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean s(AbstractKernelDeployer.java:297) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs tractKernelDeployer.java:130) at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXM LDeployer.java:96) at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(Horne tQBootstrapServer.java:236) at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(Horne tQBootstrapServer.java:206) at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(Ho rnetQBootstrapServer.java:155) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBoot strap.java:83) at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQB ootstrapServer.java:116) at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQ BootstrapServer.java:73) * [main] 27-Apr 17:42:10,854 INFO [NettyAcceptor] Started Netty Acceptor versio n 3.2.5.Final-a96d88c 10.10.224.14:5445 for CORE protocol my hornetq-configuration.xml is the following: <broadcast-groups> <broadcast-group name="h-broadcast-group"> <local-bind-address>10.10.224.13</local-bind-address> <local-bind-port>5432</local-bind-port> <group-address>238.7.8.10</group-address> <group-port>9878</group-port> <broadcast-period>5000</broadcast-period> <connector-ref>netty</connector-ref> </broadcast-group> </broadcast-groups> <discovery-groups> <discovery-group name="h-discovery-group"> <local-bind-address>10.10.224.13</local-bind-address> <group-address>238.7.8.10</group-address> <group-port>9878</group-port> <refresh-timeout>10000</refresh-timeout> </discovery-group> </discovery-groups> ........ <queues> <queue name="queue.exampleQueue"> <address>queue.exampleQueue</address> <durable>true</durable> </queue> <queue name="queue.recmdItemsqueue"> <address>queue.recmdItemsqueue</address> <durable>true</durable> </queue> <queue name="queue.feedbackqueue"> <address>queue.feedbackqueue</address> <durable>true</durable> </queue> </queues> <address-settings> <!--default for catch all--> <address-setting match="#"> <dead-letter-address>jms.queue.DLQ</dead-letter-address> <expiry-address>jms.queue.ExpiryQueue</expiry-address> <redelivery-delay>5000</redelivery-delay> <max-size-bytes>104857600</max-size-bytes> <page-size-bytes>10485760</page-size-bytes> <message-counter-history-day-limit>10</message-counter-history-day-limit> <address-full-policy>PAGE</address-full-policy> </address-setting> </address-settings> the other server's hornetq-configration.xml is : <broadcast-groups> <broadcast-group name="h-broadcast-group"> <local-bind-address>10.10.224.14</local-bind-address> <local-bind-port>5432</local-bind-port> <group-address>238.7.8.10</group-address> <group-port>9878</group-port> <broadcast-period>5000</broadcast-period> <connector-ref>netty</connector-ref> </broadcast-group> </broadcast-groups> <discovery-groups> <discovery-group name="h-discovery-group"> <local-bind-address>10.10.224.14</local-bind-address> <group-address>238.7.8.10</group-address> <group-port>9878</group-port> <refresh-timeout>10000</refresh-timeout> </discovery-group> </discovery-groups> ....... <address-settings> <!--default for catch all--> <address-setting match="#"> <dead-letter-address>jms.queue.DLQ</dead-letter-address> <expiry-address>jms.queue.ExpiryQueue</expiry-address> <redelivery-delay>5000</redelivery-delay> <max-size-bytes>104857600</max-size-bytes> <page-size-bytes>10485760</page-size-bytes> <message-counter-history-day-limit>10</message-counter-history-day-limit> <address-full-policy>PAGE</address-full-policy> </address-setting> </address-settings> and the configuration not mentioned is default. That's all related, other modification is about run.sh,I think it does not affect this. Besides, the version 2.2.5 can work properly with this configuration.
    via by francisco lv,
  • JGroups / Mailing Lists
    via by Unknown author,
  • different jmx name
    via GitHub by hazelcast
    ,
    • java.net.BindException: Address already in use: Cannot bind at java.net.PlainDatagramSocketImpl.bind0(Native Method)

    Users with the same issue

    PKeidel
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,