
During the database instance export of AS JAVA system, below error occurred,
FATAL: Main class "com.sap.inst.jpkgctl.JPkgCtl" cannot be started:
FATAL: java.lang.NullPointerException: while trying to invoke the
method java.util.List.iterator() of a null object returned from com.sap.inst.jpkgctl.api.JloadPackage.getElementsList()
at com.sap.inst.jpkgctl.persistence.ExportPackageXmlizer.fillDocument(ExportPackageXmlizer.java:39)
at com.sap.inst.jpkgctl.persistence.AbstractPackageXmlizer.getDocument(AbstractPackageXmlizer.java:45)
at com.sap.inst.jpkgctl.api.JloadPackage.printJloadXmlFiles(JloadPackage.java:340)
at com.sap.inst.jpkgctl.JPkgCtl.main(JPkgCtl.java:1218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)

Solution
Referring to SAP Note 2360165 – Error in JSplitterExportJ2EEDatabase step during Database Instance Export.
Method 1
- Remove all the 7.0x jar files from the sharedlib directory. The 7.0x JAR files can be identified by file timestamp.
- Once done, repeat the step again.
Method 2
- Download the CORETOOLS.SCA from the SAP portal and ensure the version is the same as the current CORETOOLS.SCA of your AS JAVA system.
- Backup the directory of /sltools/sharedlib/.
- Remove all files inside /sltools/sharedlib/ *.
- From the downloaded CORETOOLS.SCA, extract copytools.sda and sltools.sda into the /sltools/sharedlib/. Once done, repeat the step again.



