Link to home
Create AccountLog in
Avatar of Manish
ManishFlag for India

asked on

org.xml.sax.SAXException: Bad envelope tag: html

Hi,
  I am getting following exception in our application.
What would be reason? How to solve this?
Only change we did was we changed server url of actuate report.
It is giving exception when it is going through login flow.

 AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: org.xml.sax.SAXException: Bad envelope tag:  html
 faultActor: null
 faultDetail:
      stackTrace: org.xml.sax.SAXException: Bad envelope tag:  html
      at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:106)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:870)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:213)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:457)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2046)
      at org.apache.axis.client.Call.invoke(Call.java:2016)
      at org.apache.axis.client.Call.invoke(Call.java:1786)
      at org.apache.axis.client.Call.invoke(Call.java:1711)
      at org.apache.axis.client.Call.invoke(Call.java:1251)
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Manish

ASKER

But we are providing him correct user id and password,
could be something else causing it to return html.
you need to have a look at the details of the response, that should hopefully tell you the cause.

ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
which may result in you getting html back, wouldn't it ;)

Avatar of Manish

ASKER

ya object,
  But that is not 100 correct solution that y I am dividing it.