spring-batch Questions
4
I am writing a test case to test my Step in spring batch. Below is my configuration
@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = {BatchTemplateConfig.class,
CustomerItemWrite...
Clapp asked 2/3, 2023 at 11:53
3
Solved
I'm working on a Spring Batch application that needs to execute jobs periodically. Here's a fragment of my configuration file that sets up the in-memory (hsqldb) database used for transaction handl...
Vantage asked 10/7, 2014 at 23:10
4
I want to use a different schema to save Spring Batch tables. I can see that my new datasource in set in the JobRepositoryFactoryBean. But still the tables are been created in the other shcema wher...
Fulfill asked 31/10, 2017 at 15:56
4
Solved
I want to pass list of id's as one of parameter to Spring batch. Is this possible to achieve?
Thanks in advance.
Chaffin asked 13/1, 2014 at 11:7
21
I am creating an spring boot Batch application. That Batch loads data from postgres and insert into MongoDB. I have written the code , but while running the spring boot application, its shows error...
Runagate asked 15/4, 2019 at 10:47
8
Solved
I am new to Spring Batch. I have configured my job with inmemoryrepository. But still, it seems it is using DB to persist job Metadata.
My spring batch Configuration is :
@Configuration
public clas...
Kelton asked 23/3, 2018 at 6:21
6
Solved
I want the Spring Batch metadata to be created on the MySQL server and used all the existing tables from Oracle to fetch data from it and put it into the MongoDB.
I created the following configura...
Somnifacient asked 27/3, 2019 at 15:55
32
Solved
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 to below error only for me and same c...
Royo asked 16/10, 2018 at 18:13
11
I am getting this exception with SERIALIZED isolation level on JobRepository in Spring Batch:
org.springframework.dao.CannotSerializeTransactionException: PreparedStatementCallback; SQL [INSERT in...
Hyperboloid asked 12/3, 2014 at 21:39
11
Solved
This is part of my job.xml:
<job id="foo" job-repository="job-repository">
<step id="bar">
<tasklet transaction-manager="transaction-manager">
<chunk commit-interval="1"
r...
Hyperphagia asked 20/5, 2011 at 22:3
52
Solved
I am working on a Spring Boot Batch example with MongoDB and I have already started the mongod server.
When I launch my application, I am getting the error below.
Any pointers for this issue?
**...
Map asked 7/7, 2018 at 9:29
2
I want to catch the exceptions thrown from item reader (e.g. reader not open , incorrect token exceptions etc) and handle it. Currently spring batch is throwing them as fatal exceptons and come out...
Tales asked 23/12, 2015 at 12:33
8
I have followed the spring batch doc and couldn't get my job running Asynchronously.
So I am running the Job from a web container and the job will be triggered via a REST end point.
I wanted to g...
Hyperbaric asked 8/12, 2018 at 23:12
8
Solved
I developed a Spring boot application and the functionality of the application is working fine. However, at the time of startup, I see the below exception multiple times.
When I ran the same appl...
Cynthea asked 20/5, 2018 at 14:58
2
Solved
I already went through the below few links, but it did not solved my problem:
Java Jackson: deserialize complex polymorphic object model: JsonMappingException: Unexpected token (START_OBJECT), ex...
Avraham asked 4/8, 2018 at 19:16
2
Solved
Is it possible to read data from DB, process it and in ItemWriter send to another system using RestAPI (REST TEMPLATE) in Spring batch project? All I can see is fetch data and write it in a csv fil...
Ames asked 26/9, 2021 at 19:1
3
Solved
I followed the guide at http://spring.io/guides/gs/batch-processing/ but it describes a job with no configurable parameters. I'm using Maven to build my project.
I'm porting an existing job that I...
Bunsen asked 4/2, 2014 at 16:15
2
Question is : How to make an Item reader in spring batch to deliver a list instead of a single object.
I have searched across, some answers are to modify the item reader to return list of objects ...
Secretarial asked 13/8, 2012 at 7:12
3
We are trying to implement a batch job using spring batch partitioning.In this in "step 2" is a partitioned step where I need some data from step 1 for processing.I used StepExecutionContext which ...
Cunnilingus asked 6/2, 2014 at 8:29
2
Solved
I have a single step springbatch application. The job is as follows:
@Bean
public Job databaseCursorJob(@Qualifier("databaseCursorStep") Step exampleJobStep,
JobBuilderFactory jobBuilder...
Freshman asked 1/9, 2020 at 19:13
4
Solved
I was using spring-batch:4.2.2.RELEASE as part of spring-boot-starter-batch:2.2.4.RELEASE.
After upgrading the latter to version 2.3.1.RELEASE, I get the following exception when starting a job:
ja...
Banksia asked 3/7, 2020 at 15:8
4
Solved
Currently I have a setup like below. On running the batch job locally the job will create the necessary metadata tables automatically using the data-source property values since initialize-schema i...
Onitaonlooker asked 12/11, 2019 at 22:13
3
I'm using Spring Boot v2.3.0.RELEASE and Spring Batch. I'n getting below error at the start of context up.
application.properties
#POSTGRES DATASOURCE
spring.datasource.url=jdbc:postgresql://XXXX...
Pinter asked 15/5, 2020 at 18:25
7
I need to store Job ExecutionId as one of the fields of Entity. (I am using JpaItemWriter)
One of topic here explains from StepExcecution, I can get StepContext -> JobExecution. In that case how to...
Weingartner asked 10/1, 2013 at 17:20
7
Solved
I'm having Standalone spring batch job. This works perfectly fine when in JUNIT
@RunWith(SpringJUnit4ClassRunner.class)
//@SpringApplicationConfiguration(classes = KPBootApplication.class)
@Contex...
Castora asked 11/2, 2015 at 14:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.