Mahmoud Ben Hassine
11b62f4534
Fix datasource initialization in MySQLJdbcJobRepositoryTests
2022-04-29 08:35:14 +02:00
linhongcheng
fdd253a7e6
Fix retrieval of null job parameters of type long/double
...
Before this commit, a null job parameter of type long
or double was retrieved as 0L or 0.0. This caused
JobOperator.restart to create a new job instance
instead of restarting the previous failed execution.
This commit fixes how null job parameters of type
long or double are retrieved from the database to
correctly restart the same job instance.
Issue #4087
2022-04-28 18:04:06 +02:00
Mahmoud Ben Hassine
cfbe884939
Adapt contribution #4043
...
This commit adapts the code contributed
in #4043 to be Java 8-compatible with the
v4 branch
2022-01-10 12:16:41 +01:00
Henning Poettker
dab89ccb97
Adjust h2 schema to work with v2.0.x
...
Issue #4043
2022-01-10 10:17:58 +01:00
Mahmoud Ben Hassine
c3b2e26f70
Disable SSL usage in MySQL test container
...
By default, testcontainers does not use SSL. This commit
disable SSL usage in the datasource configuration to
prevent `SSLHandshakeException`s.
2021-05-04 11:27:06 +02:00
Mahmoud Ben Hassine
71afbbd7c7
Add integration test for MySQL date millisecond precision
...
Issue #2202
2020-05-12 17:48:43 +02:00
klauswolfgang
cc6f60871e
BATCH-2480 Fix regression due to the fix of BATCH-2442
2019-11-14 11:41:04 +01:00
mikeldpl
a7092a21e4
Added @Nullable annotation to overriding methods.
...
Resolves BATCH-2839
2019-09-17 16:50:44 +02:00
Spring Operator
d8fc58338d
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/ ) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 1796 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0 ) result 200).
2019-03-22 10:08:19 +01:00
Spring Operator
8762e34115
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd (301) with 29 occurrences migrated to:
https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/jobXML_1_0.xsd ([https](https://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd ) result InvalidMediaTypeException).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd (301) with 1 occurrences migrated to:
https://hibernate.org/dtd/hibernate-mapping-3.0.dtd ([https](https://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd ) result 200).
* http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd (301) with 2 occurrences migrated to:
https://hibernate.org/dtd/hibernate-mapping-3.0.dtd ([https](https://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd ) result 200).
* http://www.springframework.org/schema/aop/spring-aop-2.5.xsd with 5 occurrences migrated to:
https://www.springframework.org/schema/aop/spring-aop-2.5.xsd ([https](https://www.springframework.org/schema/aop/spring-aop-2.5.xsd ) result 200).
* http://www.springframework.org/schema/aop/spring-aop-3.1.xsd with 21 occurrences migrated to:
https://www.springframework.org/schema/aop/spring-aop-3.1.xsd ([https](https://www.springframework.org/schema/aop/spring-aop-3.1.xsd ) result 200).
* http://www.springframework.org/schema/aop/spring-aop.xsd with 27 occurrences migrated to:
https://www.springframework.org/schema/aop/spring-aop.xsd ([https](https://www.springframework.org/schema/aop/spring-aop.xsd ) result 200).
* http://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd with 16 occurrences migrated to:
https://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd ([https](https://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-2.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-2.0.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-2.0.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-2.1.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-2.1.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-2.1.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-2.2.xsd with 99 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-2.2.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-2.2.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch-3.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch-3.0.xsd ([https](https://www.springframework.org/schema/batch/spring-batch-3.0.xsd ) result 200).
* http://www.springframework.org/schema/batch/spring-batch.xsd with 51 occurrences migrated to:
https://www.springframework.org/schema/batch/spring-batch.xsd ([https](https://www.springframework.org/schema/batch/spring-batch.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans-2.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans-2.0.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-2.0.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans-2.5.xsd with 14 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans-2.5.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-2.5.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans-3.1.xsd with 145 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans-3.1.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-3.1.xsd ) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 166 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context-2.5.xsd with 8 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context-2.5.xsd ([https](https://www.springframework.org/schema/context/spring-context-2.5.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context-3.1.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context-3.1.xsd ([https](https://www.springframework.org/schema/context/spring-context-3.1.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context-3.2.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context-3.2.xsd ([https](https://www.springframework.org/schema/context/spring-context-3.2.xsd ) result 200).
* http://www.springframework.org/schema/context/spring-context.xsd with 15 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd ) result 200).
* http://www.springframework.org/schema/data/jpa/spring-jpa.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/data/jpa/spring-jpa.xsd ([https](https://www.springframework.org/schema/data/jpa/spring-jpa.xsd ) result 200).
* http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd ([https](https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd ) result 200).
* http://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd ([https](https://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd ) result 200).
* http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd with 3 occurrences migrated to:
https://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd ([https](https://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd ) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 27 occurrences migrated to:
https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd ) result 200).
* http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd ([https](https://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd ) result 200).
* http://www.springframework.org/schema/jdbc/spring-jdbc.xsd with 3 occurrences migrated to:
https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ([https](https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ) result 200).
* http://www.springframework.org/schema/jms/spring-jms.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/jms/spring-jms.xsd ([https](https://www.springframework.org/schema/jms/spring-jms.xsd ) result 200).
* http://www.springframework.org/schema/lang/spring-lang.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/lang/spring-lang.xsd ([https](https://www.springframework.org/schema/lang/spring-lang.xsd ) result 200).
* http://www.springframework.org/schema/rabbit/spring-rabbit.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/rabbit/spring-rabbit.xsd ([https](https://www.springframework.org/schema/rabbit/spring-rabbit.xsd ) result 200).
* http://www.springframework.org/schema/task/spring-task-3.0.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/task/spring-task-3.0.xsd ([https](https://www.springframework.org/schema/task/spring-task-3.0.xsd ) result 200).
* http://www.springframework.org/schema/task/spring-task.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/task/spring-task.xsd ([https](https://www.springframework.org/schema/task/spring-task.xsd ) result 200).
* http://www.springframework.org/schema/tx/spring-tx-2.5.xsd with 8 occurrences migrated to:
https://www.springframework.org/schema/tx/spring-tx-2.5.xsd ([https](https://www.springframework.org/schema/tx/spring-tx-2.5.xsd ) result 200).
* http://www.springframework.org/schema/tx/spring-tx-3.1.xsd with 16 occurrences migrated to:
https://www.springframework.org/schema/tx/spring-tx-3.1.xsd ([https](https://www.springframework.org/schema/tx/spring-tx-3.1.xsd ) result 200).
* http://www.springframework.org/schema/tx/spring-tx.xsd with 21 occurrences migrated to:
https://www.springframework.org/schema/tx/spring-tx.xsd ([https](https://www.springframework.org/schema/tx/spring-tx.xsd ) result 200).
* http://www.springframework.org/schema/util/spring-util-3.1.xsd with 9 occurrences migrated to:
https://www.springframework.org/schema/util/spring-util-3.1.xsd ([https](https://www.springframework.org/schema/util/spring-util-3.1.xsd ) result 200).
* http://www.springframework.org/schema/util/spring-util.xsd with 15 occurrences migrated to:
https://www.springframework.org/schema/util/spring-util.xsd ([https](https://www.springframework.org/schema/util/spring-util.xsd ) result 200).
* http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd with 3 occurrences migrated to:
https://java.sun.com/xml/ns/persistence/persistence_1_0.xsd ([https](https://java.sun.com/xml/ns/persistence/persistence_1_0.xsd ) result 302).
# Ignored
These URLs were intentionally ignored.
* http://java.sun.com/xml/ns/persistence with 6 occurrences
* http://www.springframework.org/schema/aop with 104 occurrences
* http://www.springframework.org/schema/batch with 343 occurrences
* http://www.springframework.org/schema/batch-integration with 32 occurrences
* http://www.springframework.org/schema/batch/test with 1 occurrences
* http://www.springframework.org/schema/beans with 673 occurrences
* http://www.springframework.org/schema/context with 52 occurrences
* http://www.springframework.org/schema/data/jpa with 2 occurrences
* http://www.springframework.org/schema/integration with 65 occurrences
* http://www.springframework.org/schema/integration/jdbc with 2 occurrences
* http://www.springframework.org/schema/integration/jms with 6 occurrences
* http://www.springframework.org/schema/jdbc with 8 occurrences
* http://www.springframework.org/schema/jms with 3 occurrences
* http://www.springframework.org/schema/lang with 2 occurrences
* http://www.springframework.org/schema/p with 60 occurrences
* http://www.springframework.org/schema/rabbit with 2 occurrences
* http://www.springframework.org/schema/task with 6 occurrences
* http://www.springframework.org/schema/tx with 89 occurrences
* http://www.springframework.org/schema/util with 48 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 330 occurrences
* http://xmlns.jcp.org/xml/ns/javaee with 82 occurrences
2019-03-21 10:59:44 +01:00
Mahmoud Ben Hassine
797fe1b20a
Re-initialize datasource before each integration test
2019-01-30 22:31:04 +01:00
Mahmoud Ben Hassine
422c233e3c
Fix integration tests
2019-01-30 14:12:55 +01:00
Mahmoud Ben Hassine
fbe345630b
Fix build warnings
2019-01-29 23:36:53 +01:00
Drummond Dawson
fa62861015
BATCH-2771: Fix deprecations in DefaultDataFieldMaxValueIncrementerFactory
2018-11-29 15:33:31 +01:00
Drummond Dawson
5ebf09e356
Replace explicit type with diamond operator in core tests module
2018-11-06 20:56:00 +01:00
Dimitrios Liapis
f8f8a02a4d
Explicitly considering Start Time not being null for running Job Executions
...
This is to exclude from capturing erroneous Job Executions. An example is
whenever a TaskRejectedException is thrown after submitting to the
taskExecutor in SimpleJobLauncher#run(), the JobExecution is left without
a Start or End Time. Also related tests are fixed.
Resolves BATCH-2675
2018-10-25 11:36:21 +02:00
woniper
c2b0a208c3
fix up code formatting and typo
2018-05-17 14:45:16 +02:00
Mahmoud Ben Hassine
2913c8de66
BATCH-2699: move derby's generated files under "build" directory
2018-04-20 17:25:20 -05:00
Michael Minella
502cd9b4e5
Minor polish
2018-03-28 09:53:55 -05:00
Mahmoud Ben Hassine
c1b79e5946
BATCH-2442: fix infinite loop when item processor fails during a scan
...
Currently, when the processor throws an exception during a scan, the
chunk is never marked as complete and the step never finishes. Moreover,
items that were processed unsuccessfully are still written.
This commit fixes the issue by excluding failed items from the scan.
Resolves BATCH-2442
2018-03-27 14:07:27 +02:00
Mahmoud Ben Hassine
c78701a871
BATCH-2663: re-initialize filter count when scanning a chunk
...
Before this commit, the filter count of the contribution was applied
for each item of a scanned chunk. For example, with a chunk of 30,
if the filter count is 10 and an item is skipped during write, then the
filter count is equal to 210 (10 + 20 * 10).
If this commit is applied, the filter count will be re-initialized when
scanning the chunk.
Resolves BATCH-2663
2018-01-24 15:09:07 -06:00
Michael Minella
f61679b55f
Added updates for properties files as well
2017-11-27 12:06:29 -06:00
Michael Minella
52d2c257c5
Version updates
2017-10-23 15:52:55 -05:00
Michael Minella
b180c75ce0
Housecleaning of build warnings
2017-09-15 15:58:22 -05:00
Glenn Renfro
77d9ff9d95
Add builder for LdifReader.
...
Resolves #BATCH-2600
2017-07-25 14:16:11 -05:00
Glenn Renfro
0e510112a9
Add Builder for MappingLdifReader.
...
Resolves #BATCH-2601
2017-07-25 14:02:13 -05:00
Michael Minella
b3e8d3ea87
Removed iBatis based components
...
This commit removes the iBatis based ItemReaders and ItemWriter. They
were depricated in the 3.0 line in favor of the MyBatis natively
provided ItemReader and ItemWriter implementations. This removes those
depricated components.
Resolves BATCH-2591
2017-05-03 10:00:41 -05:00
Michael Minella
263e978a1f
Updated for various code warnings
...
This commit addresses a number of deprications and other code warnings.
There are still many more to address, but this is a start.
2017-05-02 12:48:03 -05:00
Michael Minella
2ee254fe01
Fixing integration tests for CI build
2016-10-03 17:44:50 -05:00
Michael Minella
aef9a52d40
Added test to verify concurrent transactions with HSQLDB
2015-11-09 13:36:57 -06:00
Philippe Marschall
dcc9da8273
BATCH-2407 Use StringBuilder instead of StringBuffer
...
With Java 1.5 StringBuilder is preferred over StringBuffer for single
threaded access as is has less overhead.
This is evidenced by the class comment of StringBuffer and Effective
Java 2nd Edition Item 67: Avoid excessive synchronization.
> The StringBuilder class should generally be used in preference to
> this one, as it supports all of the same operations but it is faster,
> as it performs no synchronization.
- replace StringBuffer with StringBuilder where possible
Issue: BATCH-2407
2015-08-06 10:22:39 -05:00
Philippe Marschall
7ec7152c5e
BATCH-2410 junit.framework.Assert is deprecated
2015-07-31 12:44:25 -05:00
Andy Wilkinson
ff2b6a8cee
Remove remaining dependencies on ParameterizedRowMapper
...
This is a follow-on from adc2f79 . It removes the remaining references
to ParameterizedRowMapper and should, therefore, make things fully
compatible with Spring Framework 4.2.
2015-07-09 16:04:50 -05:00
Michael Minella
7c60b055c3
Removed dependency on ParameterizedRowMapper
...
To support Spring Framework 4.2 which removes ParameterizedRowMapper,
all references to that were switched to RowMapper. As of Spring 3, the
interfaces are identicle so this should cause no backward compatability
issues.
BATCH-2369
2015-03-31 14:08:38 -05:00
Michael Minella
090e6f2039
BATCH-2248: Fixes for Ldif reader tests
2014-10-17 11:40:38 -05:00
Michael Minella
e7a4e348a5
BATCH-2229 & BATCH-2218: Removed OSGi related metadata and Maven POMs
2014-05-12 15:32:02 -05:00
Michael Minella
6d94ae9031
Updated hsqldb urls to use MVCC mode
2014-05-05 15:08:05 -05:00
Gunnar Hillert
11a8ec1dc4
BATCH-2144 - Merged Michael's changes
...
* Merge PR https://github.com/ghillert/spring-batch/pull/1
* Update Spring Integration dependency to 4.0.0.RC1
* Update docbook-reference-plugin to 0.2.8
2014-04-24 12:16:17 -05:00
Michael Minella
2c2744ff88
BATCH-2202: Removed unnecessecary LdifAggregator and corrected javadoc on RecordCallbackHandler
2014-04-22 10:33:49 -05:00
Michael Minella
337b844fc9
Bringing the LDIF based ItemReader from Spring LDAP to Spring Batch to break circular dependency
2014-04-22 10:33:49 -05:00
jpraet
b26d272d43
cleanup
2014-04-02 14:35:53 -04:00
Michael Minella
ff7793cacf
[maven-release-plugin] prepare for next development iteration
2014-02-21 21:42:59 -06:00
Michael Minella
f690c496c4
[maven-release-plugin] prepare release 3.0.0.M3
2014-02-21 21:42:55 -06:00
Michael Minella
406e25a544
BATCH-2173: Initial commit for repo updates
2014-02-21 17:00:40 -06:00
jpraet
d504e45a1f
Add unit test for BATCH-1980
2014-02-21 16:59:53 -06:00
Michael Minella
9317ab2565
BATCH-2112: Removed Spring Batch's SerializationUtils in favor of the Spring Core version
2014-02-12 11:23:03 -06:00
Michael Minella
35332a4757
[maven-release-plugin] prepare for next development iteration
2013-09-09 21:31:36 -07:00
Michael Minella
395c219b8b
[maven-release-plugin] prepare release 3.0.0.M2
2013-09-09 21:31:30 -07:00
Michael Minella
2c1b8e154a
[maven-release-plugin] prepare for next development iteration
2013-08-23 15:15:56 -05:00
Michael Minella
9618902ce6
[maven-release-plugin] prepare release 3.0.0.M1
2013-08-23 15:15:52 -05:00