java.lang.IllegalStateException

Already connected exception at different lines everytime. I already tried the other solutions I found (like removing the setDoInput) but nothing seems to work. Here is the stack trace Exception in thread "main" java.lang.IllegalStateException: Already connected

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web12

  • via Stack Overflow by moondaisy
    ,
  • Stack trace

    • java.lang.IllegalStateException: Already connected exception at different lines everytime. I already tried the other solutions I found (like removing the setDoInput) but nothing seems to work. Here is the stack trace Exception in thread "main" java.lang.IllegalStateException: Already connected at java.net.URLConnection.setDoOutput(URLConnection.java:900) at sun.net.www.protocol.https.HttpsURLConnectionImpl.setDoOutput(HttpsURLConnectionImpl.java:455) at javaapplication3.ExternalProviderBluemix.copy(ExternalProviderBluemix.java:212) at javaapplication3.ExternalProviderBluemix.copy(ExternalProviderBluemix.java:202) at javaapplication3.JavaApplication3.main(JavaApplication3.java:39)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,