<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 6:03 PM, Juan Hernández <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On 04/06/2016 11:51 AM, Kai Kang wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am building ovirt-engine 3.6.4.1 and failed with NullPointerException.<br>
&gt; I build for cross compile with commands:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; tmp_repo=/buildarea3/kkang/builds/Mar31-ovrit-engine/bitbake_build/tmp/work/corei7-64-wrs-linux/ovirt-engine/3.6.4.1-r0/repo<br>
&gt;     export MAVEN_OPTS=&quot;-Dmaven.repo.local=$tmp_repo&quot;<br>
&gt;<br>
&gt;     make    EXTRA_BUILD_FLAGS=&quot;-s<br>
&gt; /buildarea3/kkang/builds/Mar31-ovrit-engine/bitbake_build/tmp/work/corei7-64-wrs-linux/ovirt-engine/3.6.4.1-r0/settings.xml<br>
&gt; --debug --offline&quot;    -j1     BUILD_GWT=1     BUILD_LOCALES=0<br>
&gt; BUILD_UT=1      BUILD_VALIDATION=0<br>
&gt;  JAVA_DIR=/usr/share/ovirt-engine/java   LOCALSTATE_DIR=/var<br>
&gt; MAVENPOM_DIR=/usr/share/ovirt-engine/maven-poms         PREFIX=/usr<br>
&gt; SYSCONF_DIR=/etc        PKG_SYSCONF_DIR=/etc/ovirt-engine<br>
&gt; PKG_DOC_DIR=/usr/doc/ovirt-engine<br>
&gt; PKG_EAR_DIR=/usr/share/ovirt-engine/engine.ear<br>
&gt;  PKG_PKI_DIR=/etc/pki/ovirt-engine<br>
&gt; PKG_JBOSS_MODULES=/usr/share/ovirt-engine/modules<br>
&gt; PKG_CACHE_DIR=/var/cache/ovirt-engine<br>
&gt; PKG_LOG_DIR=/var/log/ovirt-engine<br>
&gt; PKG_TMP_DIR=/var/tmp/ovirt-engine<br>
&gt; PKG_STATE_DIR=/var/lib/ovirt-engine     PKG_USER=ovirt  PKG_GROUP=ovirt<br>
&gt;          all<br>
&gt;<br>
&gt;<br>
&gt; The error messages show:<br>
&gt;<br>
&gt; [INFO] oVirt Engine API Definition ....................... FAILURE [1.476s]<br>
&gt; ...<br>
&gt; [INFO]<br>
&gt; ------------------------------------------------------------------------<br>
&gt; [ERROR] Failed to execute goal<br>
&gt; org.codehaus.mojo:exec-maven-plugin:1.2:java (default) on project<br>
&gt; restapi-definition: An exception occured while executing the Java class.<br>
&gt; null: InvocationTargetException: NullPointerException -&gt; [Help 1]<br>
&gt; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to<br>
&gt; execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default) on<br>
&gt; project restapi-definition: An exception occured while executing the<br>
&gt; Java class. null<br>
&gt;         at<br>
&gt; org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)<br>
&gt;         ...<br>
&gt;         at javax.xml.bind.JAXB.marshal(JAXB.java:332)<br>
&gt;         at<br>
&gt; org.ovirt.engine.api.rsdl.RsdlManager.serializeRsdl(RsdlManager.java:134)<br>
&gt;         at<br>
&gt; org.ovirt.engine.api.rsdl.RsdlManager.generateRsdlFile(RsdlManager.java:84)<br>
&gt;         at org.ovirt.engine.api.rsdl.RsdlManager.main(RsdlManager.java:58)<br>
&gt;         ... 6 more<br>
&gt;<br>
&gt;<br>
&gt; My questions are:<br>
&gt;<br>
&gt; 1 I know the error occurs in<br>
&gt; file backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlManager.java,<br>
&gt; but how to debug it?<br>
&gt;<br>
&gt; 2 When I remove pom and jar files of javax.xml.bind.JAXB in mave repo<br>
&gt; with offline mode, it still could find the class.<br>
&gt; Which javax.xml.bind.JAXB is used? I searched the ovirt engine repo but<br>
&gt; didn&#39;t find it either.<br>
&gt;<br>
<br>
</div></div>The version of JAXB used by that area of the code is the version of JAXB<br>
included in the JDK that you are using for the build. So the question is<br>
what version of the JDK are you using?<br></blockquote><div><br></div><div>Hi Juan,</div><div><br></div><div>I am using icedtea7 to build openjdk-7. And I found the JAXB file. </div><div><br></div><div>Would you like to give some advice how to debug this issue? Does jdb could debug such code?</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>--Kai</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div></div>