Uploaded image for project: 'Data Movement as a Platform'
  1. Data Movement as a Platform
  2. DMAAP-132

NullPointerException when logger is called MRSimplerBatchPublisher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Amsterdam Release
    • Amsterdam Release
    • None

      MRSimplerBatchPublisher will throw a NullPointerException when it tries to do any logging because the fLog object is null.

      The fLog should have been set in the super constructor (in MRBaseClient), but the version of the super constructor called by the MRSimplerBatchPublisher class:

          protected MRBaseClient ( Collection<String> hosts ) throws MalformedURLException

      does not set the fLog object. However, the other two versions of the constructor does.

      Suggested fix is to set the fLog object for all constructors of the MRBaseClient class.

            tianl tianl
            tianl tianl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: