COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => SDK => Topic started by: harshc on 30 Aug 2013 01:48:48 PM

Title: Code breaks when SDK upgraded from 10.1.1 to 10.2.1
Post by: harshc on 30 Aug 2013 01:48:48 PM
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?

Title: Re: Code breaks when SDK upgraded from 10.1.1 to 10.2.1
Post by: dew on 04 Sep 2013 03:07:42 AM
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 :)
Title: Re: Code breaks when SDK upgraded from 10.1.1 to 10.2.1
Post by: harshc on 04 Sep 2013 10:46:42 AM
Thanks for the reply, but what is the src that you are passing to your method?
Title: Re: Code breaks when SDK upgraded from 10.1.1 to 10.2.1
Post by: dew on 09 Sep 2013 03:33:42 AM
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.
Title: Re: Code breaks when SDK upgraded from 10.1.1 to 10.2.1
Post by: agallard4 on 04 Feb 2014 08:19:48 AM
Hello,
I have exactly the same problem. Did you solve it? How?


Thanks
Title: Re: Code breaks when SDK upgraded from 10.1.1 to 10.2.1
Post by: rcamarda390 on 19 Feb 2014 11:44:30 AM
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: