Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 26, 2009 at 03:22 AM

    Hi Sahad,

    I also got the same message while following that document... i ignored the message and ran the report, and it worked fine for me...

    What value you are entering ? the error is for conversion from int to string... have you added " " " while entering the query or parameter value ?

    Cheers !!

    Zaheer

    Add comment
    10|10000 characters needed characters exceeded