java.lang.IllegalArgumentException: Label is required

Spring JIRA | Gunnar Hillert | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have a deployed Batch Job (Single Node Server, running inside STS). My machine goes to sleep. Once I bring it back up I see the following log: {code} 12:57:35,854 ERROR LeaderSelector-5 leader.LeaderSelector - The leader threw an exception java.lang.IllegalArgumentException: Label is required at org.springframework.util.Assert.hasText(Assert.java:162) at org.springframework.xd.module.ModuleDescriptor$Key.<init>(ModuleDescriptor.java:616) at org.springframework.xd.dirt.server.JobDeploymentListener.recalculateJobStates(JobDeploymentListener.java:218) at org.springframework.xd.dirt.server.DeploymentSupervisor$LeaderListener.takeLeadership(DeploymentSupervisor.java:354) at org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:536) at org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:398) at org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:443) at org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:63) at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:244) at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:238) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:744) {code} In the UI the job is marked as *undeployed* - however, when I click *deploy* I get an error: *The job named 'bbb' is already deployed*.

    Spring JIRA | 3 years ago | Gunnar Hillert
    java.lang.IllegalArgumentException: Label is required
  2. 0

    I have a deployed Batch Job (Single Node Server, running inside STS). My machine goes to sleep. Once I bring it back up I see the following log: {code} 12:57:35,854 ERROR LeaderSelector-5 leader.LeaderSelector - The leader threw an exception java.lang.IllegalArgumentException: Label is required at org.springframework.util.Assert.hasText(Assert.java:162) at org.springframework.xd.module.ModuleDescriptor$Key.<init>(ModuleDescriptor.java:616) at org.springframework.xd.dirt.server.JobDeploymentListener.recalculateJobStates(JobDeploymentListener.java:218) at org.springframework.xd.dirt.server.DeploymentSupervisor$LeaderListener.takeLeadership(DeploymentSupervisor.java:354) at org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:536) at org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:398) at org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:443) at org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:63) at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:244) at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:238) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:744) {code} In the UI the job is marked as *undeployed* - however, when I click *deploy* I get an error: *The job named 'bbb' is already deployed*.

    Spring JIRA | 3 years ago | Gunnar Hillert
    java.lang.IllegalArgumentException: Label is required
  3. 0

    How to cancel user login auth ?

    GitHub | 2 years ago | abbish
    java.lang.IllegalArgumentException: A granted authority textual representation is required
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JasperServer

    walmeric.com | 1 year ago
    java.lang.IllegalArgumentException: An id is required to lookup a FlowDefinition
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

    Label is required

    at org.springframework.util.Assert.hasText()
  2. Spring Core
    Assert.hasText
    1. org.springframework.util.Assert.hasText(Assert.java:162)
    1 frame
  3. org.springframework.xd
    DeploymentSupervisor$LeaderListener.takeLeadership
    1. org.springframework.xd.module.ModuleDescriptor$Key.<init>(ModuleDescriptor.java:616)
    2. org.springframework.xd.dirt.server.JobDeploymentListener.recalculateJobStates(JobDeploymentListener.java:218)
    3. org.springframework.xd.dirt.server.DeploymentSupervisor$LeaderListener.takeLeadership(DeploymentSupervisor.java:354)
    3 frames
  4. Curator Recipes
    LeaderSelector$2.call
    1. org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:536)
    2. org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:398)
    3. org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:443)
    4. org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:63)
    5. org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:244)
    6. org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:238)
    6 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    6. java.lang.Thread.run(Thread.java:744)
    6 frames