title: Jasper string functions method undefined error
body: <p>Using Jasper Reports 5.6.1.  Added some text functions to a previously working text field jrxml (just want to truncate if longer than 75 chars).  Works in iReport Studio, but not in Java.</p>
  
  <pre><code>&lt;textFieldExpression&gt;&lt;![CDATA[IF(LEN($F{AccountName})&lt;75,$F{AccountName},LEFT($F{AccountName},75)+"...")]]&gt;&lt;/textFieldExpression&gt;
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>Error occured while trying to fetch the HTML Output from the Jasper     Service (Errors were encountered when compiling report expressions class file:
  1. The method LEN(String) is undefined for the type ICC_1422636250096_198427
              value = IF(LEN(((java.lang.String)field_AccountName.getValue()))&lt;75,((java.lang.String)field_AccountName.getValue()),LEFT(((java.lang.String)field_AccountName.getValue()),75)+"..."); //$JR_EXPR_ID=9$
                         &lt;-&gt;
  2. The method LEFT(String, int) is undefined for the type ICC_1422636250096_198427
              value = IF(LEN(((java.lang.String)field_AccountName.getValue()))&lt;75,((java.lang.String)field_AccountName.getValue()),LEFT(((java.lang.String)field_AccountName.getValue()),75)+"..."); //$JR_EXPR_ID=9$
                                                                                                                                   &lt;--&gt;
  3. The method LEN(String) is undefined for the type ICC_1422636250096_198427
              value = IF(LEN(((java.lang.String)field_AccountName.getOldValue()))&lt;75,((java.lang.String)field_AccountName.getOldValue()),LEFT(((java.lang.String)field_AccountName.getOldValue()),75)+"..."); //$JR_EXPR_ID=9$
                         &lt;-&gt;
  4. The method LEFT(String, int) is undefined for the type ICC_1422636250096_198427
              value = IF(LEN(((java.lang.String)field_AccountName.getOldValue()))&lt;75,((java.lang.String)field_AccountName.getOldValue()),LEFT(((java.lang.String)field_AccountName.getOldValue()),75)+"..."); //$JR_EXPR_ID=9$
                                                                                                                                         &lt;--&gt;
  5. The method LEN(String) is undefined for the type ICC_1422636250096_198427
              value = IF(LEN(((java.lang.String)field_AccountName.getValue()))&lt;75,((java.lang.String)field_AccountName.getValue()),LEFT(((java.lang.String)field_AccountName.getValue()),75)+"..."); //$JR_EXPR_ID=9$
                         &lt;-&gt;
  6. The method LEFT(String, int) is undefined for the type ICC_1422636250096_198427
              value = IF(LEN(((java.lang.String)field_AccountName.getValue()))&lt;75,((java.lang.String)field_AccountName.getValue()),LEFT(((java.lang.String)field_AccountName.getValue()),75)+"..."); //$JR_EXPR_ID=9$
                                                                                                                                   &lt;--&gt;
  6 errors
  )
  </code></pre>
  
  <p>I checked packages in jasperreports-5.6.1.jar file, includes functions package.  Exhaustive web search turned up nothing.  What could it be?</p>