Quantcast

Unable to link Jira with Sonar - SONARPLUGINS-1847

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to link Jira with Sonar - SONARPLUGINS-1847

dasam
(context - http://jira.codehaus.org/browse/SONARPLUGINS-1847?focusedCommentId=301516&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-301516)

hmm tested this on our test server and cant get this to work.

i.e from the Jira plugin connect to our Jira server.

any way i can narrow down my search for this error?

"Impossible to connect to the JIRA server (https://jiratest.home.com). Hide this message"

One way to avoid this would to add an "test connection" button to the Jira settings page so you know if the integration works. ( http://jira.codehaus.org/browse/SONARPLUGINS-1982 )

setup:
Jira 4.4.3 (over https://)
Sonar 3.1

ideas?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

Fabrice Bellingard-4
Hi David,

This error may be caused by an invalid account (bas username/password or not enough credentials).


Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Wed, Jun 20, 2012 at 4:33 PM, dasam <[hidden email]> wrote:
(context -
http://jira.codehaus.org/browse/SONARPLUGINS-1847?focusedCommentId=301516&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-301516)

hmm tested this on our test server and cant get this to work.

i.e from the Jira plugin connect to our Jira server.

any way i can narrow down my search for this error?

"Impossible to connect to the JIRA server (https://jiratest.home.com). Hide
this message"

One way to avoid this would to add an "test connection" button to the Jira
settings page so you know if the integration works. (
http://jira.codehaus.org/browse/SONARPLUGINS-1982 )

setup:
Jira 4.4.3 (over https://)
Sonar 3.1

ideas?

--
View this message in context: http://sonar.15.n6.nabble.com/Unable-to-link-Jira-with-Sonar-SONARPLUGINS-1847-tp5000023.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

dasam
This post was updated on .
The username/passwords work as we need to log into our sonar instance and our Jira instances. There they individually work.

Have this setup been tested over Jira https:// ?

I have an feeling it has something to do with the certificate, since i had to manually import the certificate from our jira server into the jre in order to work with the batch plugins for Jira for instance.

Thus i would potentially need to import the cert on the jre that is running sonar, i would believe. [note imported cert still doesn't fix issue]

is that assumption right?

i get this in the logs when trying to link to a review:

2012.06.25 14:14:01 ERROR o.s.s.ui.JRubyFacade  Fail to execute command: link-to-jira on review 12
java.lang.IllegalStateException: Impossible to connect to the JIRA server (https://jiratest.home.com).
        at org.sonar.plugins.jira.reviews.JiraIssueCreator.doCreateIssue(JiraIssueCreator.java:111) ~[na:na]
        at org.sonar.plugins.jira.reviews.JiraIssueCreator.createIssue(JiraIssueCreator.java:84) ~[na:na]
        at org.sonar.plugins.jira.reviews.LinkFunction.doExecute(LinkFunction.java:47) ~[na:na]
        at org.sonar.core.workflow.WorkflowEngine.execute(WorkflowEngine.java:109) ~[sonar-core-3.1.jar:na]
        at org.sonar.server.ui.JRubyFacade.executeReviewCommand(JRubyFacade.java:491) ~[classes/:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_05]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_05]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_05]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_05]
        at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:491) [jruby-complete-1.6.
....and 1000 more lines of stacktrace

and then
Caused by: org.apache.axis.AxisFault: ; nested exception is:
        java.net.UnknownHostException: jiratest.home.comhttps
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) ~[na:na]
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) ~[na:na]
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) ~[na:na]
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) ~[na:na]
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) ~[na:na]
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) ~[na:na]
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784) ~[na:na]
        at org.apache.axis.client.Call.invoke(Call.java:2767) ~[na:na]
        at org.apache.axis.client.Call.invoke(Call.java:2443) ~[na:na]
        at org.apache.axis.client.Call.invoke(Call.java:2366) ~[na:na]
        at org.apache.axis.client.Call.invoke(Call.java:1812) ~[na:na]
        at com.atlassian.jira.rpc.soap.client.JirasoapserviceV2SoapBindingStub.login(JirasoapserviceV2SoapBindingStub.java:5591) ~[na:na]
        at org.sonar.plugins.jira.soap.JiraSoapSession.connect(JiraSoapSession.java:62) ~[na:na]
        at org.sonar.plugins.jira.reviews.JiraIssueCreator.doCreateIssue(JiraIssueCreator.java:109) ~[na:na]
        ... 268 common frames omitted


/Dave


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

dasam
Yepp as i suspected, you must import the certificate into the castore of the jre that runs sonar. Then it works! :-)

/Dave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

Fabrice Bellingard-4
I will update the documentation page of the JIRA plugin so that other users don't get stuck on the same problem in the future.

Thanks for this feedback David!

Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Mon, Jun 25, 2012 at 4:22 PM, dasam <[hidden email]> wrote:
Yepp as i suspected, you must import the certificate into the castore of the
jre that runs sonar. Then it works! :-)

/Dave

--
View this message in context: http://sonar.15.n6.nabble.com/Unable-to-link-Jira-with-Sonar-SONARPLUGINS-1847-tp5000023p5000238.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

bogguard
This post has NOT been accepted by the mailing list yet.
Can you tell me how you added this certificate to the castore?
I'm currently using the default sonar installation but could use some help in adding such a certificate.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

dasam
I think you can use this,  http://www.windowsazure.com/en-us/develop/java/common-tasks/add-a-certificate-to-ca-store/ 

similar shuld be on *nix. when adding the certificate the default password for the jre is "changeit" if i remember correctly.

/Dave

On Tue, Jul 24, 2012 at 4:03 PM, bogguard [via Sonar] <[hidden email]> wrote:
Can you tell me how you added this certificate to the castore?
I'm currently using the default sonar installation but could use some help in adding such a certificate.


If you reply to this email, your message will be added to the discussion below:
http://sonar.15.n6.nabble.com/Unable-to-link-Jira-with-Sonar-SONARPLUGINS-1847-tp5000023p5001260.html
To unsubscribe from Unable to link Jira with Sonar - SONARPLUGINS-1847, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to link Jira with Sonar - SONARPLUGINS-1847

pulak
This post has NOT been accepted by the mailing list yet.
In reply to this post by dasam
Hello i am facing the same error but my jira is running http so no certificate. You mentioned it could be a limited permissions issue. What exact permission do we need in jira . I can browse to the URL and create issues. Jira 5.0.6 sonar 3.2 and 3.5.1 jira plugin 1.1 is my environment.  Another piece of info - if i test the same setup with jira 3.13 where I have admin rights then I can create issues from within sonar.
Loading...