-
Bug
-
Resolution: Incomplete
-
P3
-
None
SHORT SUMMARY: HTTP 400 EXCEPTION WHEN INVOKING EXTERNAL HTTPS SERVICE
INDICATORS:
while using Jrockit R28 latest version it fails to run custom code throw
following error.
java.io.IOException: Server returned HTTP response code: 400 for URL:
@ https://api-uat.sadadbahrain.com/pci/v2/pay
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.j
ava:1436)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConne
ctionImpl.java:234)
at Saddad.PostData(Saddad.java:66)
at Saddad.main(Saddad.java:26)
Issue Clarification
===================
Steps to replicate the issue from command line...
1) Copy the code.zip folder any where on the PC.
2) Unzip the code.zip file.
3) Once unziped you can see, a java file name Saddad.java and SSL folder
which has a keystore and certificates inside it.
4) Change the folder paths inside the java file to the path where the SSL
folder is present. at line numbers - 32 and 41.
5) Complie the java class with each version at a time, i.e with JDK 1.6 and
1.7 and execute them to replicate the issue.
like
with JDK 1.6
set path=C:\Oracle\Middleware\jdk160_24\bin
javac Saddad.java
java Saddad
With JDK 1.7
set path=C:\Program Files\Java\jdk1.7.0_06\bin
javac Saddad.java
java Saddad
system configuration
====================
This more specific to JRockit R28 latest update.
Steps to replicate the issue from command line...
1) Copy the code.zip folder any where on the PC.
2) Unzip the code.zip file.
3) Once unziped you can see, a java file name Saddad.java and SSL folder
which has a keystore and certificates inside it.
4) Change the folder paths inside the java file to the path where the SSL
folder is present. at line numbers - 32 and 41.
5) Complie the java class with each version at a time, i.e with JDK 1.6 and
1.7 and execute them to replicate the issue.
like
with JDK 1.6
set path=C:\Oracle\Middleware\jdk160_24\bin
javac Saddad.java
java Saddad
With JDK 1.7
set path=C:\Program Files\Java\jdk1.7.0_06\bin
javac Saddad.java
java Saddad
COUNTER INDICATORS:
TRIGGERS:
KNOWN WORKAROUND:
PRESENT SINCE:
HOW TO VERIFY: testcase present
NOTES FOR SE:
REGRESSION: