Hi,
I am trying to connect fetch a file from a secure URL and I am getting the following exception. Can someone please help me to get a solution for this.
The same URL can be opened through IE and the file can be retrieved.
I am also getting a Server Response OK when tried to do a Client Hello.
I am replacing the URL with xxx as I will not be able to give it out.
We are able to
java.io.FileNotFoundException:
https://xxx at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getHeaderField([DashoPro-V1.2-120198])
at com.stc.eways.http.HttpClientAPI.getResult(HttpClientAPI.java:1179)
at com.stc.eways.http.HttpClientAPI.doGet(HttpClientAPI.java:1158)
at com.stc.eways.http.HttpClientAPI.get(HttpClientAPI.java:771)
at com.stc.eways.http.HttpClient.get(HttpClient.java:1447)
at crPAYNET_HTTP_to_eGate_INVPDF_001.executeBusinessRules(crPAYNET_HTTP_to_eGate_INVPDF_001.java:195)
at com.stc.jcsre.JCollaboration.translate(JCollaboration.java:144)
at com.stc.common.collabService.JCCollabControllerImpl.translate(JCCollabControllerImpl.java:518)
The piece of code for fetching the files from the URL is as follows>
public boolean executeBusinessRules() throws Exception
{
boolean retBoolean = true;
boolean bGet = true;
int iRetryVal = 3;
String surl = "";
int revokok = 0;
int itosleep = 300000;
String CountryName = "";
String strBpidIref = "";
try
{
surl = schemaProps.getProperty("EBPP.CustURL");
sFetchMode=schemaProps.getProperty("EBPP.FETCHMODE");
if(sFetchMode.equals("")) sFetchMode="TOFETCH";
if((schemaProps.getProperty("EBPP.REVOKEVENO")).equals("NO")) bRevokeCheck=false;
else
bRevokeCheck=true;
RetryCountVal = schemaProps.getProperty("EBPP.RETRYCOUNT");
if(RetryCountVal .equals("")) RetryCountVal ="3";
iRetryVal = Integer.parseInt(RetryCountVal);
String strtosleep = schemaProps.getProperty("EBPP.SleepBforNxtTry");
if(strtosleep.equals(""))strtosleep = "15000";
itosleep = Integer.parseInt(strtosleep);
}
catch(Exception e)
{
sFetchMode="TOFETCH";
bRevokeCheck=true;
iRetryVal =3;
surl=schemaProps.getProperty("EBPP.CustURL");
itosleep = 300000;
}
finally
{
}
if (bGet)
{
int iListGetCounter = 0;
for( ;iListGetCounter< iRetryVal;iListGetCounter++)
{
getetiHttpIn().setURL(surl.trim()+"/getshipmentlist.eval?REQUEST=FetchMode%3D" + sFetchMode);
getetiHttpIn().get();
break;
}
Can someone provide me with a solution for this.
Thanks,
Subbulakshmi.