]
Denis Lamela commented on JGRP-1845:
------------------------------------
Hello Bela Ban, I saw your solution in the source code. Thank you.
The problem occurs in JDK 6 and 7. The stack trace is:
java.lang.NullPointerException
at java.net.NetworkInterface.getInterfaceAddresses(Unknown Source)
at org.jgroups.stack.DiagnosticsHandler.bindToInterfaces(DiagnosticsHandler.java:211)
at org.jgroups.stack.DiagnosticsHandler.start(DiagnosticsHandler.java:87)
at org.jgroups.protocols.TP.start(TP.java:1210)
at org.jgroups.protocols.TCP.start(TCP.java:82)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:952)
at org.jgroups.JChannel.startStack(JChannel.java:864)
at org.jgroups.JChannel._preConnect(JChannel.java:527)
at org.jgroups.JChannel.connect(JChannel.java:284)
at org.jgroups.JChannel.connect(JChannel.java:275)
Null pointer exception in Samsung Q1 using 3G connection
--------------------------------------------------------
Key: JGRP-1845
URL:
https://issues.jboss.org/browse/JGRP-1845
Project: JGroups
Issue Type: Bug
Affects Versions: 3.1, 3.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8,
3.2.9, 3.2.10, 3.2.12, 3.2.13, 3.3, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.4, 3.4.1, 3.4.2,
3.4.3, 3.4.4
Environment: Samsung Q1 with Windows XP Tablet Edition and 3G connection. Java 6
or Java 7.
Reporter: Denis Lamela
Assignee: Bela Ban
Priority: Minor
Fix For: 3.3.6, 3.4.5, 3.5
Original Estimate: 1 hour
Remaining Estimate: 1 hour
Null pointer exception in method "bindToInterfaces" of class
"org.jgroups.stack.DiagnosticsHandler". The exception is thrown while executing
"i.getInterfaceAddresses().isEmpty()". "i.getInterfaceAddresses()"
returns null.
This bug can be fixed checking if "i.getInterfaceAddresses()" returns null.