Provide URL when logging an error because of a failing logout message request

Description

We have the following exception on our CAS server:
[ERROR] org.jasig.cas.util.HttpClient - java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:896)
at org.jasig.cas.util.HttpClient$MessageSender.call_aroundBody0(HttpClient.java:195)
at org.jasig.cas.util.HttpClient$MessageSender.call_aroundBody1$advice(HttpClient.java:44)
at org.jasig.cas.util.HttpClient$MessageSender.call(HttpClient.java:1)
at org.jasig.cas.util.HttpClient$MessageSender.call(HttpClient.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Because the URL is not present we do not have any useful information for knowing the faulty service.

Environment

None

Activity

Show:
Sébastien Launay
December 9, 2009, 3:23 PM

Patch for exposing the URL when an error occurs.

Fixed

Assignee

ScottS

Reporter

Sébastien Launay

Labels

None

Estimated End Date

None

Components

Fix versions

Affects versions

Priority

Minor