On Thu, Jan 19, 2017 at 11:05 AM, Yedidyah Bar David <didi(a)redhat.com
<mailto:didi@redhat.com>> wrote:
On Thu, Jan 19, 2017 at 9:54 AM, Code Review <gerrit(a)ovirt.org
<mailto:gerrit@ovirt.org>> wrote:
> From Jenkins CI:
>
> Jenkins CI has posted comments on this change.
>
> Change subject: packaging: Configure hosts for metrics: Fixes
> ......................................................................
>
>
> Patch Set 2:
>
> Build Failed
>
>
http://jenkins.ovirt.org/job/ovirt-engine_master_build-artifacts-fc24-x86...
<
http://jenkins.ovirt.org/job/ovirt-engine_master_build-artifacts-fc24-x86...
: FAILURE
07:33:58 [INFO]
------------------------------------------------------------------------
07:33:58 [ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.4.0:java (generate-code) on
project restapi-definition: An exception occured while executing the
Java class. null: InvocationTargetException: NullPointerException ->
[Help 1]
Any idea?
We saw similar errors on check-patch fc25 job yesterday,
Maybe its a regression on running maven on fedora ?
Juan/Martin - can you help maybe understand where this error comes from?
The error comes from the execution (the failed execution) of the API
metamodel tool, the tool that automatically generates part of the code
of the API from the model. I have seen this problem sporadically, but
haven't been able to reproduce it. My suspicion is that the CDI
container (Weld SE) that we use to run the tool somehow interferes with
Maven. I think we can avoid that with the following patch:
restapi: Fork to execute the metamodel tool
Note that I am not 100% sure about this, as I can't reproduce the
original problem.