[jboss-jira] [JBoss JIRA] (JGRP-1845) Null pointer exception in Samsung Q1 using 3G connection
Denis Lamela (JIRA)
issues at jboss.org
Fri Jun 13 09:20:38 EDT 2014
[ https://issues.jboss.org/browse/JGRP-1845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Lamela reopened JGRP-1845:
--------------------------------
Hello Bela Ban,
I was testing your solution in a Samsung Q1 and it still fails. The exception occurs inside getInterfaceAddresses() so you must catch NPE in method call:
if (i.isUp()) {
List<InterfaceAddress> inet_addrs = null;
try {
inet_addrs = i.getInterfaceAddresses();
} catch (Exception e) {
System.out.println("JVM Bug catched");
}
if ((inet_addrs != null) && !inet_addrs.isEmpty()) { // fix for VM crash - suggested by JJalenak at netopia.com
s.joinGroup(group_addr, i);
this.log.trace("joined %s on %s", group_addr, i.getName());
}
}
Best regards
> 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
> Security Level: Public(Everyone can see)
> 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.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list