Git commit with jira key does|nt create a comment in jira task and close keywords doesnt work either

Issue #721 closed
Anonymous created an issue

Hello I am trying the scm-jira-plugin and I currently manage to interact normally with git repos stored in SCM-manager. when I add a jira key, the link is made properly by scm-jira-plugin to our jira instance, but no comments are added to the jira issue.

I get these error messages in the log:

2015-05-13 12:49:47.710 [qtp11440528-19] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-13 12:49:48.327 [EventBus-4] INFO sonia.scm.repository.LastModifiedUpdateListener - update last modified date of repository E8PCYnwUr1 2015-05-13 12:49:48.329 [EventBus-4] INFO sonia.scm.repository.DefaultRepositoryManager - modify repository test of type git 2015-05-13 12:49:49.232 [EventBus-3] ERROR sonia.scm.jira.JiraIssueHandler - could not close jira issue sonia.scm.jira.JiraConnectException: Could not connect to jira instance at http://jira.ourserver.com The authentication was incorrect.

my config for the jira plugin :

url : http://jira.ourserver.com update jira issues: checked enable auto-close: checked role-visibility: jira-users

the rest is empty

Any idea if I am configuring something wrong or if this is bug?

Comments (12)

  1. Sebastian Sebastian repo owner

    It looks like the credentials of your scm-manager account does not match the credentials of your jira account. If you did not specify an connection user (username and password fields of the scm-jira-plugin configuration), scm-manager will try to use the username and password of the user which has done the push/commit.

  2. Georges-Henri Baron

    Ok, but I tried both with and whithout specifing the user in the jira-plugin. when reading th error log it looks the the plugin does'nt even find the user and password as it says :

    WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty

    I will try again by specifying the user in the plugin

  3. Georges-Henri Baron

    I tried by specifying the user in the plugin and I get this:

    2015-05-22 08:42:25.241:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2015-05-22 08:42:25.241:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,[file:/C:/scm-server/var/webapp/docroot/]} 2015-05-22 08:42:25.319:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:90 2015-05-22 08:42:25.351:INFO:oejus.SslContextFactory:Enabled Protocols [TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] 2015-05-22 08:42:25.366:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8181 2015-05-22 08:47:27.773 [qtp11440528-23] INFO sonia.scm.repository.DefaultRepositoryManager - modify repository test of type git 2015-05-22 08:48:48.289 [qtp11440528-19] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:48:52.961 [qtp11440528-25] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:50:06.820 [qtp11440528-21] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:50:13.258 [qtp11440528-19] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:50:15.523 [qtp11440528-23] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:53:30.789 [qtp11440528-33] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:54:23.773 [qtp11440528-34] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:54:56.680 [qtp11440528-23] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:55:00.539 [qtp11440528-33] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:55:04.617 [qtp11440528-21] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:55:43.539 [qtp11440528-33] WARN sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty 2015-05-22 08:55:46.820 [EventBus-1] INFO sonia.scm.repository.LastModifiedUpdateListener - update last modified date of repository E8PCYnwUr1 2015-05-22 08:55:46.820 [EventBus-1] INFO sonia.scm.repository.DefaultRepositoryManager - modify repository test of type git 2015-05-22 08:55:48.086 [EventBus-2] INFO sonia.scm.jira.SoapJiraHandler - try to close issue IOB-314 2015-05-22 08:55:48.351 [EventBus-2] ERROR sonia.scm.jira.JiraIssueHandler - could not close jira issue sonia.scm.jira.JiraException: Failed to close issue IOB-314. Unknown error occurred. at sonia.scm.jira.JiraExceptions.propagate(JiraExceptions.java:135) ~[scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.SoapJiraHandler.close(SoapJiraHandler.java:157) ~[scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.JiraIssueHandler.closeIssue(JiraIssueHandler.java:215) [scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.JiraIssueHandler.handleIssue(JiraIssueHandler.java:118) [scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.JiraChangesetPreProcessor.process(JiraChangesetPreProcessor.java:116) [scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.JiraIssuePostReceiveHook.handleIssueEvent(JiraIssuePostReceiveHook.java:168) [scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.JiraIssuePostReceiveHook.onEvent(JiraIssuePostReceiveHook.java:122) [scm-jira-plugin-1.15.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_45] 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(Unknown Source) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_45] at java.lang.Thread.run(Unknown Source) [na:1.8.0_45] Caused by: sonia.scm.jira.soap.RemoteException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[na:1.8.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[na:1.8.0_45] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[na:1.8.0_45] at java.lang.Class.newInstance(Unknown Source) ~[na:1.8.0_45] at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104) ~[axis-1.4.jar:na] at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90) ~[axis-1.4.jar:na] at sonia.scm.jira.soap.RemoteException.getDeserializer(RemoteException.java:75) ~[scm-jira-plugin-1.15.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_45] at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154) ~[axis-1.4.jar:na] at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84) ~[axis-1.4.jar:na] at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464) ~[axis-1.4.jar:na] at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547) ~[axis-1.4.jar:na] at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157) ~[axis-1.4.jar:na] at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) ~[axis-1.4.jar:na] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[na:1.8.0_45] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source) ~[na:1.8.0_45] at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) ~[axis-1.4.jar:na] at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) ~[axis-1.4.jar:na] at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) ~[axis-1.4.jar:na] at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) ~[axis-1.4.jar:na] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) ~[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.progressWorkflowAction(JirasoapserviceV2SoapBindingStub.java:6913) ~[scm-jira-plugin-1.15.jar:na] at sonia.scm.jira.SoapJiraHandler.close(SoapJiraHandler.java:152) ~[scm-jira-plugin-1.15.jar:na] ... 19 common frames omitted 2015-05-22 08:55:48.351 [EventBus-2] INFO sonia.scm.jira.SoapJiraHandler - logout from jira

  4. Log in to comment