java.io.IOException: Server returned HTTP response code: 502 for URL: http://foo.bar.baz/

JDK Bug System | Vikrant Agarwal | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Testsuite name: j2se_java_rest Test name(s): java/net/URL/OpenStream.java Product(s) tested: JDK 7 u111 b32 OS/architecture: Mac OS (x64) Reproducible: Always Is it a Regression: Test also failed for 7u80b15, also test failed for JDK 7 u111 b12 on the same machine, where it had passed before Is it a platform specific issue: Yes, test passed for JDK 7 u111 b32 on Linux x64 [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No [If new configuration testing] Issue specific to execution mode or OS/browser version: Exception/Error from Log: ----------System.out:(0/0)---------- ----------System.err:(0/0)---------- result: Passed. Compilation successful #section:main ----------messages:(4/133)---------- command: main OpenStream reason: Assumed action based on file name: run main OpenStream Mode: othervm elapsed time (seconds): 0.587 ----------configuration:(0/0)---------- ----------System.out:(0/0)---------- ----------System.err:(15/977)---------- java.io.IOException: Server returned HTTP response code: 502 for URL: http://foo.bar.baz/ at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628) at java.net.URL.openStream(URL.java:1048) at OpenStream.main(OpenStream.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(Thread.java:745) JavaTest Message: Test threw exception: java.io.IOException: Server returned HTTP response code: 502 for URL: http://foo.bar.baz/ JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.io.IOException: Server returned HTTP response code: 502 for URL: http://foo.bar.baz/

    JDK Bug System | 7 months ago | Vikrant Agarwal
    java.io.IOException: Server returned HTTP response code: 502 for URL: http://foo.bar.baz/
  2. 0

    Websphere Mq Connection error

    Stack Overflow | 2 years ago | Kasun
    com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ2020: Failed to connect to queue manager '' with connection mode 'Client' and supplied CCDT URL 'http://192.168.1.173', see linked exception for more information. Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information. at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:578)
  3. 0

    Error is system logs

    GitHub | 2 years ago | LawlyPopz
    java.io.IOException: Server returned HTTP response code: 422 for URL: https://api.twitch.tv/kraken/channels/lawlypopzcastleclash/subscriptions?oauth_token=blhblahbalbhablah&limit=100&offset=0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    InputStream is = new URL(url).openStream(); 400 error

    Stack Overflow | 2 years ago | Priyanka
    java.io.IOException: Server returned HTTP response code: 400 for URL:https://api.twitter.com/1.1/followers/ids.jsonscreen_name=*****&user_id=******
  6. 0

    IOException getting whatsmyip.akamai.com kills deploy

    GitHub | 3 years ago | lashex
    java.io.IOException: Server returned HTTP response code: 403 for URL: http://whatismyip.akamai.com/ (form-init4146737830589478912.clj:1)

  1. batwalrus76 1 times, last 1 month ago
  2. eti22 1 times, last 3 months ago
  3. serious2monkeys 2 times, last 5 months ago
  4. tyson925 2 times, last 8 months ago
  5. aldrinleal 14 times, last 8 months ago
1 more registered users
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Server returned HTTP response code: 502 for URL: http://foo.bar.baz/

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    URL.openStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)
    2. java.net.URL.openStream(URL.java:1048)
    2 frames
  3. Unknown
    OpenStream.main
    1. OpenStream.main(OpenStream.java:41)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. com.sun.javatest
    MainWrapper$MainThread.run
    1. com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame