0

I'm trying to use webservice from java application. The webservice site is served through https.

I write this code, but javax.crypto.BadPaddingException Decryption error is appearing.

try{
     URL url = new URL("https://www.google.ne.jp");
     HttpURLConnection connection = (HttpURLConnection) url.openConnection(); <= error

How can this problem be resolved?

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
samacche
  • 9
  • 1
  • Can't reproduce, neither with JDK 1.7.0_45, nor with java 1.8. – JB Nizet Apr 12 '15 at 09:00
  • Thank you for your response. My JDK is 1.7.0.76. I tried to change JDK 1.7.0.45 and java 1.8. but, it's reproduced... Anything else? What is required settings? – samacche Apr 13 '15 at 06:16
  • My guess is that you're behind some kind of nasty proxy that mess things up. – JB Nizet Apr 13 '15 at 06:18
  • I check proxy settings, but not set. so, I set up another eclipse environment that import same code. It worked fine... I don't know what is the cause... but, it worked fine. it's ok. thanks. – samacche Apr 15 '15 at 03:59

0 Answers0