[
http://jira.jboss.com/jira/browse/JBREM-936?page=comments#action_12408369 ]
Ron Sigal commented on JBREM-936:
---------------------------------
org.jboss.remoting.InvokerLocator.resolveHost() tests explicitly for host == null.
Testing: Added testNullHost() to org.jboss.test.remoting.locator.InvokerLocatorTestCase.
CLONE [JBREM-915] - NullPointerException in InvokerLocator
-----------------------------------------------------------
Key: JBREM-936
URL:
http://jira.jboss.com/jira/browse/JBREM-936
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jmx remoting
Affects Versions: 2.4.0.CR1 (Pinto)
Environment: JBEAP 4.3 (JBoss Remoting 2.2.2 SP4)
Windows 2000
Reporter: Matthew Brasier
Assigned To: Ron Sigal
Priority: Minor
Fix For: 2.4.0.GA
A NullPointerException is thrown by InvokerLocator.resolveHost if a null host is passed
in. (Line 333 of InvokerLocator.java for the 2.2.2SP4 tag)
This was observed when running JBEAP 4.3 on a laptop that has a VPN client installed.
JBoss was configured to bind to all interfaces (-b0.0.0.0) and iIt appears that this
configuration results in a null host being passed to resolveHost. resolveHost then does a
host.indexOf("0.0.0.0") which throws the NPE.
On the laptop in question, this can be worked around by explicitly binding the the
required IP address, rather than binding to all, but the code should handle the case where
a null host is passed in more gracefully.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira