Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1271

Incorrect configuration causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • Sinks+Sources
    • None

    Description

      Problem Description
      ---------------------
      An incorrect configuration something like below can result in NPE in FLUME.

      agent1.sources.seqsource.type=seq
      #agent1.sources.seqsource.channels=ch1

      Exception Details
      -----------------
      2012-06-11 15:08:28,748 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
      java.lang.NullPointerException
      at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.loadSources(PropertiesFileConfigurationProvider.java:324)
      at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.load(PropertiesFileConfigurationProvider.java:222)
      at org.apache.flume.conf.file.AbstractFileConfigurationProvider.doLoad(AbstractFileConfigurationProvider.java:123)
      at org.apache.flume.conf.file.AbstractFileConfigurationProvider.access$300(AbstractFileConfigurationProvider.java:38)

      Cause
      ------
      PropertiesFileConfigurationProvider->loadSources() {

      ...
      ...
      String[] channelNames = context.getString(
      BasicConfigurationConstants.CONFIG_CHANNELS).split("
      s+");
      ...
      }

      Attachments

        1. FLUME-1271.patch
          2 kB
          Hari Shreedharan

        Activity

          People

            hshreedharan Hari Shreedharan
            inder Inder SIngh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: