Jira Plugin will not be able to connect

Issue #692 closed
Alexander Kammerer
created an issue

Hello there,

I'm using the plugin version 1.13 with scm-server 1.45 and keep getting the same error.

 ERROR sonia.scm.jira.JiraIssueHandler - could not close jira issue
sonia.scm.jira.JiraConnectException: could not connect to jira instance at https://[myjiraserver]/jira
        at sonia.scm.jira.SoapJiraHandlerFactory.createJiraHandler(SoapJiraHandlerFactory.java:102) ~[scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.JiraIssueRequest.createJiraHandler(JiraIssueRequest.java:109) ~[scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.JiraIssueHandler.updateIssue(JiraIssueHandler.java:239) [scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.JiraIssueHandler.handleIssue(JiraIssueHandler.java:120) [scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.JiraChangesetPreProcessor.process(JiraChangesetPreProcessor.java:115) ~[scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.JiraIssuePostReceiveHook.handleIssueEvent(JiraIssuePostReceiveHook.java:163) ~[scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.JiraIssuePostReceiveHook.onEvent(JiraIssuePostReceiveHook.java:117) ~[scm-jira-plugin-1.13.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_32]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_32]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_32]
        at java.lang.reflect.Method.invoke(Method.java:622) ~[na:1.6.0_32]
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:na]
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:na]
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:na]
        at com.google.common.eventbus.AsyncEventBus.access$001(AsyncEventBus.java:34) ~[guava-15.0.jar:na]
        at com.google.common.eventbus.AsyncEventBus$1.run(AsyncEventBus.java:100) ~[guava-15.0.jar:na]
        at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) ~[shiro-core-1.2.3.jar:1.2.3]
        at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) ~[shiro-core-1.2.3.jar:1.2.3]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) ~[na:1.6.0_32]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.6.0_32]
        at java.lang.Thread.run(Thread.java:701) ~[na:1.6.0_32]
Caused by: org.apache.axis.AxisFault: ; nested exception is:
        java.net.ConnectException: Connection refused
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) ~[axis-1.4.jar:na]
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) ~[axis-1.4.jar:na]
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) ~[axis-1.4.jar:na]
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) ~[axis-1.4.jar:na]
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) ~[axis-1.4.jar:na]
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) ~[axis-1.4.jar:na]
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784) ~[axis-1.4.jar:na]
        at org.apache.axis.client.Call.invoke(Call.java:2767) ~[axis-1.4.jar:na]
        at org.apache.axis.client.Call.invoke(Call.java:2443) ~[axis-1.4.jar:na]
        at org.apache.axis.client.Call.invoke(Call.java:2366) ~[axis-1.4.jar:na]
        at org.apache.axis.client.Call.invoke(Call.java:1812) ~[axis-1.4.jar:na]
        at sonia.scm.jira.soap.JirasoapserviceV2SoapBindingStub.login(JirasoapserviceV2SoapBindingStub.java:5946) ~[scm-jira-plugin-1.13.jar:na]
        at sonia.scm.jira.SoapJiraHandlerFactory.createJiraHandler(SoapJiraHandlerFactory.java:96) ~[scm-jira-plugin-1.13.jar:na]
        ... 20 common frames omitted
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.6.0_32]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) ~[na:1.6.0_32]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) ~[na:1.6.0_32]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) ~[na:1.6.0_32]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385) ~[na:1.6.0_32]
        at java.net.Socket.connect(Socket.java:546) ~[na:1.6.0_32]
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:590) ~[na:1.6.0_32]
        at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:391) ~[na:1.6.0_32]
        at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:90) ~[na:1.6.0_32]
        at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92) ~[axis-1.4.jar:na]
        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) ~[axis-1.4.jar:na]
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) ~[axis-1.4.jar:na]
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) ~[axis-1.4.jar:na]
        ... 31 common frames omitted

I've tried setting a global user for the JIRA connection and I tried the account name (we use the same accountname and password for SCM Manager authentification and JIRA authentification).

Because of the SSL I wasn't able to easily debug via wireshark.

I hope to get some more information what exactly causes the connect to fail.

We are allowing third party API access in our JIRA connection and I'm able to access the JIRA-SOAP-URL via the browser.

Thank you very much!

Comments (3)

  1. Sebastian Sdorra repo owner
    • changed status to open

    The connection refused exception means that the server is not able to open a connection to the port of your jira instance. Are you sure that the scm-manager server can talk to the port of your jira instance? Can you test it with curl, wget or something else?

  2. Log in to comment