camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: Compilation error on trunk on windows on Apache Jenkins
Date Sun, 11 Sep 2011 13:07:39 GMT
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   : org.apache.camel.model.ProcessorDefinition<capture#632 of ?>
>> required: org.apache.camel.model.LoadBalanceDefinition
>>
>>     at 
>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
>>     at 
>> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
>>     at 
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>     at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>
>>
>


-- 
--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com


Mime
View raw message