AESDKJ-0000 AXSecurityException when exporting XML through Appmanage.

AESDKJ-0000 AXSecurityException when exporting XML through Appmanage.

book

Article ID: KB0089315

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
The following exception is reported in the ApplicationManagement.log when exporting XML from BE ear through Appmanage with the following command:
      AppManage -export -ear c:\tmp\deployment\4\CopsRainbow_40.ear -out c:\tmp\deployment\4\Online-OfferEngine.xml

>>>>>>>>>>
2010 Nov 18 15:55:14:348 GMT +5 Error [com.tibco.administrator.command.data.application.Application] AESDKJ-0000 [main]  java.lang.RuntimeException: Should not happen - com.tibco.security.AXSecurityException: com.tibco.security.AXSecurityException: Invalid string, Does not contain encryption prefix
            at com.tibco.archive.helpers.NameValuePairPassword.getValue(NameValuePairPassword.java:91)
            at com.tibco.administrator.command.data.NVPairs.<init>(NVPairs.java:51)
            at com.tibco.administrator.command.data.application.Application.merge(Application.java:1375)
            at com.tibco.administrator.command.data.application.Application.export(Application.java:1056)
            at com.tibco.administrator.command.tool.ApplicationManagement.a(ApplicationManagement.java:649)
            at com.tibco.administrator.command.tool.ApplicationManagement.action(ApplicationManagement.java:435)
            at com.tibco.administrator.command.tool.ApplicationManagement.task(ApplicationManagement.java:225)
            at com.tibco.administrator.command.tool.ApplicationManagement.main(ApplicationManagement.java:156)
<<<<<<<<<<
Symptoms:
We have password type global variables. The ear file is built successfully but we failed to export XML from ear through Appmanage.

Cause:
In the defaultVars.substvar file, check if any Password type GV (global variable) has its value as: 
    <value/>

Example:  
  >>>>>>>>>>>>>>>
          <globalVariable>
            <name>New_Variable_1</name>
            <value/>
            <type>Password</type>
            <deploymentSettable>true</deploymentSettable>
            <serviceSettable>false</serviceSettable>
            <description/>
            <constraint/>
            <modTime>1290161485235</modTime>
        </globalVariable>
  <<<<<<<<<<<<<<<

Issue/Introduction

AESDKJ-0000 AXSecurityException when exporting XML through Appmanage.

Resolution

Resetting the value of the Password type GV should resolve this issue. If you need a password to be null, enter and then delete the value. After modification, even for the null password, the value in defaultVars.substvar file has the value.

Example:
  >>>>>>>>>>>>>>>>
          <globalVariable>
            <name>password</name>
            <value>#!RzTjJmlw1awTwKAils1BwA==</value>
            <type>Password</type>
            <deploymentSettable>true</deploymentSettable>
            <serviceSettable>false</serviceSettable>
            <description/>
            <constraint/>
            <modTime>1290159302052</modTime>
        </globalVariable>
  <<<<<<<<<<<<<<<<