java.lang.ArrayIndexOutOfBoundsException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Environment: ColorCache sample application Java 1.6.0_24 Mac OS X 10.6.7 Error stacktrace: java.lang.ArrayIndexOutOfBoundsException: 0 at java.net.InetAddress.getLocalHost(InetAddress.java:1356) at com.tc.config.schema.dynamic.ParameterSubstituter.getIpAddress(ParameterSubstituter.java:173) at com.tc.config.schema.dynamic.ParameterSubstituter.substitute(ParameterSubstituter.java:52) at com.tc.object.config.schema.L2DSOConfigObject.initializeNameAndHost(L2DSOConfigObject.java:216) at com.tc.object.config.schema.L2DSOConfigObject.initializeServers(L2DSOConfigObject.java:135) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.getConfigFromSourceStream(StandardXMLFileConfigurationCreator.java:495) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigurationData(StandardXMLFileConfigurationCreator.java:405) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigDataFromSources(StandardXMLFileConfigurationCreator.java:218) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigAndSetIntoRepositories(StandardXMLFileConfigurationCreator.java:116) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.createConfigurationIntoRepositories(StandardXMLFileConfigurationCreator.java:98) at com.tc.config.schema.setup.BaseConfigurationSetupManager.runConfigurationCreator(BaseConfigurationSetupManager.java:122) at com.tc.config.schema.setup.L2ConfigurationSetupManagerImpl.<init>(L2ConfigurationSetupManagerImpl.java:112) at com.tc.config.schema.setup.StandardConfigurationSetupManagerFactory.createL2TVSConfigurationSetupManager(StandardConfigurationSetupManagerFactory.java:208) at com.tc.server.TCServerMain.main(TCServerMain.java:29) Steps to reproduce: 1. Add an alias to your localhost interface: sudo ifconfig lo0 alias 10.1.1.1 2. Turn AirPort Off: sudo ifconfig en1 down 3. Start the Sample Server: ehcache-2.4.2/samples/colorcache/bin/start-sample-server.sh
    via by Rein Raudjarv,
  • Environment: ColorCache sample application Java 1.6.0_24 Mac OS X 10.6.7 Error stacktrace: java.lang.ArrayIndexOutOfBoundsException: 0 at java.net.InetAddress.getLocalHost(InetAddress.java:1356) at com.tc.config.schema.dynamic.ParameterSubstituter.getIpAddress(ParameterSubstituter.java:173) at com.tc.config.schema.dynamic.ParameterSubstituter.substitute(ParameterSubstituter.java:52) at com.tc.object.config.schema.L2DSOConfigObject.initializeNameAndHost(L2DSOConfigObject.java:216) at com.tc.object.config.schema.L2DSOConfigObject.initializeServers(L2DSOConfigObject.java:135) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.getConfigFromSourceStream(StandardXMLFileConfigurationCreator.java:495) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigurationData(StandardXMLFileConfigurationCreator.java:405) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigDataFromSources(StandardXMLFileConfigurationCreator.java:218) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigAndSetIntoRepositories(StandardXMLFileConfigurationCreator.java:116) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.createConfigurationIntoRepositories(StandardXMLFileConfigurationCreator.java:98) at com.tc.config.schema.setup.BaseConfigurationSetupManager.runConfigurationCreator(BaseConfigurationSetupManager.java:122) at com.tc.config.schema.setup.L2ConfigurationSetupManagerImpl.<init>(L2ConfigurationSetupManagerImpl.java:112) at com.tc.config.schema.setup.StandardConfigurationSetupManagerFactory.createL2TVSConfigurationSetupManager(StandardConfigurationSetupManagerFactory.java:208) at com.tc.server.TCServerMain.main(TCServerMain.java:29) Steps to reproduce: 1. Add an alias to your localhost interface: sudo ifconfig lo0 alias 10.1.1.1 2. Turn AirPort Off: sudo ifconfig en1 down 3. Start the Sample Server: ehcache-2.4.2/samples/colorcache/bin/start-sample-server.sh
    via by Rein Raudjarv,
    • java.lang.ArrayIndexOutOfBoundsException: 0 at java.net.InetAddress.getLocalHost(InetAddress.java:1356) at com.tc.config.schema.dynamic.ParameterSubstituter.getIpAddress(ParameterSubstituter.java:173) at com.tc.config.schema.dynamic.ParameterSubstituter.substitute(ParameterSubstituter.java:52) at com.tc.object.config.schema.L2DSOConfigObject.initializeNameAndHost(L2DSOConfigObject.java:216) at com.tc.object.config.schema.L2DSOConfigObject.initializeServers(L2DSOConfigObject.java:135) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.getConfigFromSourceStream(StandardXMLFileConfigurationCreator.java:495) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigurationData(StandardXMLFileConfigurationCreator.java:405) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigDataFromSources(StandardXMLFileConfigurationCreator.java:218) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigAndSetIntoRepositories(StandardXMLFileConfigurationCreator.java:116) at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.createConfigurationIntoRepositories(StandardXMLFileConfigurationCreator.java:98) at com.tc.config.schema.setup.BaseConfigurationSetupManager.runConfigurationCreator(BaseConfigurationSetupManager.java:122) at com.tc.config.schema.setup.L2ConfigurationSetupManagerImpl.<init>(L2ConfigurationSetupManagerImpl.java:112) at com.tc.config.schema.setup.StandardConfigurationSetupManagerFactory.createL2TVSConfigurationSetupManager(StandardConfigurationSetupManagerFactory.java:208) at com.tc.server.TCServerMain.main(TCServerMain.java:29)
    No Bugmate found.