error: address not bound to any inter

404 views
Skip to first unread message

vcekv...@gmail.com

unread,
Oct 9, 2008, 1:02:03 PM10/9/08
to Hazelcast
Just using simple map from example w/ no changes I get error, help?
tia, .V

java.net.SocketException: bad argument for IP_MULTICAST_IF: address
not bound to any interface

at java.net.PlainDatagramSocketImpl.socketSetOption(Native
Method)
at
java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:
299)
at java.net.MulticastSocket.setInterface(MulticastSocket.java:
420)
at com.hazelcast.impl.Node.init(Node.java:128)
at com.hazelcast.impl.Node.start(Node.java:151)
at com.hazelcast.impl.FactoryImpl.init(FactoryImpl.java:65)
at com.hazelcast.impl.FactoryImpl.getProxy(FactoryImpl.java:
136)
at com.hazelcast.impl.FactoryImpl.getMap(FactoryImpl.java:98)
at com.hazelcast.core.Hazelcast.getMap(Hazelcast.java:28)

Talip Ozturk

unread,
Oct 9, 2008, 1:17:31 PM10/9/08
to haze...@googlegroups.com
Hi Vic,

The error you are getting telling us that the network interface
Hazelcast is picking doesn't support Multicast.

1. Tell me what IP address Hazelcast picks... When Hazelcast starts up
it should print out something like
"Hazelcast 1.2 (2008) starting at Address{ip='192.168.1.2', port=5701}"
Can you send me this line? What is the IP and the port you have there?

2. On that windows machine, on a DOS prompt can you please type "route
PRINT" and send me the output.. this will tell us which network
interface has multicast routing if any.

3. Again on a DOS prompt can you send me the output of "ipconfig" to
see the known IP addresses.

thanks,
-talip

vcekv...@gmail.com

unread,
Oct 9, 2008, 1:41:06 PM10/9/08
to Hazelcast
Thx for a quick replay.

#1. It never does output anything.
However, this is when I run it in Tomcat war (on login of a user, I
add something to the distributed map).
If I unit test in eclipse or dos, the code works great.
Same code (add to the map) outputs the error when running in tomcat.
I think that's key.

2&3: When It runs in dos (outside of tomcat) it says:
Members [2] {
Member [192.168.20.18:5701]
Member [192.168.20.18:5702] this
}
And then it works fine (again, same code in tomcat never outputs
anything).
And here is other:
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
d:\>route PRINT
===========================================================================
Interface List
8 ...00 1a a0 c7 14 b3 ...... Intel(R) 82566DM-2 Gigabit Network
Connection
1 ........................... Software Loopback Interface 1
10 ...00 00 00 00 00 00 00 e0 isatap.{7F9DB314-568F-45C8-
ABD1-1CA8DBC6C402}
9 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.20.1
192.168.20.18 25
127.0.0.0 255.0.0.0 On-link
127.0.0.1 306
127.0.0.1 255.255.255.255 On-link
127.0.0.1 306
127.255.255.255 255.255.255.255 On-link
127.0.0.1 306
192.168.20.0 255.255.255.0 On-link
192.168.20.18 281
192.168.20.18 255.255.255.255 On-link
192.168.20.18 281
192.168.20.255 255.255.255.255 On-link
192.168.20.18 281
224.0.0.0 240.0.0.0 On-link
127.0.0.1 306
224.0.0.0 240.0.0.0 On-link
192.168.20.18 281
255.255.255.255 255.255.255.255 On-link
127.0.0.1 306
255.255.255.255 255.255.255.255 On-link
192.168.20.18 281
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
8 281 fe80::/64 On-link
8 281 fe80::80b9:5fc3:ef53:7994/128
On-link
1 306 ff00::/8 On-link
8 281 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
d:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::80b9:5fc3:ef53:7994%8
IPv4 Address. . . . . . . . . . . : 192.168.20.18
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.20.1
Tunnel adapter Local Area Connection* 6:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Local Area Connection* 7:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

tia,
.V


On Oct 9, 10:17 am, "Talip Ozturk" <ozta...@gmail.com> wrote:
> Hi Vic,
>
> The error you are getting telling us that the network interface
> Hazelcast is picking doesn't support Multicast.
>
> 1. Tell me what IP address Hazelcast picks... When Hazelcast starts up
> it should print out something like
> "Hazelcast 1.2 (2008) starting at Address{ip='192.168.1.2', port=5701}"
> Can you send me this line? What is the IP and the port you have there?
>
> 2. On that windows machine, on a DOS prompt can you please type "route
> PRINT" and send me the output.. this will tell us which network
> interface has multicast routing if any.
>
> 3. Again on a DOS prompt can you send me the output of "ipconfig" to
> see the known IP addresses.
>
> thanks,
> -talip
>
> On Thu, Oct 9, 2008 at 8:02 PM, vcekven...@gmail.com

Talip Ozturk

unread,
Oct 9, 2008, 1:50:02 PM10/9/08
to haze...@googlegroups.com
what is the exact version of tomcat you are running? is there any
other application running on tomcat? what is the exact version of JVM?
I will try to reproduce the error on my machine. Also I will build a
new jar just for you and email you.

-talip

vcekv...@gmail.com

unread,
Oct 9, 2008, 1:57:12 PM10/9/08
to Hazelcast
Java 1.6_10 and tomcat 6.06.
There are no other apps, this is my local development enviroment. (but
the web app is large).

We plan then to test on QA and then deploy to our 10 app servers.

.V

On Oct 9, 10:50 am, "Talip Ozturk" <ozta...@gmail.com> wrote:
> what is the exact version of tomcat you are running? is there any
> other application running on tomcat? what is the exact version of JVM?
> I will try to reproduce the error on my machine. Also I will build a
> new jar just for you and email you.
>
> -talip
>
> On Thu, Oct 9, 2008 at 8:41 PM, vcekven...@gmail.com
Reply all
Reply to author
Forward
0 new messages