Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E3F9EEE0 for ; Tue, 15 Jan 2013 10:30:22 +0000 (UTC) Received: (qmail 78402 invoked by uid 500); 15 Jan 2013 10:30:22 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 78366 invoked by uid 500); 15 Jan 2013 10:30:22 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 78353 invoked by uid 99); 15 Jan 2013 10:30:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 10:30:22 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [109.72.87.138] (HELO smtp02.mail.pcextreme.nl) (109.72.87.138) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 10:30:16 +0000 Received: from [IPv6:2a00:f10:113:0:9959:8f12:2084:a538] (unknown [IPv6:2a00:f10:113:0:9959:8f12:2084:a538]) by smtp02.mail.pcextreme.nl (Postfix) with ESMTPSA id 9877143557 for ; Tue, 15 Jan 2013 11:29:56 +0100 (CET) Message-ID: <50F52FA4.9090407@widodh.nl> Date: Tue, 15 Jan 2013 11:29:56 +0100 From: Wido den Hollander User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: cloudstack-dev@incubator.apache.org Subject: Re: Random compile issue with ComponentLocator References: <50F42A09.6090304@widodh.nl>,<2A259005-9B73-4DBC-867C-0BE51E5290A5@citrix.com> <74D91FA3-3F95-4E04-A941-A243C89C7511@schubergphilis.com> In-Reply-To: <74D91FA3-3F95-4E04-A941-A243C89C7511@schubergphilis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 01/15/2013 10:44 AM, Hugo Trippaers wrote: > I still have no clue what is causing this. One thing I suspect is that it might be related to the version of the java compiler used. Not all 1.6 versions are equal and 1.6.0_15 is quite old, they did make some changes to generics somewhere in the _2x versions. > Well, what makes it even stranger is that I applied Rohit's patch and that compiled. Afterwards I reverted the patch and everything is still compiling. That strikes me as very odd, how can a piece of code not compile and 5 minutes later suddenly compile...? Anyway, it's working again and this discussion is in the archives for if somebody stumbles upon the same problem. Wido > Verstuurd vanaf mijn iPad > > Op 14 jan. 2013 om 19:55 heeft "Rohit Yadav" het volgende geschreven: > >> >> On 14-Jan-2013, at 7:53 AM, Wido den Hollander wrote: >> >>> Hi, >>> >>> I've been seeing the same issue over and over in the last 8 weeks and I >>> have no idea what it is. >>> >>> The error: http://pastebin.com/UzxpTKke >>> >>> It sometimes just pops up and goes away again without me touching anything. >>> >>> I've asked Hugo and David when I saw them at ApacheConEU but they had no >>> clue as well. It didn't come back since then, but just 5 minutes ago the >>> issue came back again. >>> >>> I tried cleaning the whole GIT repo, clear ~/.m2, etc, etc but nothing >>> works. >>> >>> My environment: >>> >>> Apache Maven 3.0.4 >>> Maven home: /usr/share/maven >>> Java version: 1.6.0_15, vendor: Sun Microsystems Inc. >>> Java home: /usr/lib/jvm/java-6-sun-1.6.0.15/jre >>> Default locale: en_US, platform encoding: UTF-8 >>> OS name: "linux", version: "3.2.0-35-generic", arch: "amd64", family: "unix" >>> >>> I have this issue on my desktop, laptop and an external server. All >>> running Ubuntu 12.04 >>> >>> Suggestions? It's driving me a bit crazy :) >> >> >> So, it's a type casting error and for some reason you java compiler is not automatically handling it. The fix would be to either fix the typecasting yourself in code or clean install; assuming you already tried, but just in case: >> mvn clean install (try doing a clean install) >> >> Try to build that on devcloud, maybe some local environment issue? >> >> For the code wise typecasting fix, you can try with this; >> http://people.apache.org/~bhaisaab/cloudstack/patches/0001-ComponentLocator-Do-typecasting-fix-for-dao-putAll-m.patch >> >> If it still won't work for you, I've no clue. >> >> Regards. >> >>> Wido >>