SAXException while commenting
Problem
While adding a comment in JIRA, one that is meant to be added to the OTRS Ticket as well, an exception is listed in the JIRA logfile:
2014-10-02 13:53:19,062 pool-15-thread-1 ERROR admin 833x1179x1 m2vgdr 192.168.2.50 /rest/api/2/issue/OTRS-1/comment [apache.axis.client.Call] Exception: org.xml.sax.SAXException: Invalid element in de.catworkx.otrs.client.genericAgent.OTRS_TicketUpdateResponse - ArticleID at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at de.catworkx.otrs.client.genericAgent.GenericTicketConnector_ServiceStub.ticketUpdate(GenericTicketConnector_ServiceStub.java:390) at de.catworkx.jira.plugins.otrs.util.OTRSCreateAndUpdateTicket$1.call(OTRSCreateAndUpdateTicket.java:288) at de.catworkx.jira.plugins.otrs.util.OTRSCreateAndUpdateTicket$1.call(OTRSCreateAndUpdateTicket.java:286) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2014-10-02 13:53:19,064 http-bio-8080-exec-12 FATAL admin 833x1179x1 m2vgdr 192.168.2.50 /rest/api/2/issue/OTRS-1/comment [plugins.otrs.util.OTRSCreateAndUpdateTicket] updateOtrsTicketInternal: ExecutionException: could not notify otrs @ http://cat-pc-050.catworkx.de/otrs java.util.concurrent.ExecutionException: org.xml.sax.SAXException: Invalid element in de.catworkx.otrs.client.genericAgent.OTRS_TicketUpdateResponse - ArticleID at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at de.catworkx.jira.plugins.otrs.util.OTRSCreateAndUpdateTicket.updateOtrsTicketInternal(OTRSCreateAndUpdateTicket.java:296) [...]
Solution
This error can be ignored since:
- It occurs only due to a bug in the Webserivce provided by OTRS AG that does not reflect their own WSDL.
- Even though an error is reported, the comment is successfully added to the OTRS Ticket.
Related Articles