org.xml.sax.SAXException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Occassionally a JIRA or Confluence installation can start having SOAP API issues as documented in these issues: - [JRA-20351|https://jira.atlassian.com/browse/JRA-20351] - [CONF-30981|https://jira.atlassian.com/browse/CONF-30981] The problem is fixed by restarting the application. This can be a real pain for automation. While the CLI continues to replace SOAP APIs with newer REST APIs, there are still many missing APIs in the respective REST implementations, so the cutover is going to take a long time. So this problem will persist. Atlassian is not currently planning on fixing this but has provided a client based workaround that will handle the bad data coming from the server. We are including that in the CLI to pre-emptively help avoid the problem. The problem can surface in a number of ways, but here is an example of the problem: {noformat} org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:6625) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:375) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:373) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:360) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:205) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:242) at org.swift.common.cli.CliClient.doWork(CliClient.java:411) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:174) 2036 [main] ERROR org.apache.axis.client.Call - Exception: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:6625) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:375) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:383) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:360) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:205) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:242) at org.swift.common.cli.CliClient.doWork(CliClient.java:411) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:174) {noformat}
    via by Bob Swift,
  • Occassionally a JIRA or Confluence installation can start having SOAP API issues as documented in these issues: - [JRA-20351|https://jira.atlassian.com/browse/JRA-20351] - [CONF-30981|https://jira.atlassian.com/browse/CONF-30981] The problem is fixed by restarting the application. This can be a real pain for automation. While the CLI continues to replace SOAP APIs with newer REST APIs, there are still many missing APIs in the respective REST implementations, so the cutover is going to take a long time. So this problem will persist. Atlassian is not currently planning on fixing this but has provided a client based workaround that will handle the bad data coming from the server. We are including that in the CLI to pre-emptively help avoid the problem. The problem can surface in a number of ways, but here is an example of the problem: {noformat} org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:6625) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:375) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:373) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:360) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:205) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:242) at org.swift.common.cli.CliClient.doWork(CliClient.java:411) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:174) 2036 [main] ERROR org.apache.axis.client.Call - Exception: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:6625) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:375) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:383) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:360) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:205) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:242) at org.swift.common.cli.CliClient.doWork(CliClient.java:411) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:174) {noformat}
    via by Bob Swift,
  • Apache Axis response without type
    via Stack Overflow by dirgee
    ,
  • Consuming Reports Web Service
    via oreports by karthik_k
    ,
    • org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:6625) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:375) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:383) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:360) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:205) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:242) at org.swift.common.cli.CliClient.doWork(CliClient.java:411) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:174)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates