Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28381

My mantis plugin does not show me any project and category

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • mantis-plugin
    • Windows 7 32-bit, Jenkins LTS (1.596.2), Mantis v1.2.19

      My installation has been working for some years now.
      I upgraded mantis plugin from 0.25 to 0.26 yesterday.
      Today I modified job and project/category shows me only "-".
      As soon as I open an exisiting job I see values from xml config file for a short time and it switches to "-".

      After upgrade I downgraded plugin back to 0.25 and it still the same.
      I compared config files from "hudson.plugins.mantis.MantisProjectProperty" (using config backup plugin) and they are byte identical.

      I did not modified mantis install the last months.
      So I ran out of idea.

      Tried to log something using logger "jenkins.plugins.mantis", but it is empty.

      Any ideas?

          [JENKINS-28381] My mantis plugin does not show me any project and category

          rake kniven added a comment -

          Any ideas?
          Just upgraded LTS version to Jenkins ver. 1.596.3 but no success.

          There is only one log entry:
          Failed to connect http://x.x.x.x/mantis/ (cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.).

          rake kniven added a comment - Any ideas? Just upgraded LTS version to Jenkins ver. 1.596.3 but no success. There is only one log entry: Failed to connect http://x.x.x.x/mantis/ (cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.).

          sogabe added a comment -

          > Tried to log something using logger "jenkins.plugins.mantis", but it is empty.

          you have to use logger "hudson.plguins.mantis", not "jenkins.plugins.mantis".

          sogabe added a comment - > Tried to log something using logger "jenkins.plugins.mantis", but it is empty. you have to use logger "hudson.plguins.mantis", not "jenkins.plugins.mantis".

          rake kniven added a comment -

          Hello, have you seen my last posting from today?
          There was one log message.

          But for sure I will change logger like recommended from you and will come back tomorrow.

          rake kniven added a comment - Hello, have you seen my last posting from today? There was one log message. But for sure I will change logger like recommended from you and will come back tomorrow.

          rake kniven added a comment - - edited

          Made a VPN and changed to "hudson.plguins.mantis".
          Got a lot more log messages now

          Here we go. Just opened one job config and got:
          {{May 28, 2015 9:40:02 PM INFO hudson.plugins.mantis.soap.mantis120.MantisSessionImpl

          Mantis version is 1.2.X

          May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler

          Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <soapenv:Body>
          <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
          <username xsi:type="xsd:string">xxx</username>
          <password xsi:type="xsd:string">xxx</password>
          </ns1:mc_projects_get_user_accessible>
          </soapenv:Body>
          </soapenv:Envelope>

          May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler

          Response: (null)

          May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler

          Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <soapenv:Body>
          <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
          <username xsi:type="xsd:string">xxx</username>
          <password xsi:type="xsd:string">xxx</password>
          </ns1:mc_projects_get_user_accessible>
          </soapenv:Body>
          </soapenv:Envelope>

          May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler

          Response: <?xml version="1.0" encoding="UTF-8"?>
          <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://futureware.biz/mantisconnect" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:mc_projects_get_user_accessibleResponse><return SOAP-ENC:arrayType="ns1:ProjectData[16]" xsi:type="SOAP-ENC:Array"><item xsi:type="ns1:ProjectData"><id xsi:type="xsd:integer">8</id><name xsi:type="xsd:string">xxx</name><status xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">50</id><name xsi:type="xsd:string">stabil</name></status><enabled xsi:type="xsd:boolean">true</enabled><view_state xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">öffentlich</name></view_state><access_min xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">Betrachter</name></access_min><file_path xsi:type="xsd:string"></file_path>

          ... Big, big, project list xml ...

          <subprojects SOAP-ENC:arrayType="ns1:ProjectData[0]" xsi:type="SOAP-ENC:Array"/></item></return></ns1:mc_projects_get_user_accessibleResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
          }}

          Looks like connection is ok and list of projects and categories has been received.

          Could this be an issue of latest java 8 u45 update? That's all I remember doing the last weeks.

          rake kniven added a comment - - edited Made a VPN and changed to "hudson.plguins.mantis". Got a lot more log messages now Here we go. Just opened one job config and got: {{May 28, 2015 9:40:02 PM INFO hudson.plugins.mantis.soap.mantis120.MantisSessionImpl Mantis version is 1.2.X May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect"> <username xsi:type="xsd:string">xxx</username> <password xsi:type="xsd:string">xxx</password> </ns1:mc_projects_get_user_accessible> </soapenv:Body> </soapenv:Envelope> May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler Response: (null) May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect"> <username xsi:type="xsd:string">xxx</username> <password xsi:type="xsd:string">xxx</password> </ns1:mc_projects_get_user_accessible> </soapenv:Body> </soapenv:Envelope> May 28, 2015 9:40:02 PM FINE hudson.plugins.mantis.soap.LogHandler Response: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://futureware.biz/mantisconnect" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:mc_projects_get_user_accessibleResponse><return SOAP-ENC:arrayType="ns1:ProjectData [16] " xsi:type="SOAP-ENC:Array"><item xsi:type="ns1:ProjectData"><id xsi:type="xsd:integer">8</id><name xsi:type="xsd:string">xxx</name><status xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">50</id><name xsi:type="xsd:string">stabil</name></status><enabled xsi:type="xsd:boolean">true</enabled><view_state xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">öffentlich</name></view_state><access_min xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">Betrachter</name></access_min><file_path xsi:type="xsd:string"></file_path> ... Big, big, project list xml ... <subprojects SOAP-ENC:arrayType="ns1:ProjectData [0] " xsi:type="SOAP-ENC:Array"/></item></return></ns1:mc_projects_get_user_accessibleResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> }} Looks like connection is ok and list of projects and categories has been received. Could this be an issue of latest java 8 u45 update? That's all I remember doing the last weeks.

          rake kniven added a comment -

          Any ideas?
          We are using mantis and jenkins a lot and would appreciate any help.

          rake kniven added a comment - Any ideas? We are using mantis and jenkins a lot and would appreciate any help.

          rake kniven added a comment -

          Spent some more time and have it working again.
          What I did:

          1. Removed mantis plugin 0.26
          2. Restarted jenkins
          3. Installed mantis plugin 0.25 (hpi file from archive)
          4. Restarted jenkins
          5. Entered mantis user credentials again
          6. Restarted jenkins
          7. Configured job and now project and category Combobox has entries again.

          I am happy so far.
          Bad side: I will not upgrade to 0.26 and further releases due to named problems.

          I am willing to support plugin devs in testing. Just let me know.

          rake kniven added a comment - Spent some more time and have it working again. What I did: Removed mantis plugin 0.26 Restarted jenkins Installed mantis plugin 0.25 (hpi file from archive) Restarted jenkins Entered mantis user credentials again Restarted jenkins Configured job and now project and category Combobox has entries again. I am happy so far. Bad side: I will not upgrade to 0.26 and further releases due to named problems. I am willing to support plugin devs in testing. Just let me know.

          rake kniven added a comment -

          It happens again and my previous posting does not help.
          Jenkins version and mantis plugin version is the same.
          Just compared their config to the working ones from a week ago and they are binary identical.
          Log looks like in my previous posting.

          What we have done: We rebooted our window machine.

          Any hints for me?

          rake kniven added a comment - It happens again and my previous posting does not help. Jenkins version and mantis plugin version is the same. Just compared their config to the working ones from a week ago and they are binary identical. Log looks like in my previous posting. What we have done: We rebooted our window machine. Any hints for me?

          rake kniven added a comment - - edited

          Still not working. Made another observation:
          We have many jobs with "update ticket at mantis" as post build action. These jobs are untouched for a while and so they have valid project and category ids.
          Whenever such a job should update ticket my jenkins log says:

          {{Jun 17, 2015 7:30:30 PM WARNING hudson.plugins.mantis.Updater perform

          Failed to add note to Mantis issue #hudson.plugins.mantis.changeset.SubversionChangeSet@55ebf4.
          hudson.plugins.mantis.MantisHandlingException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
          at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.getIssue(MantisSessionImpl.java:64)
          at hudson.plugins.mantis.MantisSite.getIssue(MantisSite.java:144)
          at hudson.plugins.mantis.Updater.perform(Updater.java:70)
          at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          at hudson.model.Run.execute(Run.java:1783)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)
          Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
          at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
          at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
          at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
          at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
          at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
          at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
          at org.apache.axis.client.Call.invoke(Call.java:2767)
          at org.apache.axis.client.Call.invoke(Call.java:2443)
          at org.apache.axis.client.Call.invoke(Call.java:2366)
          at org.apache.axis.client.Call.invoke(Call.java:1812)
          at hudson.plugins.mantis.soap.mantis120.MantisConnectBindingStub.mc_issue_get(MantisConnectBindingStub.java:1901)
          at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.getIssue(MantisSessionImpl.java:61)
          ... 12 more
          Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
          at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
          at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
          at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
          at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
          ... 22 more
          }}

          Does this help in any way to find the cause of my problems?

          rake kniven added a comment - - edited Still not working. Made another observation: We have many jobs with "update ticket at mantis" as post build action. These jobs are untouched for a while and so they have valid project and category ids. Whenever such a job should update ticket my jenkins log says: {{Jun 17, 2015 7:30:30 PM WARNING hudson.plugins.mantis.Updater perform Failed to add note to Mantis issue #hudson.plugins.mantis.changeset.SubversionChangeSet@55ebf4. hudson.plugins.mantis.MantisHandlingException: org.xml.sax.SAXParseException: Content is not allowed in prolog. at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.getIssue(MantisSessionImpl.java:64) at hudson.plugins.mantis.MantisSite.getIssue(MantisSite.java:144) at hudson.plugins.mantis.Updater.perform(Updater.java:70) at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1783) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at hudson.plugins.mantis.soap.mantis120.MantisConnectBindingStub.mc_issue_get(MantisConnectBindingStub.java:1901) at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.getIssue(MantisSessionImpl.java:61) ... 12 more Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) ... 22 more }} Does this help in any way to find the cause of my problems?

          rake kniven added a comment - - edited

          I finally found the cause.
          On mantis we have a plugin called "Reminder" to send out due date notifications. As soon as this plugin is active the trouble starts. Tried it now a few times and behaviour is reproducible.
          Openend ticket at mantisbt. Link: https://www.mantisbt.org/bugs/view.php?id=19848

          You can close this issue from my side.

          Plugin loads language file which is UTF8 with BOM. As soon as I remove BOM connection works fine.

          rake kniven added a comment - - edited I finally found the cause. On mantis we have a plugin called "Reminder" to send out due date notifications. As soon as this plugin is active the trouble starts. Tried it now a few times and behaviour is reproducible. Openend ticket at mantisbt. Link: https://www.mantisbt.org/bugs/view.php?id=19848 You can close this issue from my side. Plugin loads language file which is UTF8 with BOM. As soon as I remove BOM connection works fine.

          rake kniven added a comment -

          Cause by wrong formatted xml string. It has a BOM somewhere in the middle.
          Java SAX is not very tolerant

          rake kniven added a comment - Cause by wrong formatted xml string. It has a BOM somewhere in the middle. Java SAX is not very tolerant

            sogabe sogabe
            rakekniven rake kniven
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: