IBM Support

RPG program or PCML file is not visible in the external service wizard for WebSphere Adapter for IBM i

Troubleshooting


Problem

During the discovery process, the external service wizard does not list the RPG program or PCML file in the metadata tree panel.

Symptom

The RPG program or PCML file on the IBM i system is not visible in the metadata tree panel of the external service wizard.

During the discovery process, the external service wizard throws the following error when the path to the folder on IBM i for object discovery is '/qsys.lib/', and the object type is Report Program Generation.

com.ibm.adapter.framework.BaseException
Reason: The resource adapter returned the following error: 'null'

Error at the MetadataDiscovery log:
java.lang.RuntimeException
at com.ibm.j2ca.iseries.emd.discovery.metadata.ISeriesRPGMetadataObject.updateMetadataWithObjectProperties(ISeriesRPGMetadataObject.java:100)
at com.ibm.j2ca.iseries.emd.discovery.ISeriesMetadataTree.getISeriesTopLibraries(ISeriesMetadataTree.java:284)
at com.ibm.j2ca.iseries.emd.discovery.ISeriesMetadataTree.listMetadataObjects(ISeriesMetadataTree.java:152)
at com.ibm.adapter.emd.internal.discovery.EMDSearchTree.performQuery(EMDSearchTree.java:192)
at com.ibm.ccl.discovery.ui.wizards.DiscWizard_InitializePage$3.run(DiscWizard_InitializePage.java:378)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1088)
at com.ibm.j2ca.iseries.emd.discovery.metadata.ISeriesRPGMetadataObject.updateMetadataWithObjectProperties(ISeriesRPGMetadataObject.java:76)

Cause

WebSphere Adapter for IBM i fails to discover the RPG program through Program Call Markup Language (PCML) when the extension of the PCML file is in lower case (for example, INVOICE.pcml), and the path to the folder is the native folder path.

Resolving The Problem

The Adapter runs an RPG program through PCML. To run the external service wizard, the PCML file for the corresponding RPG program is required.

Ensure that the extension of the PCML file, which corresponds to the RPG program, is in uppercase and is located in a valid IFS folder, for example, /home/abcuser/invoice. PCML.

[{"Product":{"code":"SSMKUK","label":"WebSphere Adapters Family"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Adapter for IBM i","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF033","label":"Windows"}],"Version":"6.2","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
15 June 2018

UID

swg21327931