You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Prachi Damle <Pr...@citrix.com> on 2012/07/23 23:11:56 UTC
master build fails - 'compile-nicira-nvp' target
I pulled the latest from master branch and build-all fails for me at "compile-nicira-nvp" target. I will try commenting out this target.
Please can this be fixed soon?
compile-nicira-nvp:
[echo] Compiling C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp/src
[javac] Compiling 33 source files to C:\cloud\cloudstack-oss\target\classes\cloud-plugin-nicira-nvp.jar
[javac] C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cloud\network\nicira\NiciraNvpApi.java:235: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
[javac] result = gson.fromJson(pm.getResponseBodyAsString(), TypeToken.get(newObject.getClass()).getType());
[javac] ^
[javac] C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cloud\network\nicira\NiciraNvpApi.java:292: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
[javac] returnValue = gson.fromJson(gm.getResponseBodyAsString(), returnObjectType);
[javac] ^
[javac] 2 errors
BUILD FAILED
C:\cloud\cloudstack-oss\build\build-cloud-plugins.xml:306: The following error occurred while executing this line:
C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\build.xml:114: The following error occurred while executing this line:
C:\cloud\cloudstack-oss\build\build-common.xml:65: Compile failed; see the compiler error output for details.
Thanks,
Prachi
RE: master build fails - 'compile-nicira-nvp' target
Posted by Prachi Damle <Pr...@citrix.com>.
I have java 1.6.0_23. I will try with the latest again.
-----Original Message-----
From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
Sent: Tuesday, July 24, 2012 9:45 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: master build fails - 'compile-nicira-nvp' target
Latest master builds fine for me. I complied using ant:
ant clean-all clean-tomcat build-all
-Alena.
On 7/23/12 10:32 PM, "Hugo Trippaers" <HT...@schubergphilis.com>
wrote:
>Hey Prachi,
>
>Can you tell me which compiler you are using, just to check as i can
>not reproduce this yet on my dev environment.
>
>It seems to be related to a bug in javac, so it might be worth checking
>of you have the latest Jdk 1.6? I use 1.6.0_33
>
>Cheers,
>
>Hugo
>
>
>
>Sent from my iPhone
>
>On 23 jul. 2012, at 23:12, "Prachi Damle" <Pr...@citrix.com> wrote:
>
>> I pulled the latest from master branch and build-all fails for me at
>>"compile-nicira-nvp" target. I will try commenting out this target.
>> Please can this be fixed soon?
>>
>> compile-nicira-nvp:
>> [echo] Compiling
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp/src
>> [javac] Compiling 33 source files to
>>C:\cloud\cloudstack-oss\target\classes\cloud-plugin-nicira-nvp.jar
>> [javac]
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cl
>>oud
>>\network\nicira\NiciraNvpApi.java:235: type parameters of <T>T cannot
>>be determined; no unique maximal instance exists for type variable T
>>with upper bounds T,java.lang.Object
>> [javac] result =
>>gson.fromJson(pm.getResponseBodyAsString(),
>>TypeToken.get(newObject.getClass()).getType());
>> [javac] ^
>> [javac]
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cl
>>oud
>>\network\nicira\NiciraNvpApi.java:292: type parameters of <T>T cannot
>>be determined; no unique maximal instance exists for type variable T
>>with upper bounds T,java.lang.Object
>> [javac] returnValue =
>>gson.fromJson(gm.getResponseBodyAsString(), returnObjectType);
>> [javac] ^
>> [javac] 2 errors
>>
>> BUILD FAILED
>> C:\cloud\cloudstack-oss\build\build-cloud-plugins.xml:306: The
>>following error occurred while executing this line:
>>
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\build.xml:
>>114
>>: The following error occurred while executing this line:
>> C:\cloud\cloudstack-oss\build\build-common.xml:65: Compile failed;
>>see the compiler error output for details.
>>
>>
>>
>> Thanks,
>> Prachi
>
Re: master build fails - 'compile-nicira-nvp' target
Posted by Alena Prokharchyk <Al...@citrix.com>.
Latest master builds fine for me. I complied using ant:
ant clean-all clean-tomcat build-all
-Alena.
On 7/23/12 10:32 PM, "Hugo Trippaers" <HT...@schubergphilis.com>
wrote:
>Hey Prachi,
>
>Can you tell me which compiler you are using, just to check as i can not
>reproduce this yet on my dev environment.
>
>It seems to be related to a bug in javac, so it might be worth checking
>of you have the latest Jdk 1.6? I use 1.6.0_33
>
>Cheers,
>
>Hugo
>
>
>
>Sent from my iPhone
>
>On 23 jul. 2012, at 23:12, "Prachi Damle" <Pr...@citrix.com> wrote:
>
>> I pulled the latest from master branch and build-all fails for me at
>>"compile-nicira-nvp" target. I will try commenting out this target.
>> Please can this be fixed soon?
>>
>> compile-nicira-nvp:
>> [echo] Compiling
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp/src
>> [javac] Compiling 33 source files to
>>C:\cloud\cloudstack-oss\target\classes\cloud-plugin-nicira-nvp.jar
>> [javac]
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cloud
>>\network\nicira\NiciraNvpApi.java:235: type parameters of <T>T cannot be
>>determined; no unique maximal instance exists for type variable T with
>>upper bounds T,java.lang.Object
>> [javac] result =
>>gson.fromJson(pm.getResponseBodyAsString(),
>>TypeToken.get(newObject.getClass()).getType());
>> [javac] ^
>> [javac]
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cloud
>>\network\nicira\NiciraNvpApi.java:292: type parameters of <T>T cannot be
>>determined; no unique maximal instance exists for type variable T with
>>upper bounds T,java.lang.Object
>> [javac] returnValue =
>>gson.fromJson(gm.getResponseBodyAsString(), returnObjectType);
>> [javac] ^
>> [javac] 2 errors
>>
>> BUILD FAILED
>> C:\cloud\cloudstack-oss\build\build-cloud-plugins.xml:306: The
>>following error occurred while executing this line:
>>
>>C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\build.xml:114
>>: The following error occurred while executing this line:
>> C:\cloud\cloudstack-oss\build\build-common.xml:65: Compile failed; see
>>the compiler error output for details.
>>
>>
>>
>> Thanks,
>> Prachi
>
Re: master build fails - 'compile-nicira-nvp' target
Posted by Hugo Trippaers <HT...@schubergphilis.com>.
Hey Prachi,
Can you tell me which compiler you are using, just to check as i can not reproduce this yet on my dev environment.
It seems to be related to a bug in javac, so it might be worth checking of you have the latest Jdk 1.6? I use 1.6.0_33
Cheers,
Hugo
Sent from my iPhone
On 23 jul. 2012, at 23:12, "Prachi Damle" <Pr...@citrix.com> wrote:
> I pulled the latest from master branch and build-all fails for me at "compile-nicira-nvp" target. I will try commenting out this target.
> Please can this be fixed soon?
>
> compile-nicira-nvp:
> [echo] Compiling C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp/src
> [javac] Compiling 33 source files to C:\cloud\cloudstack-oss\target\classes\cloud-plugin-nicira-nvp.jar
> [javac] C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cloud\network\nicira\NiciraNvpApi.java:235: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
> [javac] result = gson.fromJson(pm.getResponseBodyAsString(), TypeToken.get(newObject.getClass()).getType());
> [javac] ^
> [javac] C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\src\com\cloud\network\nicira\NiciraNvpApi.java:292: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
> [javac] returnValue = gson.fromJson(gm.getResponseBodyAsString(), returnObjectType);
> [javac] ^
> [javac] 2 errors
>
> BUILD FAILED
> C:\cloud\cloudstack-oss\build\build-cloud-plugins.xml:306: The following error occurred while executing this line:
> C:\cloud\cloudstack-oss\plugins\network-elements\nicira-nvp\build.xml:114: The following error occurred while executing this line:
> C:\cloud\cloudstack-oss\build\build-common.xml:65: Compile failed; see the compiler error output for details.
>
>
>
> Thanks,
> Prachi