1
0
-1

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 .


    CommentAdd your comment...

    3 answers

    1.  
      2
      1
      0

      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()





        CommentAdd your comment...
      1.  
        2
        1
        0

        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. 

          CommentAdd your comment...
        1.  
          1
          0
          -1

          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


          1. ayohmang

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

          CommentAdd your comment...