Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-1953

CLI treats OutOfMemoryError as a bug

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.3.0
    • CLI

    Description

      When an OutOfMemoryError is throw, the CLI reports it as as a bug with the banner:

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      !!   An unexpected exception occurred. This is a bug!   !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
      Please report this bug and help us fix it: ...
      

      Although this is an unexpected exception, it probably isn't really a bug in most cases. It usually means that default JVM memory was not sufficient for the size of files to be parsed. Instead of saying this is a bug, we should print out a message that says how one can increase this limit (e.g. setting DAFFODIL_JAVA_OPTS environment variable).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dfthompson Dave Thompson
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment