12.2 E-Business Suite SFTP Delivery Of The BI Publisher Output For Program 'Positive Pay File Auto Transmission to Bank'Does Not Get Delivered Successully To A New Bank Due To Error 'java.lang.NoClassDefFoundError: oracle/security/crypto/core/PublicKey' (Doc ID 2282466.1)

Last updated on JULY 11, 2017

Applies to:

BI Publisher (formerly XML Publisher) - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

E-Business Suite R12 Business Intelligence Publisher, EBS Delivery (IPP, Email, FTP) related issues

 

 

 

BI Publisher java concurrent program Positive Pay File Auto Transmission to Bank using sftp works with all other banks, but fails when using a new bank.


It cannot make a valid connection via SFTPUtil.connect api. can you please provide guidance as to how to use this api.

error message we get is : (these classes are not found in our JAVA_TOP )
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/security/crypto/core/PublicKey
at oracle.apps.xdo.delivery.ssh2.transport.TransportProtocolClient.<init>(TransportProtocolClient.java:136)
at oracle.apps.xdo.delivery.ssh2.sftp.SFTPUtil.connect(SFTPUtil.java:89)
at metro.oracle.apps.xdo.delivery.file.Class1.main(Class1.java:26)
Process exited with exit code 1

Below is sample of the code to make the sftp connection:

package metro.oracle.apps.xdo.delivery.file;

import oracle.apps.xdo.delivery.ssh2.sftp.SFTPUtil;

SFTPUtil SFTPConnection = null;
int i = 0;
SFTPConnection = new SFTPUtil();
// Parameters
int iHost_Port = 11111;
String sHost_IP = "nnnnnnnn";
String sUsername = "user";
String sPassword = "xxxxx";
String sKey ="ssh-rsa 1111 11:xx:11:xx:11....";
try {
SFTPConnection.connect(sHost_IP, iHost_Port, sUsername, sPassword);
//SFTPConnection.connect(sHost_IP,iHost_Port, 3,sUsername,sKey, sPassword);
}
catch (Exception e) {
System.out.println("In Catch --");
e.printStackTrace();
}
finally {
System.out.println("In Finally --");

}

The SFTP delivery of a BIP output file to the bank ftp server does not get delivered.

However the same report output is successfully delivered via SFTP to other bank ftp servers.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms