Invalid Jasper Report Definition (JRXML)

Confluence User - 21 Jan, 2020

I'm using TIBCO Jaspersoft® Studio 6.10.0. 


im encoutered an error when running in joget workflow 5 enterprise jasper report  menu.

how to make joget recognise expression syntax in jasper report. 

Errors were encountered when compiling report expressions class file: 1. The method UPPER(String) is undefined for the type SURAT_KELULUSAN_GALI_TELAGA_1579579485633_408355 value = "PERMOHONAN KEBENARAN MENGGALI TELAGA (TAPAK : " + UPPER( ((java.lang.String)field_c_alamat_tapak.getValue())) + ")"; //$JR_EXPR_ID=18$ <---> 2. The method UPPER(String) is undefined for the type SURAT_KELULUSAN_GALI_TELAGA_1579579485633_408355 value = "PERMOHONAN KEBENARAN MENGGALI TELAGA (TAPAK : " + UPPER( ((java.lang.String)field_c_alamat_tapak.getOldValue())) + ")"; //$JR_EXPR_ID=18$ <---> 3. The method UPPER(String) is undefined for the type SURAT_KELULUSAN_GALI_TELAGA_1579579485633_408355 value = "PERMOHONAN KEBENARAN MENGGALI TELAGA (TAPAK : " + UPPER( ((java.lang.String)field_c_alamat_tapak.getValue())) + ")"; //$JR_EXPR_ID=18$ <---> 3 errors .


try to use simple strings function : 

UPPER("Test" )


Cause:
Errors were encountered when compiling report expressions class file: 1. The method UPPER(String) is undefined for the type TESTFUNCTION_1579580245306_86231 value = UPPER("Test" ); //$JR_EXPR_ID=8$ <---> 2. The method UPPER(String) is undefined for the type TESTFUNCTION_1579580245306_86231 value = UPPER("Test" ); //$JR_EXPR_ID=8$ <---> 3. The method UPPER(String) is undefined for the type TESTFUNCTION_1579580245306_86231 value = UPPER("Test" ); //$JR_EXPR_ID=8$ <---> 3 errors .


jasper

4


21 Jan, 2020 •
confluenceUser •
•
confluenceUser •

Hi,

I wasn't able to use some expressions on jasper. I had to modify the request to have the values directly on the output and not to use expressions.

If you find how to do it, I would like to know me too.

Regards


21 Jan, 2020 •
confluenceUser •
•
confluenceUser •

Hi, I did on a google search of the error message and found this https://stackoverflow.com/questions/28243558/jasper-string-functions-method-undefined-error/28352564#28352564. You can try to add the additional jar library that contains the missing function. 

22 Jan, 2020 •
confluenceUser •
•
confluenceUser •

hi, i'm  able to fix the error   by using other equivalent function to UPPER(). you can try using toUpperCase() java method. 

for example in expression editor : 


"this is lower case".toUpperCase()





22 Jan, 2020 •
confluenceUser •
•
confluenceUser •

hi, can you show sample expression/what you want to achive,  that you're trying to use ? 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print