Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-167

LogSystem NPE s

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.1
    • None
    • Engine
    • None
    • Operating System: All
      Platform: All
    • 19137

    Description

      Unfortunately, the used LogSystem is unstable.
      1) SimpleLog4JSystems:

      • if runtime.log.logsystem.log4j.category is not set (default), the cast to
        string throws an NPE, when trying to init(), i.e. obtain the categoryname.
      • so first fix could be:

        Object categoryname = o rsvc.getProperty("runtime.log.logsystem.log4j.category");

      if ( categoryname != null )
      {
      logger = Logger.getLogger( categoryname.toString() );
      ...

      • if null, same issue applies to the logfile stuff
      • furthermore internalInit( logfile ) would throw an NPE from
        java.io.FileOutputStream.<init>
      • finally a log is there, but uninitialized (i.e. useless) and
      • a misleading "PANIC: ..." message is thrown to stdout

      almost the same counts for the Log4JLogSystem as well as the AvalonLogSystem ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            elkner@linofee.org Jens Elkner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: