Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354820

Summary: Eclipse indigo would refuse to start when lo0 interface has assigned local ip address alias
Product: [Eclipse Project] Equinox Reporter: spalda2
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: philipp, remy.suen, tjwatson
Version: 3.7   
Target Milestone: Juno M3   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description spalda2 CLA 2011-08-16 08:48:22 EDT
after executing the following command:
ifconfig lo0 alias 172.16.123.1
eclipse would occasionally refuse to start with the log file copied below. Once it resused to start nothing really helps and the only cure seemed to be to remove that alias ip from local loopback.

-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.7.0.v20110520-0800-7z8gFchFMTdFYKuLqBLqRja9B15B
-- log file --
 !SESSION 2011-08-13 09:17:40.931 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/spalda2/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/spalda2/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 4 0 2011-08-13 09:17:41.225
!MESSAGE Startup error
!STACK 1
java.lang.ExceptionInInitializerError
	at org.eclipse.osgi.framework.internal.core.Framework.initializeProperties(Framework.java:377)
	at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:199)
	at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:161)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:261)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at java.net.InetAddress.getLocalHost(InetAddress.java:1356)
	at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.getIPAddress(UniversalUniqueIdentifier.java:146)
	at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.computeNodeAddress(UniversalUniqueIdentifier.java:113)
	at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.<clinit>(UniversalUniqueIdentifier.java:35)
	... 12 more
Comment 1 Thomas Watson CLA 2011-09-29 09:54:20 EDT
This appears to be a bug in the VM, but we should avoid crashing on startup if this happens.
Comment 3 John Arthorne CLA 2012-04-27 14:52:45 EDT
*** Bug 377960 has been marked as a duplicate of this bug. ***