When migrating from version 6.x to 7.0, the following error is reported: "java.lang.NullPointerException".

When migrating from version 6.x to 7.0, the following error is reported: "java.lang.NullPointerException".

book

Article ID: KB0092904

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Database -
Not Applicable -

Description

Description:

When migrating from version 6.1 to 7.0, a problem is encountered when running the migration tool. The workaround is to copy all the classpath and palette library paths from the designer.tra file to the migration tool .tra file. However, when running the adapter instance in a Designer project after migration, NPE errors are reported. The project file has been validated and the connections to DB and EMS server work without issue.


java.lang.NullPointerException
at com.tibco.adapter.adb.util.ConfigDataHelp.loadServiceConfigData(Unknown Source)
at com.tibco.adapter.adb.util.ConfigDataHelp.(Unknown Source)
at com.tibco.adapter.adb.core.ADBAdapter.getConfigDataHelp(Unknown Source)
at com.tibco.adapter.adb.core.ADBAdapter.getDataSourceMap(Unknown Source)
at com.tibco.adapter.adb.core.ADBAdapterCatalog.(Unknown Source)
at com.tibco.adapter.adb.core.ADBAdapter.initializeAdapterCatalog(Unknown Source)
at com.tibco.adapter.adb.core.ADBAdapter.getAdapterCatalog(Unknown Source)
at com.tibco.adapter.adb.util.GeneralTraceUtil.isVerbose(Unknown Source)
at com.tibco.adapter.adb.util.GeneralTraceUtil.traceCheck(Unknown Source)
at com.tibco.adapter.adb.util.GeneralTraceUtil.traceSync(Unknown Source)
at com.tibco.adapter.adb.util.GeneralTraceUtil.traceSync(Unknown Source)
at com.tibco.adapter.adb.core.ADBAdapter.onInitialization(Unknown Source)
at com.tibco.sdk.MAppImpl.initialize(MAppImpl.java:498)
at com.tibco.sdk.MDefaultAppImpl.start(MDefaultAppImpl.java:132)
at com.tibco.sdk.MApp.start(MApp.java:221)
at com.tibco.adapter.adb.core.ADBAdapter.main(Unknown Source)


Issue/Introduction

When migrating from version 6.x to 7.0, the following error is reported: "java.lang.NullPointerException".

Environment

TIBCO Adapter for ActiveDatabase 7.0.0.

Resolution

The NPE is caused by a missing element sessionReference for each service except for Subscription services. Change the endpoint configuration to restore the sessionReference element.

Workaround:


1). Import the dat into Designer with ADB7.0 palette.


2). Change the "Delivery Mode" from "Persistent" to "Non-Persistent".


3). Click "Apply" button to enable the change and click "Yes" when any prompts pop up.


4). Change the "Delivery Mode" back to "Persistent".


5). Click "Apply" button to enable the change and click "Yes" when any prompts pop up. Execute steps 2-5 for the both publication services respectively.


6). Export to a .dat file or archive into an EAR file.