]
Brian Stansberry reassigned AS7-3223:
-------------------------------------
Assignee: Tomaz Cerar (was: Brian Stansberry)
Tomaz, an AS codebase search for InetAddress.getLocalHost() shows this call showing up in
a number of places besides ServerEnvironment.
Protect against ArrayIndexOutOfBoundsException when calling
InetAddress.getLocalHost
------------------------------------------------------------------------------------
Key: AS7-3223
URL:
https://issues.jboss.org/browse/AS7-3223
Project: Application Server 7
Issue Type: Bug
Components: Server
Affects Versions: 7.1.0.CR1b
Reporter: Galder ZamarreƱo
Assignee: Tomaz Cerar
Fix For: 7.1.0.Final
Can we please implement the equivalent of JGRP-1404 in AS7?
Otherwise, when you start offline (under some circumstances), you get:
{code}13:40:28,370 ERROR [stderr] java.lang.ArrayIndexOutOfBoundsException: 0
13:40:28,371 ERROR [stderr] at java.net.InetAddress.getLocalHost(InetAddress.java:1356)
13:40:28,371 ERROR [stderr] at
org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:223)
13:40:28,371 ERROR [stderr] at
org.jboss.as.server.Main.determineEnvironment(Main.java:219)
13:40:28,371 ERROR [stderr] at org.jboss.as.server.Main.main(Main.java:98)
13:40:28,372 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
13:40:28,372 ERROR [stderr] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
13:40:28,372 ERROR [stderr] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:40:28,372 ERROR [stderr] at java.lang.reflect.Method.invoke(Method.java:597)
13:40:28,372 ERROR [stderr] at org.jboss.modules.Module.run(Module.java:272)
13:40:28,373 ERROR [stderr] at org.jboss.modules.Main.main(Main.java:313)
{code}
I tried this with 7.0.2, so the lines might be diff in latest but I see ServerEnvironment
still uses it:
https://github.com/galderz/jboss-as/blob/master/server/src/main/java/org/...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: