on 04-13-2010 9:49 AM
Hi experts,
I tried to get and display on a jsp page the CrystalReport prompts and I have this error !!
The tomcat has not found IParameterFieldDiscreteValue class, do you Know wich jar contains this class ?
Thanku2019s in advance
The error message :
010-04-12 07:32:09,858 - ERROR - [[faces]:253] Servlet.service() for servlet faces threw exception
java.lang.NoClassDefFoundError: com/crystaldecisions/sdk/occa/report/data/IParameterFieldDiscreteValue
at com.crystaldecisions.sdk.plugin.desktop.report.internal.j.createCollectionObject(Unknown Source)
at com.crystaldecisions.sdk.properties.internal.AbstractSDKList.get(AbstractSDKList.java:134)
The source :
final String query = "Select * from CI_INFOOBJECTS Where SI_ID = " + reportId;
LOG.debug(query);
List<BOPrompt> result = new ArrayList<BOPrompt>();
IInfoObjects rs = null;
try {
rs = infoStore.query(query);
if (rs.size() > 0) {
IInfoObject boInfoObject = (IInfoObject) rs.get(0);
IReport theReport = (IReport)boInfoObject;
// If the report has parameters
for (int i = 0; i < theReport.getReportParameters().size(); i++) {
IReportParameter reportParameter = (IReportParameter)theReport.getReportParameters().get(i);
// Create a new prompt object, copy the values
// from the parameters read out of the IReport object
LOG.info("Prompt "i": "reportParameter.getParameterName() " type "+reportParameter.getValueType());
}
}
} catch (SDKException ex) {
final String errMsg = "Unable to execute query.";
LOG.error(errMsg);
throw new DAOException(errMsg, ex);
}
IParameterFieldDiscreteValue is in rascore.jar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.