java.lang.NullPointerException when building project libraries using the command line utility.

java.lang.NullPointerException when building project libraries using the command line utility.

book

Article ID: KB0094033

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
While building project libraries, null pointer exception is thrown. 
Symptoms:

[tibco@tgs-3uk-centos64-2 bin]$ ./buildlibrary -x -lib /ProjectLibraries/MSF_CDM -o ./MSF_CDM.projlib -p /opt/jenkins/TRUNK/PROJLIBS/BW/MSF_CDM

Invoke,getContents()...........
java.lang.NullPointerException
at com.tibco.ae.tools.palettes.projectlibrarybuilder.LibraryBuilder.saveResources(LibraryBuilder.java:136)
at com.tibco.ae.tools.palettes.projectlibrarybuilder.LibraryBuilder.go(LibraryBuilder.java:97)
at com.tibco.ae.tools.palettes.projectlibrarybuilder.ProjectLibraryBuilderResource.buildLibrary(ProjectLibraryBuilderResource.java:301)
at com.tibco.ae.tools.palettes.projectlibrarybuilder.BuildLibrary.execute(BuildLibrary.java:157)
at com.tibco.ae.tools.palettes.projectlibrarybuilder.BuildLibrary.main(BuildLibrary.java:48)

Cause:
At the code level, it is not possible to validate all external references before running the utility. During runtime, these failed references are thrown as null pointer exceptions.

Resolution

Check your project to see if there are any external references used but not present while building the libraries. If references are missing, then import them back or delete them from the project. Make sure that you have all references and dependencies present in the project when you try to used the buildlibrary or buildear utility.

Issue/Introduction

java.lang.NullPointerException when building project libraries using the command line utility.