Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Jasper Ireports Compile error for SAP IDM 7.1

Hi ALL,

As per the document How to Create Reports with SAP NetWeaver Identity Management , on page 45, On Jasper Ireports 1.3.1 when we click on u201C read fieldsu201D on u201CReport Query u201C window , it prompts that MSKEY parameter have no default value.

When we put a default value say u201C 2008u201D for MSKEY , then read fileds on Report query works fine. However when we run the u201Cexecute with active connection u201C, we are getting following error.

##

Errors compiling .\HowTo.jasper.

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

1. Cannot cast from int to String

value = (java.lang.String)(2008);

<----


>

2. Cannot cast from int to String

value = (java.lang.String)(2008);

<----


>

3. Cannot cast from int to String

value = (java.lang.String)(2008);

<----


>

3 errors

at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)

at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105)

at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)

at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109)

at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:535)

at java.lang.Thread.run(Thread.java:534)

Compilation running time: 109

##

If we remove the default value say u201C2008u201D from the parameter MSKEY and run u201Cexecute with active connectionu201D, we are getting below error. Error: Please set a default value for the paramter 'MSKEY' in the report query

Please advice how to solve this issue

Regards

Sahad

Former Member
Not what you were looking for? View more on this topic or Ask a question