Latter node block is missing curly brackets { } to start ws block and to close stage block. It should be:
node ("sanjer"){
ws ("${work_dir}"){
stage('reqs-sanjer'){
sh "cd ${deploy_dir}; ./deploy.sh init"
}
}
}
Such huge error message looks like there was bigger problem, indeed.
Answer from Travenin on Stack OverflowOracle
docs.oracle.com › en › java › javase › 11 › docs › api › › java.base › java › lang › IllegalStateException.html
IllegalStateException (Java SE 11 & JDK 11 )
January 20, 2026 - Note that the detail message associated with cause is not automatically incorporated in this exception's detail message · Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted ...
GitHub
github.com › jenkinsci › concurrent-step-plugin › issues › 17
java.lang.IllegalStateException: countDownLatch step must be called with a body · Issue #17 · jenkinsci/concurrent-step-plugin
java.lang.IllegalStateException: countDownLatch step must be called with a body at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:246) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:193) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/
Author jenkinsci
Stack Overflow
stackoverflow.com › questions › 77049597 › jenkins-lock-step-must-be-called-with-a-body
jenkins lock step must be called with a body - Stack Overflow
I'm trying to acquire a lock for a stage that runs within another stages. But facing below error, java.lang.IllegalStateException: lock step must be called with a body earlier tried with options, but
Stack Overflow
stackoverflow.com › questions › 64958449 › step-from-custom-jenkins-plugin-throwing-step-must-be-called-with-a-body
Step from custom Jenkins plugin throwing step must be called with a body - Stack Overflow
November 22, 2020 - "Back to false and everything started working again", yet the code snippet returns "true" -- so it's not the solution. I face this issue -- on Groovy 2.83 AcquireSemaphore works, while on 2.89 does break when without the block/body.
Elastic
discuss.elastic.co › elastic stack › kibana
Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`" - Kibana - Discuss the Elastic Stack
June 10, 2022 - Hi, I am new to logstash and using logstash to add my logs with Elasticsearch. But I can't get through this error. Please help. It is urgent. Using bundled JDK: /Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/jdk.app/Contents/Home OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC ...
GitHub
github.com › h2database › h2database › issues › 2367
java.lang.IllegalStateException: Unable to read the page at position · Issue #2367 · h2database/h2database
December 30, 2019 - Open database, cases strange Stacktrace, which I dont understand! H2 Version: Build from github source at 2019-12-31 My initial thought was: Ok the database is corrupt, so I: Rollbacked to 1.4.200 Vanilla (because I got the same error wi...
Author h2database
Scaler
scaler.com › home › topics › java class illegalstateexception
Java Class IllegalStateException - Scaler Topics
March 13, 2023 - The java lang IllegalStateException's fix: We must be careful that no method in our code can be invoked at an erroneous or illegal time if we want to avoid the java.lang.IllegalStateException.
JAXB
javaee.github.io › servlet-spec › downloads › servlet-4.0 › servlet-4_0_EDR_draft.pdf pdf
EARLY DRAFT REVIEW - Java EE
Java Servlet is the foundation web specification in the Java Enterprise Platform. Developers can build web applications using the Servlet API to interact with the request/response workflow. This project provides information on the continued development of the Java Servlet specification · Java ...
Stack Overflow
stackoverflow.com › questions › 72977670 › how-do-i-resolve-java-lang-illegalstateexception-exception
spring - How do I resolve java.lang.IllegalStateException exception? - Stack Overflow
<target name="build" description="Compile main source tree java files and move needed resources"> <mkdir dir="${build.dir}" /> <javac destdir="${build.dir}" source="1.8" target="1.8" failonerror="true" debug="${compile.debug}"> <src path="${src.dir}" /> <classpath refid="master-classpath" /> </javac> <copy todir="${build.dir}"> <fileset dir="${res.dir}" /> </copy> </target>
Oracle
docs.oracle.com › javase › 7 › docs › api › java › lang › IllegalStateException.html
IllegalStateException (Java Platform SE 7 )
Note that the detail message associated with cause is not automatically incorporated in this exception's detail message · Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted ...
Atlassian
confluence.atlassian.com › support › files › 179443532 › 792496554 › 7642 › 1689932570297 › jira_regex_v2.xml
jira_regex_v2.xml
Caused\sby:\sjava\.lang\.IllegalStateException:\sCan\sonly\sregister\sservices\swhile\sbundle\sis\sactive\sor\sactivating\ · An error occured while trying to run service 'Backup Service'\. Service: Backup Service id: \d+ is already running · The 'SimpleWorkflowManager.isEditable' method can ...
Oracle
docs.oracle.com › javase › 8 › docs › api › java › lang › IllegalStateException.html
IllegalStateException (Java Platform SE 8 )
April 21, 2026 - Note that the detail message associated with cause is not automatically incorporated in this exception's detail message · Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted ...
GitHub
github.com › spring-projects › spring-framework › issues › 22796
java.lang.IllegalStateException: COMPLETED occur with non netty for proxy with WebClient · Issue #22796 · spring-projects/spring-framework
April 15, 2019 - @Controller public class SimpleProxyController{ WebClient webClient = WebClient.builder().build(); @RequestMapping("proxy") public Mono<Void> proxy(ServerWebExchange exchange){ Thread thread = Thread.currentThread(); Flux<DataBuffer> content = webClient .method(exchange.getRequest().getMethod()) .uri("http://localhost:8080/upstream") .body(exchange.getRequest().getBody(),DataBuffer.class) .exchange() .flatMapMany(resp -> resp.bodyToFlux(DataBuffer.class)); content = content.publishOn(Schedulers.fromExecutor((Executor) thread)); return exchange.getResponse().writeWith(content); } @RequestMapping("upstream") @ResponseBody public Flux<String> upstream(){ return Flux.just("ok"); } }
Author spring-projects