SWPM: Main class “com.sap.inst.jpkgctl.JPkgCtl” cannot be started

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

  1. Remove all the 7.0x jar files from the sharedlib directory. The 7.0x JAR files can be identified by file timestamp.
  2. Once done, repeat the step again.

Method 2

  1. 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.
  2. Backup the directory of /sltools/sharedlib/.
  3. Remove all files inside /sltools/sharedlib/ *.
  4. From the downloaded CORETOOLS.SCA, extract copytools.sda and sltools.sda into the /sltools/sharedlib/. Once done, repeat the step again.

You May Also Like

Leave a Reply?