Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3223

Protect against ArrayIndexOutOfBoundsException when calling InetAddress.getLocalHost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • 7.1.0.CR1b
    • Server
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              tomazcerar Tomaž Cerar (Inactive)
              rh-ee-galder Galder Zamarreño
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: