NullPointerException while running "AppManage -deploy".

NullPointerException while running "AppManage -deploy".

book

Article ID: KB0090331

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) -
Not Applicable -

Description

Resolution:
Description:
============
NullPointerException is reported while running "AppManage -deploy".


Environment:
===========
TIBCO Administrator 5.x.x
TIBCO Runtime Agent 5.x.x


Symptoms:
==========
"AppManage -deploy" reports NullPointerException like below:

F:\&gtF:/tibco/products/tra/5.7/bin/AppManage.exe -deploy -app ADB/Adap_ETPub_CanConPymtTerm/Adap_ETPub_CanConPymtTerm -deployConfig F:/Domains/DEPLOYSTAGING/ADBS/Adap_ETPub_CanConPymtTerm/Adap_ETPub_CanConPymtTerm_Config.xml -ear F:/Domains/
DEPLOYSTAGING/ADBS/Adap_ETPub_CanConPymtTerm/Adap_ETPub_CanConPymtTerm.ear -timeout 90 -force -nostart -domain NAGP_TSTB -user admin -pw &ltpassword>
Initializing ...
Finished initialization
Loading archive ...
Instance Name is : NAGP_TSTB-Adap_ETPub_CanConPymtTerm
java.lang.NullPointerException
        at java.io.File.&ltinit>(File.java:222)
        at com.tibco.ps.utils.log.ext.DefaultLoggingConfig.getLogFile(DefaultLoggingConfig.java:94)
        at com.tibco.ps.utils.log.impl.SDKLogWrapper.&ltinit>(SDKLogWrapper.java:58)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.tibco.ps.utils.log.LogFactoryUtils.getImplementation(LogFactoryUtils.java:49)
        at com.tibco.ps.utils.log.LogUtils.&ltclinit>(LogUtils.java:38)
        at com.tibco.ps.anttasks.deployment.J2EEArchiveVFilesTraverser.&ltinit>(J2EEArchiveVFilesTraverser.java:38)
        at com.tibco.ps.anttasks.deployment.EARVFilesTraverser.&ltinit>(EARVFilesTraverser.java:32)
        at com.tibco.administrator.plugin.j2ee.J2EEEARLoadingPlugIn.onLoad(J2EEEARLoadingPlugIn.java:32)
        at com.tibco.pof.admindomain.impl.ApplicationConfigurationImpl.executeEarPlugins(ApplicationConfigurationImpl.java:1926)
        at com.tibco.administrator.command.data.application.Application.upload(Application.java:515)
        at com.tibco.administrator.command.tool.ApplicationManagement.if(ApplicationManagement.java:502)
        at com.tibco.administrator.command.tool.ApplicationManagement.a(ApplicationManagement.java:519)
        at com.tibco.administrator.command.tool.ApplicationManagement.if(ApplicationManagement.java:541)
        at com.tibco.administrator.command.tool.ApplicationManagement.action(ApplicationManagement.java:452)
        at com.tibco.administrator.command.tool.ApplicationManagement.task(ApplicationManagement.java:226)
        at com.tibco.administrator.command.tool.ApplicationManagement.main(ApplicationManagement.java:157)
Finished loading archive
Failed. Please check log file


Resolution:
==========
Add the following to AppManage.tra :

      java.property.LogFile=F:/tibco/products/tra/5.7/logs/AppManage.log
      java.property.TIBCO_APP_LOG_FILE=F:/tibco/products/tra/5.7/logs/AppManage.log

Issue/Introduction

NullPointerException while running "AppManage -deploy".