If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Code breaks when SDK upgraded from 10.1.1 to 10.2.1

Started by harshc, 30 Aug 2013 01:48:48 PM

Previous topic - Next topic

harshc

We have some code around the Cognos SDK functionality which brings the reports out to a servlet in the form of a String (HTML content). It works fine on SDK ver. 10.1.1 but when we replace the 10.1.1 jars (axis.jar, axisCognosClient.jar, cognos-axis.jar, cognosClient.jar) with 10.2.1 version, we get errors.

Specifically, we can connet to the report service, also interrogate what input parameters a report needs. So, the connection to the report service seems to be fin.
But when we try to use the run method to extract the report String, then we get an error.

Details below:
The code breaks on on this line: AsynchReply res = repService.run(sps, prmValArr, runOptions);

Where:
repService = ReportService_PortType
sps = SearchPathSingleObject
prmValArr = ParameterValue[]
runOptions = Option[]

Error is:

[2013-08-30 14:45:01,124] DEBUG [http-bio-8080-exec-2] [ReportRunner.java:518] - Message:   Server Error
Severity:  Fatal
ErrorCode: 0
Details:
   RSV-SRV-0040 The report server encountered an internal error. Check additional information associated with this error message. If cause of problem cannot be ascertained, increase the logging level in the IBM Cognos administration tool and reproduce the conditions that caused the error. If the problem persists, see the problem determination information on the IBM Cognos Support Portal page at http://www-947.ibm.com/support/entry/portal/Overview/Software/Information_Management/Cognos_Business_Intelligence.
   CCLUnknownError:0:Fatal:
   RSV-SRV-0042 Trace back:
   RSReportService.cpp(765): CCLUnknownError: CCL_CAUGHT: RSReportService::processImpl()
   RSReportServiceMethod.cpp(258): CCLUnknownError: CCL_RETHROW: RSReportServiceMethod::process(): asynchRun_Request
   RSASyncExecutionThread.cpp(838): CCLUnknownError: RSASyncExecutionThread::checkException
   RSASyncExecutionThread.cpp(307): CCLUnknownError: CCL_CAUGHT: RSASyncExecutionThread::runImpl(): asynchRun_Request

Has anyone faced this issue before? Any changes or gotchas when upgrading to the Cognos 10.2.1 SDK?


dew

Hi there.

I have not used 10.2 before, however this might help you to get a better idea of the error message:

 
private static void useAxisInterface_dumpToString(AxisFault ex, String src)
{
String details = ex.dumpToString();
System.out.println("\n\n1) Axis Fault message in: " + src);
System.out.println("-------------------------\n");
String message = ex.getFaultString();
System.out.println("message: " + message + "\n");
logger.error("Axis error - "+ src+": " +message );
System.out.println(details);
}


I call this method inside a catch(AxisFault e)  { }  block to get extra info on the exact error.


Hope this helps :)

harshc

Thanks for the reply, but what is the src that you are passing to your method?

dew

Hi
The "src" is just a description of the method that caught the exception.   I found it helpful to send details about the query( e.g. searchpath or something) to help track down the problem.

agallard4

Hello,
I have exactly the same problem. Did you solve it? How?


Thanks

rcamarda390

I don't know if related or not, but it appears that the order of options changed from 10.1 to 10.2
Our code builds an array in this order of options:
  • saveoutput, 1, outputformat, 2 outputEncapsulation, 3 wait, 4 prompt user.
    I found this in <<install>>\c10\sdk\csharp\ExecuteReport\ExecuteReport.cs example:
    arrRunOpts[0] = blnPromptOption;
    arrRunOpts[1] = outputFormat;
    arrRunOpts[2] = primaryWait;
    arrRunOpts[3] = blnSaveOption;
    It appears to me the order of the array has changed.
    Matters?