Attempting to generate an Enterprise Archinve (EAR) file from Studio and gives a Null Pointer Exception message box.

Attempting to generate an Enterprise Archinve (EAR) file from Studio and gives a Null Pointer Exception message box.

book

Article ID: KB0084581

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
A pop up window shows a Null Pointer Exception message.  Look &ltworkspace>/.metadata/.log for the cause of the problem.

Environment:
==========
Windows.

Symptoms:
=========
The log file in this case showed the following:

!ENTRY com.tibco.cep.studio.ui 4 0 2011-10-12 12:23:54.311
!MESSAGE Enterprise Archive File has failed to build.
!STACK 0
java.lang.Exception: java.lang.NullPointerException
    at com.tibco.cep.studio.core.util.packaging.impl.DefaultRuntimeClassesPackager.close(Unknown Source)
    at com.tibco.cep.studio.core.util.packaging.impl.EMFBarPackager.close(Unknown Source)
    at com.tibco.cep.studio.core.util.packaging.impl.EMFEarPackager.close(Unknown Source)
    at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction.runBuildArchive(Unknown Source)
    at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction.access$0(Unknown Source)
    at com.tibco.cep.studio.ui.actions.BuildEnterpriseArchiveAction$BuildArchiveJob.run(Unknown Source)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NullPointerException
    at com.tibco.cep.modules.db.codegen.DBConceptClassGenerator.getPropertyColName(Unknown Source)
    at com.tibco.cep.modules.db.codegen.DBConceptClassGenerator.addDBConceptDelete(Unknown Source)
    at com.tibco.cep.modules.db.codegen.DBConceptClassGenerator.makeConceptFile(Unknown Source)
    at com.tibco.cep.modules.db.codegen.DBConceptCodeGenerator.generateConcept(Unknown Source)
    at com.tibco.cep.studio.parser.codegen.BaseGenerator.generateDBConcept(Unknown Source)
    at com.tibco.cep.studio.parser.codegen.BaseGenerator.generateConcept(Unknown Source)
    at com.tibco.cep.studio.parser.codegen.BaseGenerator.generate(Unknown Source)
    ... 7 more


Cause:
=====
The log pointed toward the problem of a Database Concept.  The user had imported database concepts but modified them afterward.  

Resolution:
=========
The user had removed a column that was stored as part of the primary key for the table in the metadata.  Restoring that column addressed the problem.

Issue/Introduction

Attempting to generate an Enterprise Archinve (EAR) file from Studio and gives a Null Pointer Exception message box.