java.io.IOException: Server returned HTTP response code: 401 for URL: http://secure.intern.webpage/userpicture/u117054.jpg

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Server Fault by Michael Schmidt
, 1 year ago
Server returned HTTP response code: 401 for URL: http://secure.intern.webpage/userpicture/u117054.jpg
via Oracle Community by 807555, 1 year ago
Server returned HTTP response code: 407 for URL: http://www.rediff.com
via Oracle Community by 807555, 1 year ago
Server returned HTTP response code: 407 for URL: http://www.rediff.com
via GitHub by Saratha
, 2 years ago
Server returned HTTP response code: 403 for URL: http://maven.twttr.com//com/twitter/scrooge/2.3.1/scrooge-2.3.1.zip
via Oracle Community by 843834, 1 year ago
Server returned HTTP response code: 500 for URL: http://TAZ//MeridioSOAP//MeridioSOAP.asp
via Oracle Community by 541430, 1 month ago
Server returned HTTP response code: 401 for URL: http://10.113.10.78:8080/OracleSPS/OracleSPS.asmx?WS
java.io.IOException: Server returned HTTP response code: 401 for URL: http://secure.intern.webpage/userpicture/u117054.jpg
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
at java.net.URL.openStream(URL.java:1037)
at ch.sbb.wzuapp.business.batch.PersonCleanupNightlyJob.downloadUrl(PersonCleanupNightlyJob.java:270)
at ch.sbb.wzuapp.business.batch.PersonCleanupNightlyJob.downloadPic(PersonCleanupNightlyJob.java:245)
at ch.sbb.wzuapp.business.batch.PersonCleanupNightlyJob.doCleanup(PersonCleanupNightlyJob.java:76)
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:601)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)

Users with the same issue

9 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 14 hours ago
Samebug visitor profile picture
Unknown user
Once, 14 hours ago
2 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
68 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.