Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
I noticed from the Jenkins runs at https://builds.apache.org/job/Bigtop-trunk-iTest/
that the job passes for the ubuntu2 slave, but not for others.
is
java.lang.NullPointerException: Cannot invoke method length() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at org.apache.bigtop.itest.pmanager.PackageManagerTest.testLookupGcc(PackageManagerTest.groovy:45)
which seems to be due to the fact that on some systems, the 'gcc' package lack the metadata field "description".
Not sure why this is the case for the other ubuntu slaves on Jenkins but not on ubuntu2.
void testLookupGcc()
{ List<PackageInstance> pkgs = pmgr.lookup("gcc"); assertFalse("gcc non found in repository", pkgs.size() == 0); assertFalse("can not get description for the gcc package", pkgs.get(0).getMeta()["description"].length() == 0); }