Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 93612 invoked from network); 15 Feb 2010 19:48:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2010 19:48:35 -0000 Received: (qmail 75211 invoked by uid 500); 15 Feb 2010 08:41:55 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 75173 invoked by uid 500); 15 Feb 2010 08:41:55 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 75163 invoked by uid 99); 15 Feb 2010 08:41:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 08:41:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.86.168.182] (HELO mxout-07.mxes.net) (216.86.168.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 08:41:45 +0000 Received: from fg-out-1718.google.com (unknown [72.14.220.155]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 0AAAC22E254 for ; Mon, 15 Feb 2010 03:41:23 -0500 (EST) Received: by fg-out-1718.google.com with SMTP id 19so60540fgg.0 for ; Mon, 15 Feb 2010 00:41:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.122.31 with SMTP id z31mr3502039mum.136.1266223282513; Mon, 15 Feb 2010 00:41:22 -0800 (PST) X-Originating-IP: [217.71.242.188] In-Reply-To: <4B7878E0.6020206@trialox.org> References: <4B782FCD.20309@trialox.org> <4B78475D.7050608@trialox.org> <4B7878E0.6020206@trialox.org> Date: Mon, 15 Feb 2010 09:41:22 +0100 Message-ID: Subject: =?UTF-8?Q?Re=3A_Confused_=28was_Re=3A_Hudson_build_became_unstable=3A_?= =?UTF-8?Q?clerezza=2Dtrunk=2D1=2E6_=C2=BB_Clerezza_=2D_SCB_Core_=23106=29?= From: Reto Bachmann-Gmuer To: hasan@trialox.org Cc: clerezza-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Could you explain briefly what's happening? I don't understand: 2 static initializers cause a problem, and 3 do not? Was the non-static initializer executed before the static one? that seems weird. Cheers, reto On Sun, Feb 14, 2010 at 11:27 PM, Hasan wrote: > I created issue ZZ-125 and solved it by making typeConverterMap static. > > hasan > > Reto Bachmann-Gmuer wrote: >> >> Thanks Hasan, this makes things clearer! >> >> It seems its a problem with the two static initializers, apparently >> only the first of them is executed when running all tests together, >> then we have a Null key in the HashMap. Very Strange behaviour, the >> compile doesn't complain about two static initializers, but at runtime >> sometimes one is left out. >> >> Cheers, >> reto >> >> On Sun, Feb 14, 2010 at 7:56 PM, Hasan wrote: >> >>> >>> ok, it seems the problem lies in this line >>> >>> =C2=A0 =C2=A0 =C2=A0typeConverterMap.put(byteArrayType, new ByteArrayCo= nverter()); >>> >>> if you comment out this line and the respective test >>> it will build without error. >>> but what's wrong with that line? >>> >>> hasan >>> >>> Hasan wrote: >>> >>>> >>>> Hmmm... weird.... the individual tests are ok... >>>> i debug the test, but can't find errors yet >>>> >>>> hasan >>>> >>>> Reto Bachmann-Gmuer wrote: >>>> >>>>> >>>>> I'm not getting it: >>>>> >>>>> java.lang.NullPointerException at >>>>> >>>>> >>>>> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory.createTypedLit= eral(SimpleLiteralFactory.java:229) >>>>> >>>>> I'm seeing that exception only when running the tests on the whole >>>>> projects, not when running the individual test files. >>>>> >>>>> the exception is >>>>> >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0//added this to make = sue value is not null >>>>> =C2=A0 =C2=A0 =C2=A0 if (value =3D=3D null) { >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 throw new IllegalArgumentException= ("value may not be null"); >>>>> =C2=A0 =C2=A0 =C2=A0 } >>>>> =C2=A0 =C2=A0 =C2=A0 for (Map.Entry, TypeConverter> conve= rterEntry : >>>>> typeConverterMap.entrySet()) { >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if >>>>> (converterEntry.getKey().isAssignableFrom(value.getClass())) { >>>>> // <-ON THIS LINE >>>>> >>>>> maybe I'm just to tired, would be glad if somebody had a look at it. >>>>> >>>>> reto >>>>> >>>>> On Sat, Feb 13, 2010 at 6:08 PM, Apache Hudson Server >>>>> wrote: >>>>> >>>>> >>>>>> >>>>>> See >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>> >>> -- >>> =C2=A0Hasan Hasan >>> =C2=A0trialox AG >>> =C2=A0Binzm=C3=BChlestrasse 14, CH-8050 Z=C3=BCrich >>> =C2=A0Tel: +41 44 635 7577 >>> =C2=A0Fax: +41 44 635 7574 >>> =C2=A0URL: http://trialox.org >>> >>> >>> > > -- > =C2=A0Hasan Hasan > =C2=A0trialox AG > =C2=A0Binzm=C3=BChlestrasse 14, CH-8050 Z=C3=BCrich > =C2=A0Tel: +41 44 635 7577 > =C2=A0Fax: +41 44 635 7574 > =C2=A0URL: http://trialox.org > >