Topic
2 replies Latest Post - ‏2014-07-31T14:32:48Z by bobr1
shylajaManohar
shylajaManohar
1 Post
ACCEPTED ANSWER

Pinned topic Cognos 10.2 JAVA SDK Integration - Using Siteminder

‏2013-05-20T03:41:35Z |

Hi All,

We are upgrading Cognos8.3 to Cognos 10.2. Where we are in a postion to migrate the related java SDK code changes. After following the SDK changes guide provided, We were able to successfully submit and view reports using SDK in new Cognos 10.2 Framework manager deployed in an server which dosent have siteminder.
 

But when we try modfying the coding changes for an application that connects to Cognos 10.2 Framework manager that uses siteminder login, We are ending up with an SAX exception error whenever we try using any service(ContentManagerService / ReportService / MonitorService) for the second time.Please find the stack trace attached below. We confirmed that there is no diference in siteminder policy configuration between cognos 8.3 and Cognos 10.2. No information provided in the SDK guide for the Cognos connection which uses siteminder as login.

It would be reallly helpful if any one faced similiar type of issue and resolved it or implemented SDK changes for Cognos10.2 using siteminder.

Any suggestions / questions will also be really appreciatable.

Error Logs
 

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

 faultString: org.xml.sax.SAXException: Bad envelope tag:  HTML

faultActor:

 faultNode:

 faultDetail:

      {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad envelope tag:  HTML

      at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)

      at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)

      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.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.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

      at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:698)

      at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

      at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)

      at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

      at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

      at org.apache.axis.client.Call.invoke(Call.java:2767)

      at org.apache.axis.client.Call.invoke(Call.java:2443)

      at org.apache.axis.client.Call.invoke(Call.java:2366)

      at org.apache.axis.client.Call.invoke(Call.java:1812)

      at com.cognos.developer.schemas.bibus._3.ReportServiceStub.wait(ReportServiceStub.java:7838)

      at SubmitAndViewReportSuccess.main(SubmitAndViewReportSuccess.java:194)

 

      {http://xml.apache.org/axis/}hostname:pc148013

 

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

      at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:703)

      at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

      at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)

      at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

      at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

      at org.apache.axis.client.Call.invoke(Call.java:2767)

      at org.apache.axis.client.Call.invoke(Call.java:2443)

      at org.apache.axis.client.Call.invoke(Call.java:2366)

      at org.apache.axis.client.Call.invoke(Call.java:1812)

      at com.cognos.developer.schemas.bibus._3.ReportServiceStub.wait(ReportServiceStub.java:7838)

      at SubmitAndViewReportSuccess.main(SubmitAndViewReportSuccess.java:194)

Caused by: org.xml.sax.SAXException: Bad envelope tag:  HTML

      at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)

      at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)

      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.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.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

      at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:698)

      ... 14 more

Error in execute report in method executeReportByReportNet: ; nested exception is:

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

 

Thanks,
Shylaja.