Avatar of Manish
Manish
Flag 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)
JavaJava EE

Avatar of undefined
Last Comment
Manish

8/22/2022 - Mon
SOLUTION
Mick Barry

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Manish

ASKER
But we are providing him correct user id and password,
Mick Barry

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
Manish

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mick Barry

which may result in you getting html back, wouldn't it ;)

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Manish

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