Category "spring-batch"

Write the same data with different file names using single Item writer using Spring Batch

I have a Spring Batch FlatFileItemWriter which writes data to a specific location with a file name(let's say A.txt for example). Now I need the same file to be

No qualifying bean of type 'org.springframework.batch.core.Job' available: expected single matching bean but found 2:

I have 2 jobs running in single spring batch application based on input parameters and it is working successfully. But when i run my test case, i'm getting the

Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due

Job parameters change between JobLauncherCommandLineRunner and SimpleJobLauncher

Using spring batch, I am trying to start a job with some parameters but parameters from previous instance are used. Spring is started using ApplicationContext

Get JobParameters on RepositoryItemReader

I have a problem with the execution of the batch process that I am developing. It comprises several steps. The first one recovers data and inserts it into a ta

spring batch+spring boot+java config+test cases

spring batch+spring boot+java config+test cases I have followed the below example and my use case matches this, I have implemented the project with similar set

Spring Batch job with FlowBuilder fails even though steps complete

I've got a spring batch job that completes the steps successfully but marks the overall batch job status as Failed. The job has two steps. The first step vali

Failed to execute CommandLineRunner - Spring Batch

Hi I am very new to Spring batch and I am getting the following exception which I am not able to resolve: java.lang.IllegalStateException: Failed to execute Co

cannot handle exceptions in spring batch integration flow

I'm trying to set up a flow that handle exceptions thrown during batch execution (this job is executed through the flow startBatchFlow), but the program ends wi

Method executeQuery cannot be used for update. ERRORCODE=-4476, SQLSTATE=null

I am using Spring batch framework to read from db2 and getting error. Please note that same is working fine with Mysql. When using db2 its making entry in meta

Spring Batch how to process list of data before write in a Step

I am trying to read client data from database and write processed data to a flat file. But I need to process whole result of the ItemReader before write data.

Spring.datasource.initialize=false not working

I am working on spring boot and batch application. Due to batch, the application tries to connect to datasource with spring-boot:run. I want to stop that and t

Spring: Generic RowMapper for dynamic queries

I am using SpringBatch to read from Oracle and write into ElasticSearch. My code works fine for static queries. Example: select emp_id, emp_name from employee_

Spring Batch Framework - Auto create Batch Table

I just created a batch job using Spring Batch framework, but I don't have Database privileges to run CREATE SQL. When I try to run the batch job I hit the error

Parellel Processing Spring Batch StaxEventItemReader

I have a spring batch job defined as follows. <batch:step id="convert"> <batch:tasklet > <batch:chunk reader="contentItemReader" wri

Caused by: com.jcraft.jsch.JSchException: connection is closed by foreign host while using DefaultSftpSessionFactory and SftpInboundFileSynchronizer

I am using spring batch remote partitioning to read input files and process them. To make input files available on all servers, I have added step listener which

How can I write to stdout using FlatFileItemWriter in spring batch?

I have the following writer configured in my beans definition file of a spring batch project : <bean id="writer" class="org.springframework.batch.item.file.