|
(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? |
|
Hi David,
This error may be caused by an invalid account (bas username/password or not enough credentials). Best regards,
On Wed, Jun 20, 2012 at 4:33 PM, dasam <[hidden email]> wrote: (context - |
|
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 |
|
Yepp as i suspected, you must import the certificate into the castore of the jre that runs sonar. Then it works! :-)
/Dave |
|
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,
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 |
|
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. |
|
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? |
| Powered by Nabble | Edit this page |
