Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C19777A3C for ; Mon, 12 Sep 2011 06:00:59 +0000 (UTC) Received: (qmail 58031 invoked by uid 500); 12 Sep 2011 06:00:59 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 57823 invoked by uid 500); 12 Sep 2011 06:00:35 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 57800 invoked by uid 99); 12 Sep 2011 06:00:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 06:00:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vx0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 06:00:22 +0000 Received: by vxj15 with SMTP id 15so2647887vxj.32 for ; Sun, 11 Sep 2011 23:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=BySSB8FizDRGMVUlnr59VVTfWF11MMri4mYCSXjwuew=; b=OJ9mFasqcV8bzNRpfj5qobbb1+bGd8lE+ucDtAEDNz97xwt5JAtWlRQdlsWttPgbVT g5aotsG5NmsUgA4Vs9d8SpbjovBF/Pn7TexGOYkFO9jAmbGLkb2I0ys6XZ8cv9uUNHwL idXKxL7dCQsBMA5LE6nqBDSxn1qlcx1tNZje8= Received: by 10.220.168.15 with SMTP id s15mr67753vcy.256.1315807201190; Sun, 11 Sep 2011 23:00:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.193.205 with HTTP; Sun, 11 Sep 2011 22:59:41 -0700 (PDT) In-Reply-To: <4E6CB29B.1010302@die-schneider.net> References: <4E6C90F1.20301@die-schneider.net> <4E6CB29B.1010302@die-schneider.net> From: Claus Ibsen Date: Mon, 12 Sep 2011 07:59:41 +0200 Message-ID: Subject: Re: Compilation error on trunk on windows on Apache Jenkins To: dev@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks I committed a potential fix and kicked a CI server on Apache Jenkins https://builds.apache.org/job/Camel.trunk.fulltest.windows/14/ I am not able on Apache Jenkins to see which JDK version is being used on "windows1" which is what is used for the windows tests. Neither which Windows OS is being used - WinXP, Win2000, Win7 etc. I suspect it uses an older JDK and thus fails. On Sun, Sep 11, 2011 at 3:07 PM, Christian Schneider wrote: > My machine is a > > Intel Core i5 > Windows 7 > > mvn -v > Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) > Maven home: c:\Program Files (x86)\apache-maven-3.0.3 > Java version: 1.6.0_25, vendor: Sun Microsystems Inc. > Java home: c:\Program Files\Java\jdk1.6.0_25\jre > Default locale: de_DE, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > > Christian > > > Am 11.09.2011 12:44, schrieb Christian Schneider: >> >> Hi Claus, >> >> I also could not reproduce the error. Will send the details of my work >> machine later. >> I guess the most probable cause should be the jdk version. >> >> Christian >> >> >> Am 11.09.2011 09:33, schrieb Claus Ibsen: >>> >>> Hi >>> >>> Apache Jenkins is reporting errors on Camel trunk on windows >>> https://builds.apache.org/job/Camel.trunk.fulltest.windows/11/ >>> >>> Its a compilation error in the model. We have seen this java generics >>> issues before on compiling to AIX, HP-UX, IBM JDKs and whatnot in the >>> past. Also sometimes it was a bug in the JDK version itself, so by >>> upgrading the JDK it would fix that. >>> >>> On my XP Box I could not reproduce the compilation error on trunk. >>> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) >>> Maven home: E:\maven\bin\.. >>> Java version: 1.6.0_18, vendor: Sun Microsystems Inc. >>> Java home: C:\jdk1.6.0_18\jre >>> Default locale: en_GB, platform encoding: Cp1252 >>> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows" >>> >>> >>> I was not able to find details on Jenkins which windows and JDK >>> version was used. >>> Its a big PITA that Jenkins do not log this in the console, so you >>> have it easily available. >>> >>> >>> Anyone on a Windows box, could you try to compile camel-core from >>> trunk on your system. >>> To see if you have this issue as well? >>> >>> >>> The fix is often to have an explicit redundant type cast in the code, >>> to "help" the compiler. >>> We usually added a code comment in the code, that this type cast is >>> needed due to compilation issues on other platforms. >>> >>> >>> >>> >>> Caused by: org.apache.maven.plugin.CompilationFailureException: >>> Compilation failure >>> >>> \hudson\hudson-slave\workspace\Camel.trunk.fulltest.windows\camel-trunk= \camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java= :[134,16] >>> inconvertible types >>> found =A0 : org.apache.camel.model.ProcessorDefinition >>> required: org.apache.camel.model.LoadBalanceDefinition >>> >>> =A0 =A0at >>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMo= jo.java:656) >>> =A0 =A0at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.jav= a:128) >>> =A0 =A0at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu= ildPluginManager.java:101) >>> =A0 =A0at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j= ava:209) >>> >>> >> > > > -- > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > Talend Application Integration Division http://www.talend.com > > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/