From owner-freebsd-eclipse@FreeBSD.ORG Thu Apr 19 22:23:41 2012 Return-Path: Delivered-To: freebsd-eclipse@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFF2D106566B for ; Thu, 19 Apr 2012 22:23:41 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 11E718FC17 for ; Thu, 19 Apr 2012 22:23:40 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id BAA04825; Fri, 20 Apr 2012 01:23:22 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1SKzl4-0001DF-2R; Fri, 20 Apr 2012 01:23:22 +0300 Message-ID: <4F909057.5020809@FreeBSD.org> Date: Fri, 20 Apr 2012 01:23:19 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120317 Thunderbird/10.0.3 MIME-Version: 1.0 To: Greg Lewis References: <1334784090.2063.2.camel@hood.oook.cz> <20120419022722.GA16464@jmobile.jimmy.local> <20120419185122.GA21679@misty.eyesbeyond.com> In-Reply-To: <20120419185122.GA21679@misty.eyesbeyond.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-eclipse@FreeBSD.org Subject: Re: [Fwd: eclipse-3.6.2 failed on amd64 9] X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 22:23:41 -0000 on 19/04/2012 21:51 Greg Lewis said the following: > On Wed, Apr 18, 2012 at 09:27:22PM -0500, Jimmy wrote: >> I'm seeing the same error (NullPointerException in com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:679)) while >> RUNNING eclipse-3.6.2 on 9.0-STABLE i386. >> >> It appears that the latest update to openjdk6 has somehow messed up the timezone info... > > I'm looking into this. The weird thing I've seen so far is that a > test class that calls the same API works without any problems. Not sure > why this only happens to Eclipse. Just in case. I am also running into the problem with eclipse, icu, time zone and the latest openjdk6 from ports. More specifically: Caused by: java.lang.NullPointerException at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:747) at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:535) at java.util.TimeZone.getAvailableIDs(TimeZone.java:516) at com.ibm.icu.impl.JavaTimeZone.(JavaTimeZone.java:37) And, as you say, a test program that directly calls java.util.TimeZone.getAvailableIDs also succeeds here. A workaround from this forum thread works for me: http://www.eclipse.org/forums/index.php?t=msg&goto=488654 A wild guess: maybe the issue is caused by the custom class loading in eclipse/osgi and static variables in sun.util.calendar.* classes are not properly initialized before the classes are used. The guess is based purely on for com.ibm.icu.impl.JavaTimeZone. -- Andriy Gapon