my config is as follows:
<network>
<port auto-increment="true">5701</port>
<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true">
<interface>192.168.0.67</interface>
</tcp-ip>
</join>
<interfaces enabled="true">192.168.0.67</interfaces>
</network>
The error:
Oct 8, 2009 5:54:29 PM com.hazelcast.impl.AddressPicker pickAddress
SEVERE: Hazelcast CANNOT start on this node. No matching network
interface found.
Interface matching must be either disabled or updated in the
hazelcast.xml config file.
java.lang.NullPointerException
at com.hazelcast.impl.Node.init(Node.java:312)
at com.hazelcast.impl.Node.start(Node.java:363)
at com.hazelcast.impl.FactoryImpl.init(FactoryImpl.java:80)
at com.hazelcast.impl.FactoryImpl.initialChecks(FactoryImpl.java:232)
at com.hazelcast.impl.FactoryImpl.getProxy(FactoryImpl.java:222)
at com.hazelcast.impl.FactoryImpl.getProxyByName(FactoryImpl.java:216)
at com.hazelcast.impl.FactoryImpl.getTopic(FactoryImpl.java:191)
at com.hazelcast.core.Hazelcast.getTopic(Hazelcast.java:34)
.......................................................................
java.lang.NullPointerException
at com.hazelcast.impl.FactoryImpl.init(FactoryImpl.java:119)
at com.hazelcast.impl.FactoryImpl.initialChecks(FactoryImpl.java:232)
at com.hazelcast.impl.FactoryImpl.getProxy(FactoryImpl.java:222)
at com.hazelcast.impl.FactoryImpl.getProxyByName(FactoryImpl.java:216)
at com.hazelcast.impl.FactoryImpl.getTopic(FactoryImpl.java:191)
at com.hazelcast.core.Hazelcast.getTopic(Hazelcast.java:34)
.......................................................................
I'm not sure if this is a problem related to my computer, as far as I
can remember, this worked last week.
Do you think there is any way I can check if it'a a Hazelcast problem
or maybe a config problem on my server?
Please note that it does not work if I use any '*' combination for the
interface value, such as 192.168.0.* , 192.168.*.* , 192.*.*.* or even
*.*.*.* (is this even supposed to work?)
Also, if I remove the interface setting, it will pick '192.168.0.67'
as the starting address.
Some more things I am using
Hazelcast.version : 1.7
Hazelcast.build : 20090818
Ubuntu linux - os.version : 2.6.28-15-generic
java.runtime.version : 1.6.0_16-b01
java.vm.specification.vendor : Sun Microsystems Inc.
One more thing: as this fails, maybe it would be better to wrap the
NPE, and maybe shut down the client, right now it just hangs.
thanks,
alex
after a good night sleep I realized that my config file is not well formed
What I have here is <interfaces enabled="true">192.168.0.67</interfaces>,
when it actually should have been <interfaces
enabled="true"><interface>192.168.0.67</interface></interfaces>
I still keep my opinion on the NPE though
thanks,
alex