Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-1411

uncaught NPE in stats-log-converter -m

    Details

    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      This happens when a wildcard match on input file name (-m) results in empty file set. It should be caught and a helpful error message reported.

      dspace@demo:~/dspace/log$ ~/dspace/bin/dspace stats-log-converter -i dspace.log -o statistics.log -m -n
      Exception: null
      java.lang.NullPointerException
      at org.dspace.statistics.util.ClassicDSpaceLogConverter.main(ClassicDSpaceLogConverter.java:357)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)

      https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-api/src/main/java/org/dspace/statistics/util/ClassicDSpaceLogConverter.java#L357

        Attachments

          Activity

            People

            • Assignee:
              mwood Mark H. Wood
              Reporter:
              helix84 Ivan Masár
              Reviewer:
              Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: