Questions tagged [spring-batch-tasklet]

135 questions
0
votes
0 answers

Using Java ProcessBuilder in a Spring Batch Job - Tasklet

I am trying to execute terminal commands with arguments using Java ProcessBuilder. This code is written within a Java Spring Batch Tasklet that is executed as a part of a job. Despite initializing it correctly using the below code, I receive a Null…
0
votes
0 answers

Spring Batch Multiple JobExecutionListener - not working

I have a Spring boot batch application. I have two job and two different JobExecutionListener. But always only one JobExecutionListener is called from both the job. Job One @Configuration public class TestDriveJob { @Autowired …
Mukun
  • 1,756
  • 10
  • 30
  • 57
0
votes
1 answer

Spring Batch annotation based Job added as a step to XML based job

We have a Spring batch project which is XML based We need to create a new job and we need to add the job as a nested job to previous XML based job Is it possible to create the new Job annotation based and add a step to existing XML based job? I have…
0
votes
0 answers

Facing issue while running spring batch api from spring boot- spring batch unable to update data in BATCH_JOB_EXECUTION_CONTEXT

Facing issue while running spring batch api from spring boot- spring batch unable to update data in BATCH_JOB_EXECUTION_CONTEXT Truncating long message before update of JobExecution: JobExecution: id=386, version=1, startTime=Thu Oct 03 00:00:00 EDT…
0
votes
0 answers

A job instance already exists and is complete for parameters={}. If you want to run this job again, change the parameters

I am getting below error while running spring batch application A job instance already exists and is complete for parameters={}. If you want to run this job again, change the parameters. I have tried below things and few times application will up…
0
votes
0 answers

How can I create an empty file when my Spring Batch reader returns null

I have a spring batch application where I have Reader - Processor - Composite Writer Now there is one usecase in our application where, I need to write an empty file when my reader returns null (i.e. when it reads empty file) else, my reader should…
Akshada
  • 190
  • 3
  • 12
0
votes
1 answer

Spring Batch ItemReader gets NullPointerException in first line

I have this problem with Spring batch when I try read my csv files. I have to read a CSV with a structure like…
JuniorGuy
  • 107
  • 1
  • 12
0
votes
0 answers

Step Execution Status is not coming as Finished in Spring Batch

In SpringBatch Job is not getting completed with the steps defined ,instead of that keep on going from Writer to Reader , while Debugging found context count is getting increased as 1 because of that Execution Status is coming as "CONTINUABLE" not…
Thirukumaran
  • 357
  • 3
  • 5
  • 17
0
votes
1 answer

Spring Batch : Read multiple json files and process one by one

I have huge JSON files in a folder approx 200 each of 300 mbs approx. I need to write Spring batch to read the files and process one by one. Basically means read one file at a time then run the processor then run the writer then read next file, The…
Lucie
  • 127
  • 1
  • 2
  • 12
0
votes
1 answer

Spring batch rollbacks the inserts

Configured the below in my project:
sanjay
  • 89
  • 1
  • 7
0
votes
0 answers

Design batch job to process multiple files in a FTP folder

I want to design a batch job to process multiple zip files in the folder. Basically, the input zip file contains a directory structure and last directory have CSV file and set of PDFs. The job should take zip file and unzip and upload to an external…
0
votes
1 answer

Mocking JobExplorer using @MockBean throwing an Exception: InstanceAlreadyException

"How can i mock JobExecution while testing a Single step using JobLauncherTestUtils?" "i`ve tried with @MockBean JobExplorer jobExplorer but it is throwing an Exception: Failed to load applicationContext,Caused by…
Prudhvi Bellam
  • 71
  • 2
  • 12
-1
votes
1 answer

How to take Spring batch job parameters and pass to sql

I need to implement the extraction of 9 reports via spring batch jobs, i.e. done. But I stuck in between.I have to pass job parameters to spring job, and passing that parameter to SQL in order to generate different report. What concept should I use…
-2
votes
2 answers

How can I execute method of an Object in Arraylist?

My problem is: I created an Arraylist serviceList Both service1 and service2 are 2 seperate objects from 2 classes but they have the same "execute" method: public Service1 service1; public Service2 service2; /*Then I add element to…
-2
votes
1 answer

Spring Batch Solution

1 In our application, we have around 100000 customers and need to process some data on monthly basis. Data processing logic for each customer involves, around 7 rest calls to different service. We need to do this in spring batch to achieve…
1 2 3
8
9