Troubleshooting
Problem
A report with parameters can be run using the SDK, but when attempting to archive the report, the run fails.
Symptom
- SDK Java program receives the following:
AxisFault
faultCode: Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{
http://developer.cognos.com/schemas/bibus/3/}exception: <ns1:severity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" xsi:type="xs:string"/><ns1:errorCode xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" xsi:type="xs:string"/>java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.cognos.developer.schemas.bibus._3.ReportServiceStub.run(ReportServiceStub.java:7182)
at reportrunner.main(reportrunner.java:394)
- stackTrace from cogserver.log
9.24.252.204:9841 6120 2010-08-18 07:53:06.140 -5 asyncDeliveryThread-0 JSM 6010 4 Audit.JSM.Request CNC-SDS-0398 The SOAP Response envelope is...
...
<ns1:stackTrace xmlns:ns1="
http://xml.apache.org/axis/">java.lang.NullPointerException at com.cognos.jsmcommon.util.XMLUtils.escapeOnce(XMLUtils.java:161) at com.cognos.dls.fs.ArchiveOptionsProcessor.renderSimpleParmAsXML(ArchiveOptionsProcessor.java:583) at com.cognos.dls.fs.ArchiveOptionsProcessor.setParameters(ArchiveOptionsProcessor.java:252) at com.cognos.dls.fs.ArchiveOptionsProcessor.setDescriptor(ArchiveOptionsProcessor.java:433) at com.cognos.dls.fs.ArchiveOptionsProcessor.handleArchiveOptions(ArchiveOptionsProcessor.java:194) at com.cognos.dls.fs.ArchiveOptionsProcessor.process(ArchiveOptionsProcessor.java:128) at com.cognos.dls.fs.ArchiveOptionsProcessor.<init>(ArchiveOptionsProcessor.java:156) at com.cognos.dls.ArchiveOptionsRunnable.run(ArchiveOptionsRunnable.java:60) at com.cognos.dls.api.DeliveryServiceHandler.run(DeliveryServiceHandler.java:383) at com.cognos.dls.api.DeliveryServiceImpl.run(DeliveryServiceImpl.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) at com.cognos.jsmcommon.soap.service.SDSSoapService.process(SDSSoapService.java:190) at com.cognos.jsmcommon.soap.service.AxisServiceHandler.execute(AxisServiceHandler.java:287) at com.cognos.dls.service.DLSHandler.invokeImpl(DLSHandler.java:173) at com.cognos.pogo.pdk.BasicHandler.invoke(BasicHandler.java:263) at com.cognos.jsmcommon.soap.service.AsyncServiceImpl.invoke(AsyncServiceImpl.java:100) at com.cognos.pogo.async.impl.AsyncContextImpl.runRequest(AsyncContextImpl.java:199) at com.cognos.pogo.async.impl.AsyncRequestThread.run(AsyncRequestThread.java:57) </ns1:stackTrace>- SDK csharp program receives the following:
Namespace prefix 'soapenv' not defined
stack trace
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadFaultCode
(XmlReader reader)
at System.Web.Services.Protocols.SoapHttpClientProtocol.
ReadSoapException(XmlReader reader)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream
responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(String methodName, Object[] parameters)
at cognosdotnet_2_0.reportService1.run(searchPathSingleObject
objectPath, parameterValue[] parameterValues, option[] options)
at CognosReportingLibrary.ReportEngine.RunReport(ReportBook rBook)
in C:
\source\SVN\repository\Alpha\Cognos\CognosReportingLibrary\ReportEngine.
cs:line 46
[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Software Development Kit","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.4.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Software Development Kit","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.4.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SS6G84","label":"IBM Cognos Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
30 April 2025
UID
swg21444223