Connection Refused on Groupwise Job

  • 7023246
  • 06-Aug-2018
  • 06-Aug-2018

Environment

Retain 4.x+

Situation

After a new job has been created, you can't get anything to archive.  Module Configuration tests show that the SOAP connection is working fine.  When you run your first job, you see this error on the worker:

1 error(s)/warning(s) with message:
"Mon Aug 06 13:03:56 MDT 2018: loginAsAnyUser: HTTP transport error: java.net.ConnectException: Connection refused (Connection refused) "

in the logs, you see this error:

13:03:56, 179[RTWQuartzScheduler_Archive_Worker-4] [ERROR] com.gwava.gw.jobs.LiveGroupWise: loginAsAnyUser
com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused (Connection refused)
        at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:131)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:223)
        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:145)
        at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:139)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
        at com.sun.xml.ws.client.Stub.process(Stub.java:463)
        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:191)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:92)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:161)
        at com.sun.proxy.$Proxy1282.getUserListRequest(Unknown Source)
        at com.gwava.gweasysoap.EasySoap.getUserList(EasySoap.java:1231)
        at com.gwava.gw.GWUserSelection.loginAsAnyUser(GWUserSelection.java:846)
        at com.gwava.gw.jobs.LiveGroupWise.getListOfUsers(LiveGroupWise.java:60)
        at com.gwava.gw.jobs.LiveGroupWise.getListOfUsers(LiveGroupWise.java:24)
        at com.gwava.caapi.process.RetainDredger.processNormalJob(RetainDredger.java:268)
        at com.gwava.gw.jobs.LiveGroupWise.executeWork(LiveGroupWise.java:89)
        at com.gwava.jobs.RetainArchiveJob.performDredge(RetainArchiveJob.java:561)
        at com.gwava.jobs.RetainArchiveJob.execute(RetainArchiveJob.java:229)
        at com.gwava.jobs.RetainArchiveJob.execute(RetainArchiveJob.java:442)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1199)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259)
        at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:119)
        ... 24 more

Resolution

If any of your Post Office settings changed or you are using a worker that was setup for another purpose, there is a setting on the Worker that must be done first.  On the Worker configuration, there is a tab called "Module Specific".  You must put in the correct Hostname, Port, and SSL on/off setting.  Once you have that information correct, you will need to reload the bootstrap file on the Worker itself: