org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

JIRA | Bob Swift | 2 years ago
  1. 0

    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}

    JIRA | 2 years ago | Bob Swift
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
  2. 0

    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}

    JIRA | 2 years ago | Bob Swift
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
  3. 0

    The client to invoke an error is as follows:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected

    Stack Overflow | 3 years ago | user3138730
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apache Axis response without type

    Stack Overflow | 5 years ago | dirgee
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
  6. 0

    Problem while consuming a webservice that expects an xml packet as the request parameter (Web Services forum at JavaRanch)

    coderanch.com | 1 year ago
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Axis Web Services
      Call.invoke
      1. org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
      2. org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
      3. org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
      4. org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
      5. org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
      6. org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
      7. org.apache.axis.client.Call.invoke(Call.java:2467)
      8. org.apache.axis.client.Call.invoke(Call.java:2366)
      9. org.apache.axis.client.Call.invoke(Call.java:1812)
      9 frames
    3. org.swift.common
      ConfluenceserviceV2SoapBindingStub.login
      1. org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:6625)
      1 frame
    4. org.swift.confluence
      ConfluenceClient.serviceLogin
      1. org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:375)
      1 frame
    5. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:373)
      2. org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:360)
      3. org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:205)
      4. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:242)
      5. org.swift.common.cli.CliClient.doWork(CliClient.java:411)
      5 frames
    6. org.swift.confluence
      ConfluenceClient.main
      1. org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:174)
      1 frame