Jump to content
We've recently updated our Privacy Statement, available here ×
  • java.lang.NumberFormatException: For input string: 'nu'


    ghudson_1
    • Features: JasperReports Server Version: v5.5 Product: JasperReports® Server

    java.lang.NumberFormatException: For input string: 'nu' when importing from 5.5 to 5.x

    Description:

    When using buildomatic to import from an earlier version of JRS to a newer version, a customer encountered this stacktrace within their buildomatic output:

    [toc]
    java.lang.NumberFormatException: For input string: "nu"
    java.lang.NumberFormatException: For input string: "nu" 
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
    at java.lang.Integer.parseInt(Integer.java:492) 
    at com.jaspersoft.jasperserver.api.metadata.common.service.impl.Cipherer.dehexify(Cipherer.java:215) 
    at com.jaspersoft.jasperserver.api.metadata.common.service.impl.Cipherer.decode(Cipherer.java:154) 
    at com.jaspersoft.jasperserver.export.modules.auth.beans.UserBean.copyTo(UserBean.java:128) .....
    

    JasperReport Server v5.5 contained a defect, #35723, characterized by incorrectly encypted data in user password tags of js-exports. This can cause an exception upon import in circumstances where the user can an empty/blank/null password in the JIUSER table.

    This empty/blank/null password circumstance is typically associated with externally authenticated users.


    Resolution:

    Two options exist for resolution:

    1. Manually edit each individual user's .xml file, removing 'null' from the password element, then import.  Find/replace tools (ReplaceText for win OS) can be executed against the export's directories of users.

      find:

      <password>ENC&lt;null&gt;</password>
      

      replace with:

      <password>ENC&lt;&gt;</password>
      

      Example sed commands: 

      sed -i 's/null//g' *.xml
      

      OR more robust 

      sed -i 's/ENC\&lt\;null\&gt\;/ENC\&lt\;\&gt\;/g'; *
      
    2. Patch your JasperReport Server v5.5 instance with the cumulative hotfix patch & re-run the original export. 


    Ref. Case #00050467


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...