java.lang.IllegalArgumentException: Must have a local (user) JID set. Either you didn't configure one or you where not connected at least once

Stack Overflow | Anil | 2 months ago
  1. 0

    Smack "Must have a local (user) JID set" error

    Stack Overflow | 2 months ago | Anil
    java.lang.IllegalArgumentException: Must have a local (user) JID set. Either you didn't configure one or you where not connected at least once
  2. 0

    When running the following flow {code:java} new FlowBuilder<SimpleFlow>("splitFlow") .split(jobTaskExecutor) .add(flow1(), flow2(), flow3()) .end(); {code} The following exception is raised: {code} org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:141) at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:301) at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.springframework.batch.core.job.flow.FlowExecutionException: Ended flow=splitFlow at state=splitFlow.split1 with exception at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:160) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:130) at org.springframework.batch.core.job.flow.support.state.FlowState.handle(FlowState.java:55) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:151) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:130) at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:135) ... 5 more Caused by: java.lang.IllegalArgumentException: No start state was found. You must specify at least one step in a job. at org.springframework.batch.core.job.flow.support.SimpleFlow.initializeTransitions(SimpleFlow.java:242) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:126) at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:93) at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:90) at java.util.concurrent.FutureTask.run(FutureTask.java:262) ... 3 more {code} Because the {{FlowBuild.SplitBuilder#add}} contains {code:java} State one = parent.currentState; Flow flow = null; if (!(one instanceof FlowState)) { FlowBuilder<Flow> stateBuilder = new FlowBuilder<Flow>(name + "_" + (counter++)); stateBuilder.currentState = one; flow = stateBuilder.build(); } {code} and `one` is null, an empty State is added to the flow. To fill the current state and avoid `one` from being null, the work around is to write: {code:java} new FlowBuilder<SimpleFlow>("splitFlow") .from(flow1()) .split(jobTaskExecutor) .add(flow2(), flow3()) .end(); {code} Please add a one != null in the if condition

    Spring JIRA | 2 years ago | Gérald Quintana
    org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly
  3. 0

    When running the following flow {code:java} new FlowBuilder<SimpleFlow>("splitFlow") .split(jobTaskExecutor) .add(flow1(), flow2(), flow3()) .end(); {code} The following exception is raised: {code} org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:141) at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:301) at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.springframework.batch.core.job.flow.FlowExecutionException: Ended flow=splitFlow at state=splitFlow.split1 with exception at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:160) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:130) at org.springframework.batch.core.job.flow.support.state.FlowState.handle(FlowState.java:55) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:151) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:130) at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:135) ... 5 more Caused by: java.lang.IllegalArgumentException: No start state was found. You must specify at least one step in a job. at org.springframework.batch.core.job.flow.support.SimpleFlow.initializeTransitions(SimpleFlow.java:242) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:126) at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:93) at org.springframework.batch.core.job.flow.support.state.SplitState$1.call(SplitState.java:90) at java.util.concurrent.FutureTask.run(FutureTask.java:262) ... 3 more {code} Because the {{FlowBuild.SplitBuilder#add}} contains {code:java} State one = parent.currentState; Flow flow = null; if (!(one instanceof FlowState)) { FlowBuilder<Flow> stateBuilder = new FlowBuilder<Flow>(name + "_" + (counter++)); stateBuilder.currentState = one; flow = stateBuilder.build(); } {code} and `one` is null, an empty State is added to the flow. To fill the current state and avoid `one` from being null, the work around is to write: {code:java} new FlowBuilder<SimpleFlow>("splitFlow") .from(flow1()) .split(jobTaskExecutor) .add(flow2(), flow3()) .end(); {code} Please add a one != null in the if condition

    Spring JIRA | 2 years ago | Gérald Quintana
    org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to use "Run as a JUnit Testcase" for JUnit v3?

    Oracle Community | 9 years ago | Sten Vesterli
    java.lang.IllegalArgumentException: Usage: args must be an array containing at least one consective pair of values where the first is either "-v3Tests" or "-v4Tests"and the next is a semicolon-delimitted list of fully-qualified names of test case classes.
  6. 0

    db:: 4.57::Weld SE junit test with Request/Session Contexts, Request/Session Mocks, is this possible with Arquillian? mf

    hivmr.com | 8 months ago
    java.lang.IllegalArgumentException: Usage: args must be an array containing at least one consective pair of values where the first is either "-v3Tests" or "-v4Tests"and the next is a semicolon-delimitted list of fully-qualified names of test case classes.

    1 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 have a local (user) JID set. Either you didn't configure one or you where not connected at least once

      at org.jivesoftware.smack.filter.IQReplyFilter.<init>()
    2. Smack
      AbstractXMPPConnection.createPacketCollectorAndSend
      1. org.jivesoftware.smack.filter.IQReplyFilter.<init>(IQReplyFilter.java:94)
      2. org.jivesoftware.smack.AbstractXMPPConnection.createPacketCollectorAndSend(AbstractXMPPConnection.java:690)
      2 frames
    3. org.jivesoftware.smackx
      LastActivityManager.getLastActivity
      1. org.jivesoftware.smackx.iqlast.LastActivityManager.getLastActivity(LastActivityManager.java:239)
      1 frame
    4. com.studyboard.utils
      ChatUtil.getLastActivity
      1. com.studyboard.utils.ChatUtil.getLastActivity(ChatUtil.java:674)
      1 frame
    5. com.studyboard
      ChatMessageActivity.onCreate
      1. com.studyboard.ChatMessageActivity.initChat(ChatMessageActivity.java:339)
      2. com.studyboard.ChatMessageActivity.onCreate(ChatMessageActivity.java:220)
      2 frames
    6. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6005)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2446)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2555)
      5. android.app.ActivityThread.access$800(ActivityThread.java:176)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437)
      7. android.os.Handler.dispatchMessage(Handler.java:111)
      8. android.os.Looper.loop(Looper.java:194)
      9. android.app.ActivityThread.main(ActivityThread.java:5576)
      9 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)
      2 frames