BWDesign export command fails to generate EAR file and throws a NullPointerException.

BWDesign export command fails to generate EAR file and throws a NullPointerException.

book

Article ID: KB0094072

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
A "java.lang.NullPointerException.."  will be seen when attempting to export an EAR file using the BWDesign command utility.
Symptoms:
Following exception seen on bwdesign console

+++
Package 1 application(s) to C:\TIBCO_BW_6_2\bw\6.2\bin as deployable EARs.

java.lang.NullPointerException
        at com.tibco.zion.dc.builder.ApplicationResourceResolver.o00000(ApplicationResourceResolver.java:116)
        at com.tibco.zion.dc.builder.ApplicationResourceResolver.hasValidationProblems(ApplicationResourceResolver.java:85)
        at com.tibco.zion.core.validation.application.ZionApplicationValidator.hasValidationErrors(ZionApplicationValidator.java:190)
        at com.tibco.zion.dc.wizard.GenerateEarOperation.super(GenerateEarOperation.java:150)
        at com.tibco.zion.dc.wizard.GenerateEarOperation.run(GenerateEarOperation.java:102)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
++++

Cause:
Using application module name incorrectly instead of application in the command arguments.

Issue/Introduction

BWDesign export command fails to generate EAR file and throws a NullPointerException.

Resolution

Check the output of the following command.

 

 bwdesign> ls


              tibco.bw.sample.core.soa.CallProcessAndInvoke

              tibco.bw.sample.core.soa.CallProcessAndInvoke.application


and then make sure to use the application .


export -ear tibco.bw.sample.core.soa.CallProcessAndInvoke.application c:/temp