-
Bug
-
Resolution: Done
-
Major
-
7.1.0.CR1b
-
None
Can we please implement the equivalent of JGRP-1404 in AS7?
Otherwise, when you start offline (under some circumstances), you get:
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)
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/jboss/as/server/ServerEnvironment.java#L272
- is related to
-
JGRP-1404 Protect against ArrayIndexOutOfBoundsException when calling InetAddress.getLocalHost
- Resolved