You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by xiangqiuzhao <xi...@gmail.com> on 2011/06/28 16:40:03 UTC

why i building camel2.7.2 use maven install error?

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
\workspace9\apache-camel-2.7.2\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.j
ava:[131,16] inconvertible types
found: org.apache.camel.model.ProcessorDefinition&lt;capture#543 of ?&gt;
required: org.apache.camel.model.LoadBalanceDefinition
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
\workspace9\apache-camel-2.7.2\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java:[131
,16] inconvertible types
found: org.apache.camel.model.ProcessorDefinition&lt;capture#543 of ?&gt;
required: org.apache.camel.model.LoadBalanceDefinition

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Tue Jun 28 22:14:26 CST 2011
[INFO] Final Memory: 72M/129M
[INFO]
------------------------------------------------------------------------
E:\workspace9\apache-camel-2.7.2>

jdk1.6 on windows, maven 2.2.1

--
View this message in context: http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-install-error-tp4532013p4532013.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: why i building camel2.7.2 use maven install error?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

I'm on mac and I saw  exactly this issue
found: org.apache.camel.model.ProcessorDefinition&lt;capture#543 of ? 
&gt;
required: org.apache.camel.model.LoadBalanceDefinition
when I use  jdk 1.6.0_13, but after upgrade to 1.6.0_24 then it's ok,  
so some lower version of jdk1.6.0 should be also the problem.

Freeman
On 2011-6-30, at 下午10:30, Jon Anstey wrote:

> Yeah, I built with
>
> mvn clean install -Dtest=
>
> Trying now without the -Dtest=
>
> On Thu, Jun 30, 2011 at 11:50 AM, Daniel Kulp <dk...@apache.org>  
> wrote:
>
>> On Thursday, June 30, 2011 11:29:00 AM Jon Anstey wrote:
>>> FYI I can build Camel trunk fine with IBM JDK 1.6.0 on Linux. So  
>>> least
>> that
>>> platform works :)
>>>
>>> janstey@duffman:/x1/asf/camel/trunk$ mvn --version
>>> Apache Maven 3.0.2 (r1056850; 2011-01-08 21:28:10-0330)
>>> Java version: 1.6.0, vendor: IBM Corporation
>>> Java home: /opt/ibm-java-i386-60/jre
>>> Default locale: en_CA, platform encoding: UTF-8
>>> OS name: "linux", version: "2.6.32-27-generic", arch: "x86", family:
>> "unix"
>>
>> Even from a clean?   For me, a "mvn clean install" would fail with  
>> strange
>> errors and such:
>>
>> Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
>> Maven home: /opt/tools/maven
>> Java version: 1.6.0, vendor: IBM Corporation
>> Java home: /opt/ibm-jdk-bin-1.6.0.8_p1/jre
>> Default locale: en_US, platform encoding: ANSI_X3.4-1968
>> OS name: "linux", version: "2.6.39", arch: "amd64", family: "unix"
>>
>>
>> Dan
>>
>>
>>>
>>> On Wed, Jun 29, 2011 at 11:49 AM, Claus Ibsen  
>>> <cl...@gmail.com>
>> wrote:
>>>> Its likely not only IBM JDKs.
>>>> HP-UX has been know to have compiling issues as well.
>>>>
>>>> Well we can always blame sun for creating the crappy confusing
>> generics.
>>>> I guess the compiler engineers dont even get generics right as  
>>>> well.
>>>>
>>>> The work around I have seen was to add a type cast to the super  
>>>> type
>>>> ProcessorDefinition def = (ProcessorDefinition) processorType
>>>>
>>>> And then do that instacenof check afterwards. So something like
>>>>
>>>>
>>>> ProcessorDefinition def = (ProcessorDefinition) processorType;
>>>>
>>>> if (def instanceof LoadBalanceDefinition) {
>>>>
>>>> On Wed, Jun 29, 2011 at 4:05 PM, bvahdat <babak.vahdat@swissonline.ch 
>>>> >
>>>>
>>>> wrote:
>>>>> Hi Claus,
>>>>>
>>>>> I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue,
>>>>
>>>> @xiangqiuzhao
>>>>
>>>>> is this really the case?
>>>>> I used to experience exactly the same problem while using IBM-JDK,
>>>>
>>>> however
>>>>
>>>>> since moving to SUN-JDK the problem is resolved for me.
>>>>>
>>>>> On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean  
>>>>> compile'
>>>>> on
>>>>> 'camel-core' comes up with (same as for xiangqiuzhao):
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>>>>> (default
>>>>> compile) on project camel-core: Compilation failure
>>>>> [ERROR]
>>>>
>>>>
>> \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org 
>> \apache\
>>>> camel\model\LoadBalanceDefinition.java:[134,16]
>>>>
>>>>> inconvertible types
>>>>
>>>>> [ERROR] found   :
>>>> org.apache.camel.model.ProcessorDefinition&lt;capture#945
>>>>
>>>>> of ?&gt;
>>>>> [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
>>>>>
>>>>> Where 'mvn -version' says:
>>>>> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
>>>>> Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
>>>>> Java version: 1.6.0, vendor: IBM Corporation
>>>>> Java home: C:\Program Files\IBM\SDP75\jdk\jre
>>>>> Default locale: de_CH, platform encoding: Cp1252
>>>>> OS name: "windows xp", version: "5.1 build 2600 service pack 3",
>>>>> arch:
>>>>> "x86", family: "windows"
>>>>>
>>>>> If one would change the line 134 on LoadBalanceDefinition from:
>>>>> if (processorType instanceof LoadBalanceDefinition) {
>>>>>
>>>>> To:
>>>>> if (LoadBalanceDefinition.class.isInstance(processorType)) {
>>>>>
>>>>> Then the compilation would pass on this class. I didn't find
>>>>> anything
>>>>
>>>> about
>>>>
>>>>> this issue on
>>>>> http://camel.apache.org/does-camel-work-on-ibms-jdk.html
>>>>>
>>>>> Regards, Babak
>>>>> PS: actually there're more compilation issues while using IBM-JDK
>>>>>
>>>>> --
>>>>
>>>>> View this message in context:
>>>>
>> http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-in
>>>> stall-error-tp4532013p4535242.html
>>>>
>>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>
>>>> --
>>>> 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/
>> --
>> Daniel Kulp
>> dkulp@apache.org
>> http://dankulp.com/blog
>> Talend - http://www.talend.com
>>
>
>
>
> -- 
> Cheers,
> Jon
> ---------------
> FuseSource
> Email: jon@fusesource.com
> Web: fusesource.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: why i building camel2.7.2 use maven install error?

Posted by Jon Anstey <ja...@gmail.com>.
Yeah, I built with

mvn clean install -Dtest=

Trying now without the -Dtest=

On Thu, Jun 30, 2011 at 11:50 AM, Daniel Kulp <dk...@apache.org> wrote:

> On Thursday, June 30, 2011 11:29:00 AM Jon Anstey wrote:
> > FYI I can build Camel trunk fine with IBM JDK 1.6.0 on Linux. So least
> that
> > platform works :)
> >
> > janstey@duffman:/x1/asf/camel/trunk$ mvn --version
> > Apache Maven 3.0.2 (r1056850; 2011-01-08 21:28:10-0330)
> > Java version: 1.6.0, vendor: IBM Corporation
> > Java home: /opt/ibm-java-i386-60/jre
> > Default locale: en_CA, platform encoding: UTF-8
> > OS name: "linux", version: "2.6.32-27-generic", arch: "x86", family:
> "unix"
>
> Even from a clean?   For me, a "mvn clean install" would fail with strange
> errors and such:
>
> Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: /opt/tools/maven
> Java version: 1.6.0, vendor: IBM Corporation
> Java home: /opt/ibm-jdk-bin-1.6.0.8_p1/jre
> Default locale: en_US, platform encoding: ANSI_X3.4-1968
> OS name: "linux", version: "2.6.39", arch: "amd64", family: "unix"
>
>
> Dan
>
>
> >
> > On Wed, Jun 29, 2011 at 11:49 AM, Claus Ibsen <cl...@gmail.com>
> wrote:
> > > Its likely not only IBM JDKs.
> > > HP-UX has been know to have compiling issues as well.
> > >
> > > Well we can always blame sun for creating the crappy confusing
> generics.
> > > I guess the compiler engineers dont even get generics right as well.
> > >
> > > The work around I have seen was to add a type cast to the super type
> > > ProcessorDefinition def = (ProcessorDefinition) processorType
> > >
> > > And then do that instacenof check afterwards. So something like
> > >
> > >
> > > ProcessorDefinition def = (ProcessorDefinition) processorType;
> > >
> > >  if (def instanceof LoadBalanceDefinition) {
> > >
> > > On Wed, Jun 29, 2011 at 4:05 PM, bvahdat <ba...@swissonline.ch>
> > >
> > > wrote:
> > > > Hi Claus,
> > > >
> > > > I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue,
> > >
> > > @xiangqiuzhao
> > >
> > > > is this really the case?
> > > > I used to experience exactly the same problem while using IBM-JDK,
> > >
> > > however
> > >
> > > > since moving to SUN-JDK the problem is resolved for me.
> > > >
> > > > On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile'
> > > > on
> > > > 'camel-core' comes up with (same as for xiangqiuzhao):
> > > >
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > > > (default
> > > > compile) on project camel-core: Compilation failure
> > > > [ERROR]
> > >
> > >
> \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\
> > > camel\model\LoadBalanceDefinition.java:[134,16]
> > >
> > > > inconvertible types
> > >
> > > > [ERROR] found   :
> > > org.apache.camel.model.ProcessorDefinition&lt;capture#945
> > >
> > > > of ?&gt;
> > > > [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
> > > >
> > > > Where 'mvn -version' says:
> > > > Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> > > > Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
> > > > Java version: 1.6.0, vendor: IBM Corporation
> > > > Java home: C:\Program Files\IBM\SDP75\jdk\jre
> > > > Default locale: de_CH, platform encoding: Cp1252
> > > > OS name: "windows xp", version: "5.1 build 2600 service pack 3",
> > > > arch:
> > > > "x86", family: "windows"
> > > >
> > > > If one would change the line 134 on LoadBalanceDefinition from:
> > > >  if (processorType instanceof LoadBalanceDefinition) {
> > > >
> > > > To:
> > > >  if (LoadBalanceDefinition.class.isInstance(processorType)) {
> > > >
> > > > Then the compilation would pass on this class. I didn't find
> > > > anything
> > >
> > > about
> > >
> > > > this issue on
> > > > http://camel.apache.org/does-camel-work-on-ibms-jdk.html
> > > >
> > > > Regards, Babak
> > > > PS: actually there're more compilation issues while using IBM-JDK
> > > >
> > > > --
> > >
> > > > View this message in context:
> > >
> http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-in
> > > stall-error-tp4532013p4535242.html
> > >
> > > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >
> > > --
> > > 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/
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> Talend - http://www.talend.com
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen

Re: why i building camel2.7.2 use maven install error?

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday, June 30, 2011 11:29:00 AM Jon Anstey wrote:
> FYI I can build Camel trunk fine with IBM JDK 1.6.0 on Linux. So least that
> platform works :)
> 
> janstey@duffman:/x1/asf/camel/trunk$ mvn --version
> Apache Maven 3.0.2 (r1056850; 2011-01-08 21:28:10-0330)
> Java version: 1.6.0, vendor: IBM Corporation
> Java home: /opt/ibm-java-i386-60/jre
> Default locale: en_CA, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-27-generic", arch: "x86", family: "unix"

Even from a clean?   For me, a "mvn clean install" would fail with strange 
errors and such:

Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: /opt/tools/maven
Java version: 1.6.0, vendor: IBM Corporation
Java home: /opt/ibm-jdk-bin-1.6.0.8_p1/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.39", arch: "amd64", family: "unix"


Dan


> 
> On Wed, Jun 29, 2011 at 11:49 AM, Claus Ibsen <cl...@gmail.com> wrote:
> > Its likely not only IBM JDKs.
> > HP-UX has been know to have compiling issues as well.
> > 
> > Well we can always blame sun for creating the crappy confusing generics.
> > I guess the compiler engineers dont even get generics right as well.
> > 
> > The work around I have seen was to add a type cast to the super type
> > ProcessorDefinition def = (ProcessorDefinition) processorType
> > 
> > And then do that instacenof check afterwards. So something like
> > 
> > 
> > ProcessorDefinition def = (ProcessorDefinition) processorType;
> > 
> >  if (def instanceof LoadBalanceDefinition) {
> > 
> > On Wed, Jun 29, 2011 at 4:05 PM, bvahdat <ba...@swissonline.ch>
> > 
> > wrote:
> > > Hi Claus,
> > > 
> > > I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue,
> > 
> > @xiangqiuzhao
> > 
> > > is this really the case?
> > > I used to experience exactly the same problem while using IBM-JDK,
> > 
> > however
> > 
> > > since moving to SUN-JDK the problem is resolved for me.
> > > 
> > > On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile'
> > > on
> > > 'camel-core' comes up with (same as for xiangqiuzhao):
> > > 
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > > (default
> > > compile) on project camel-core: Compilation failure
> > > [ERROR]
> > 
> > \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\
> > camel\model\LoadBalanceDefinition.java:[134,16]
> > 
> > > inconvertible types
> > 
> > > [ERROR] found   :
> > org.apache.camel.model.ProcessorDefinition&lt;capture#945
> > 
> > > of ?&gt;
> > > [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
> > > 
> > > Where 'mvn -version' says:
> > > Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> > > Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
> > > Java version: 1.6.0, vendor: IBM Corporation
> > > Java home: C:\Program Files\IBM\SDP75\jdk\jre
> > > Default locale: de_CH, platform encoding: Cp1252
> > > OS name: "windows xp", version: "5.1 build 2600 service pack 3",
> > > arch:
> > > "x86", family: "windows"
> > > 
> > > If one would change the line 134 on LoadBalanceDefinition from:
> > >  if (processorType instanceof LoadBalanceDefinition) {
> > > 
> > > To:
> > >  if (LoadBalanceDefinition.class.isInstance(processorType)) {
> > > 
> > > Then the compilation would pass on this class. I didn't find
> > > anything
> > 
> > about
> > 
> > > this issue on
> > > http://camel.apache.org/does-camel-work-on-ibms-jdk.html
> > > 
> > > Regards, Babak
> > > PS: actually there're more compilation issues while using IBM-JDK
> > > 
> > > --
> > 
> > > View this message in context:
> > http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-in
> > stall-error-tp4532013p4535242.html
> > 
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > 
> > --
> > 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/
-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Re: why i building camel2.7.2 use maven install error?

Posted by Jon Anstey <ja...@gmail.com>.
FYI I can build Camel trunk fine with IBM JDK 1.6.0 on Linux. So least that
platform works :)

janstey@duffman:/x1/asf/camel/trunk$ mvn --version
Apache Maven 3.0.2 (r1056850; 2011-01-08 21:28:10-0330)
Java version: 1.6.0, vendor: IBM Corporation
Java home: /opt/ibm-java-i386-60/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-27-generic", arch: "x86", family: "unix"

On Wed, Jun 29, 2011 at 11:49 AM, Claus Ibsen <cl...@gmail.com> wrote:

> Its likely not only IBM JDKs.
> HP-UX has been know to have compiling issues as well.
>
> Well we can always blame sun for creating the crappy confusing generics.
> I guess the compiler engineers dont even get generics right as well.
>
> The work around I have seen was to add a type cast to the super type
> ProcessorDefinition def = (ProcessorDefinition) processorType
>
> And then do that instacenof check afterwards. So something like
>
>
> ProcessorDefinition def = (ProcessorDefinition) processorType;
>  if (def instanceof LoadBalanceDefinition) {
>
>
>
> On Wed, Jun 29, 2011 at 4:05 PM, bvahdat <ba...@swissonline.ch>
> wrote:
> > Hi Claus,
> >
> > I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue,
> @xiangqiuzhao
> > is this really the case?
> > I used to experience exactly the same problem while using IBM-JDK,
> however
> > since moving to SUN-JDK the problem is resolved for me.
> >
> > On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile' on
> > 'camel-core' comes up with (same as for xiangqiuzhao):
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
> > compile) on project camel-core: Compilation failure
> > [ERROR]
> >
> \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java:[134,16]
> > inconvertible types
> > [ERROR] found   :
> org.apache.camel.model.ProcessorDefinition&lt;capture#945
> > of ?&gt;
> > [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
> >
> > Where 'mvn -version' says:
> > Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> > Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
> > Java version: 1.6.0, vendor: IBM Corporation
> > Java home: C:\Program Files\IBM\SDP75\jdk\jre
> > Default locale: de_CH, platform encoding: Cp1252
> > OS name: "windows xp", version: "5.1 build 2600 service pack 3", arch:
> > "x86", family: "windows"
> >
> > If one would change the line 134 on LoadBalanceDefinition from:
> >  if (processorType instanceof LoadBalanceDefinition) {
> >
> > To:
> >  if (LoadBalanceDefinition.class.isInstance(processorType)) {
> >
> > Then the compilation would pass on this class. I didn't find anything
> about
> > this issue on http://camel.apache.org/does-camel-work-on-ibms-jdk.html
> >
> > Regards, Babak
> > PS: actually there're more compilation issues while using IBM-JDK
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-install-error-tp4532013p4535242.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> 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/
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen

Re: why i building camel2.7.2 use maven install error?

Posted by Claus Ibsen <cl...@gmail.com>.
Its likely not only IBM JDKs.
HP-UX has been know to have compiling issues as well.

Well we can always blame sun for creating the crappy confusing generics.
I guess the compiler engineers dont even get generics right as well.

The work around I have seen was to add a type cast to the super type
ProcessorDefinition def = (ProcessorDefinition) processorType

And then do that instacenof check afterwards. So something like


ProcessorDefinition def = (ProcessorDefinition) processorType;
 if (def instanceof LoadBalanceDefinition) {



On Wed, Jun 29, 2011 at 4:05 PM, bvahdat <ba...@swissonline.ch> wrote:
> Hi Claus,
>
> I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue, @xiangqiuzhao
> is this really the case?
> I used to experience exactly the same problem while using IBM-JDK, however
> since moving to SUN-JDK the problem is resolved for me.
>
> On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile' on
> 'camel-core' comes up with (same as for xiangqiuzhao):
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
> compile) on project camel-core: Compilation failure
> [ERROR]
> \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java:[134,16]
> inconvertible types
> [ERROR] found   : org.apache.camel.model.ProcessorDefinition&lt;capture#945
> of ?&gt;
> [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
>
> Where 'mvn -version' says:
> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
> Java version: 1.6.0, vendor: IBM Corporation
> Java home: C:\Program Files\IBM\SDP75\jdk\jre
> Default locale: de_CH, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1 build 2600 service pack 3", arch:
> "x86", family: "windows"
>
> If one would change the line 134 on LoadBalanceDefinition from:
>  if (processorType instanceof LoadBalanceDefinition) {
>
> To:
>  if (LoadBalanceDefinition.class.isInstance(processorType)) {
>
> Then the compilation would pass on this class. I didn't find anything about
> this issue on http://camel.apache.org/does-camel-work-on-ibms-jdk.html
>
> Regards, Babak
> PS: actually there're more compilation issues while using IBM-JDK
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-install-error-tp4532013p4535242.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
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/

Re: why i building camel2.7.2 use maven install error?

Posted by Daniel Kulp <dk...@apache.org>.
Yep.  There are still a bunch of build related issues with the IBM JDK.  The 
last couple weeks, I managed to get all the UNIT TESTS passing on the IBM JDK 
which was important to validate that Camel works with the IBM JDK, but there 
are still a bunch of build related issues.    The way camel uses antrun to run 
the jxc stuff also doesn't work on the IBM JDK.   I didn't get a chance to 
look at that yet.   

For now, I've had to use the Sun JDK to build, and then use the IBM JDK to run 
the tests and such.    

Patches are welcome to fix issues.  :-)

Dan

On Wednesday, June 29, 2011 7:05:57 AM bvahdat wrote:
> Hi Claus,
> 
> I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue, @xiangqiuzhao
> is this really the case?
> I used to experience exactly the same problem while using IBM-JDK, however
> since moving to SUN-JDK the problem is resolved for me.
> 
> On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile' on
> 'camel-core' comes up with (same as for xiangqiuzhao):
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
> compile) on project camel-core: Compilation failure
> [ERROR]
> \Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\came
> l\model\LoadBalanceDefinition.java:[134,16] inconvertible types
> [ERROR] found   : org.apache.camel.model.ProcessorDefinition&lt;capture#945
> of ?&gt;
> [ERROR] required: org.apache.camel.model.LoadBalanceDefinition
> 
> Where 'mvn -version' says:
> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
> Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
> Java version: 1.6.0, vendor: IBM Corporation
> Java home: C:\Program Files\IBM\SDP75\jdk\jre
> Default locale: de_CH, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1 build 2600 service pack 3", arch:
> "x86", family: "windows"
> 
> If one would change the line 134 on LoadBalanceDefinition from:
>  if (processorType instanceof LoadBalanceDefinition) {
> 
> To:
>  if (LoadBalanceDefinition.class.isInstance(processorType)) {
> 
> Then the compilation would pass on this class. I didn't find anything about
> this issue on http://camel.apache.org/does-camel-work-on-ibms-jdk.html
> 
> Regards, Babak
> PS: actually there're more compilation issues while using IBM-JDK
> 
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-insta
> ll-error-tp4532013p4535242.html Sent from the Camel - Users mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Re: why i building camel2.7.2 use maven install error?

Posted by bvahdat <ba...@swissonline.ch>.
Hi Claus,

I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue, @xiangqiuzhao
is this really the case?
I used to experience exactly the same problem while using IBM-JDK, however
since moving to SUN-JDK the problem is resolved for me.

On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile' on
'camel-core' comes up with (same as for xiangqiuzhao):

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
compile) on project camel-core: Compilation failure
[ERROR]
\Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java:[134,16]
inconvertible types
[ERROR] found   : org.apache.camel.model.ProcessorDefinition&lt;capture#945
of ?&gt;
[ERROR] required: org.apache.camel.model.LoadBalanceDefinition

Where 'mvn -version' says:
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
Java version: 1.6.0, vendor: IBM Corporation
Java home: C:\Program Files\IBM\SDP75\jdk\jre
Default locale: de_CH, platform encoding: Cp1252
OS name: "windows xp", version: "5.1 build 2600 service pack 3", arch:
"x86", family: "windows"

If one would change the line 134 on LoadBalanceDefinition from:
 if (processorType instanceof LoadBalanceDefinition) {

To:
 if (LoadBalanceDefinition.class.isInstance(processorType)) {

Then the compilation would pass on this class. I didn't find anything about
this issue on http://camel.apache.org/does-camel-work-on-ibms-jdk.html

Regards, Babak
PS: actually there're more compilation issues while using IBM-JDK 

--
View this message in context: http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-install-error-tp4532013p4535242.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: why i building camel2.7.2 use maven install error?

Posted by davsclaus <ci...@yahoo.dk>.
Try upgrading your JDK6 version.

-----
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
--
View this message in context: http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-install-error-tp4532013p4534369.html
Sent from the Camel - Users mailing list archive at Nabble.com.