java.lang.IllegalArgumentException: Must supply a valid regex string

GitHub | MC17 | 4 months ago
  1. 0

    插件在flume1.6下遇到了一些问题

    GitHub | 4 months ago | MC17
    java.lang.IllegalArgumentException: Must supply a valid regex string
  2. 0

    12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 1 12/05/22 08:24:21 INFO node.FlumeNode: Flume node starting - agent1 12/05/22 08:24:21 INFO nodemanager.DefaultLogicalNodeManager: Node manager starting 12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 10 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Configuration provider starting 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Reloading configuration file:/flumeNG/test1.cnf 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Added sinks: sink Agent: agent1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Post-validation flume configuration contains configuration for agents: [agent1] 12/05/22 08:24:22 INFO properties.PropertiesFileConfigurationProvider: Creating channels 12/05/22 08:24:23 INFO properties.PropertiesFileConfigurationProvider: created channel ch1 12/05/22 08:24:23 INFO sink.DefaultSinkFactory: Creating instance of sink sink typefile_roll >>>>>>>> content of directory:null <<<<<<<<<< 12/05/22 08:24:23 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows. java.lang.IllegalArgumentException: Directory may not be nullnull at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) at org.apache.flume.sink.RollingFileSink.configure(RollingFileSink.java:85) at org.apache.flume.conf.Configurables.configure(Configurables.java:41) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.loadSinks(PropertiesFileConfigurationProvider.java:350) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.load(PropertiesFileConfigurationProvider.java:223) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.doLoad(AbstractFileConfigurationProvider.java:123) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.access$300(AbstractFileConfigurationProvider.java:38) at org.apache.flume.conf.file.AbstractFileConfigurationProvider$FileWatcherRunnable.run(AbstractFileConfigurationProvider.java:202) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Config: agent1.channels.ch1.type = memory agent1.sources.avro-source1.channels = ch1 agent1.sources.avro-source1.type = avro agent1.sources.avro-source1.bind = 0.0.0.0 agent1.sources.avro-source1.port = 41414 agent1.sinks.log-sink1.channel = ch1 agent1.sinks.log-sink1.type = logger agent1.sinks.sink.channel = ch1 agent1.sinks.sink.directory = /home/alex/test1/ agent1.sinks.sink.rollInterval=0 agent1.sinks.sink.type = file_roll agent1.channels = ch1 agent1.sources = avro-source1 agent1.sinks = sink I added System.out.print ("content of directory:" + directory +"\n"); indeed the variable is empty.

    Apache's JIRA Issue Tracker | 5 years ago | Alexander Alten-Lorenz
    java.lang.IllegalArgumentException: Directory may not be nullnull
  3. 0

    12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 1 12/05/22 08:24:21 INFO node.FlumeNode: Flume node starting - agent1 12/05/22 08:24:21 INFO nodemanager.DefaultLogicalNodeManager: Node manager starting 12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 10 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Configuration provider starting 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Reloading configuration file:/flumeNG/test1.cnf 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Added sinks: sink Agent: agent1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Post-validation flume configuration contains configuration for agents: [agent1] 12/05/22 08:24:22 INFO properties.PropertiesFileConfigurationProvider: Creating channels 12/05/22 08:24:23 INFO properties.PropertiesFileConfigurationProvider: created channel ch1 12/05/22 08:24:23 INFO sink.DefaultSinkFactory: Creating instance of sink sink typefile_roll >>>>>>>> content of directory:null <<<<<<<<<< 12/05/22 08:24:23 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows. java.lang.IllegalArgumentException: Directory may not be nullnull at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) at org.apache.flume.sink.RollingFileSink.configure(RollingFileSink.java:85) at org.apache.flume.conf.Configurables.configure(Configurables.java:41) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.loadSinks(PropertiesFileConfigurationProvider.java:350) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.load(PropertiesFileConfigurationProvider.java:223) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.doLoad(AbstractFileConfigurationProvider.java:123) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.access$300(AbstractFileConfigurationProvider.java:38) at org.apache.flume.conf.file.AbstractFileConfigurationProvider$FileWatcherRunnable.run(AbstractFileConfigurationProvider.java:202) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Config: agent1.channels.ch1.type = memory agent1.sources.avro-source1.channels = ch1 agent1.sources.avro-source1.type = avro agent1.sources.avro-source1.bind = 0.0.0.0 agent1.sources.avro-source1.port = 41414 agent1.sinks.log-sink1.channel = ch1 agent1.sinks.log-sink1.type = logger agent1.sinks.sink.channel = ch1 agent1.sinks.sink.directory = /home/alex/test1/ agent1.sinks.sink.rollInterval=0 agent1.sinks.sink.type = file_roll agent1.channels = ch1 agent1.sources = avro-source1 agent1.sinks = sink I added System.out.print ("content of directory:" + directory +"\n"); indeed the variable is empty.

    Apache's JIRA Issue Tracker | 5 years ago | Alexander Alten-Lorenz
    java.lang.IllegalArgumentException: Directory may not be nullnull
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    All players kicked from bungeecord/bukkit server when an user disconnects

    GitHub | 2 years ago | MartinRM4
    io.netty.handler.codec.EncoderException: java.lang.IllegalArgumentException: Cannot get ID for packet class net.md_5.bungee.protocol.packet.Kick
  6. 0

    Error on rescaling

    GitHub | 2 years ago | damiencarol
    java.lang.IllegalArgumentException: Fragment is partitioned, but no partitioned driver found

  1. Handemelindo 1 times, last 6 days ago
  2. tfr 1 times, last 4 months ago
  3. brunosatriani 1 times, last 6 months ago
  4. ben.slama.jihed 1 times, last 6 months ago
  5. vega113 74 times, last 7 months ago
4 more registered users
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Must supply a valid regex string

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Preconditions.checkArgument
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
    1 frame
  3. Flume
    Configurables.configure
    1. org.apache.flume.interceptor.RegexExtractorInterceptor$Builder.configure(RegexExtractorInterceptor.java:175)
    2. org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:110)
    3. org.apache.flume.channel.ChannelProcessor.configure(ChannelProcessor.java:80)
    4. org.apache.flume.conf.Configurables.configure(Configurables.java:41)
    4 frames
  4. org.apache.flume
    PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run
    1. org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:348)
    2. org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:97)
    3. org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:140)
    3 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    7. java.lang.Thread.run(Thread.java:745)
    7 frames