← Back to team overview

dhis2-devs team mailing list archive

[Bug 761919] [NEW] Tally Sheet Generator - NumberFormatException sometimes..

 

Public bug reported:

I have an org structure:
RootOrg
  - SubOrg
      Org

If I select RootOrg or Org, there are no problems.. but if select SubOrg
I get:

[-] Exception (java.lang.NumberFormatException): For input string: "DDD"

    java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    java.lang.Integer.parseInt(Integer.java:449)
    java.lang.Integer.parseInt(Integer.java:499)
    org.hisp.dhis.tallysheet.DefaultTallySheetService.internalCreateTallySheet(DefaultTallySheetService.java:118)
    org.hisp.dhis.tallysheet.DefaultTallySheetService.createTallySheet(DefaultTallySheetService.java:88)
    org.hisp.dhis.reporting.tallysheet.action.ViewTallySheetAction.execute(ViewTallySheetAction.java:193)

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/761919

Title:
  Tally Sheet Generator - NumberFormatException sometimes..

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  I have an org structure:
  RootOrg
    - SubOrg
        Org

  If I select RootOrg or Org, there are no problems.. but if select
  SubOrg I get:

  [-] Exception (java.lang.NumberFormatException): For input string:
  "DDD"

      java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      java.lang.Integer.parseInt(Integer.java:449)
      java.lang.Integer.parseInt(Integer.java:499)
      org.hisp.dhis.tallysheet.DefaultTallySheetService.internalCreateTallySheet(DefaultTallySheetService.java:118)
      org.hisp.dhis.tallysheet.DefaultTallySheetService.createTallySheet(DefaultTallySheetService.java:88)
      org.hisp.dhis.reporting.tallysheet.action.ViewTallySheetAction.execute(ViewTallySheetAction.java:193)



Follow ups

References