Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing on CET timezone [BATCH-2668] #936

spring-projects-issues opened this issue Jan 4, 2018 · 0 comments

Build failing on CET timezone [BATCH-2668] #936

spring-projects-issues opened this issue Jan 4, 2018 · 0 comments


Copy link

Mahmoud Ben Hassine opened BATCH-2668 and commented

The build is failing when the default timezone of the JVM is CET:

~/projects/spring-batch$ ./gradlew build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details


org.springframework.batch.item.file.mapping.BeanWrapperFieldSetMapperTests > testDefaultConversion FAILED
    org.springframework.validation.BindException at

1474 tests completed, 1 failed, 1 skipped
:spring-batch-infrastructure:test FAILED

FAILURE: Build failed with an exception.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 1 mins 41.117 secs

The failing test is the following:


Here is the complete stack trace:

org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'target' on field 'varDate': rejected value [Thu Jan 04 09:05:50 CET 2018]; codes [,typeMismatch.varDate,,typeMismatch]; arguments [ codes [target.varDate,varDate]; arguments []; default message [varDate]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'varDate'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.util.Date] for value 'Thu Jan 04 09:05:50 CET 2018'; nested exception is java.lang.IllegalArgumentException]

	at org.springframework.batch.item.file.mapping.BeanWrapperFieldSetMapper.mapFieldSet(
	at org.springframework.batch.item.file.mapping.BeanWrapperFieldSetMapperTests.testDefaultConversion(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(
	at org.junit.runners.ParentRunner.runLeaf(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.ParentRunner$
	at org.junit.runners.ParentRunner$1.schedule(
	at org.junit.runners.ParentRunner.runChildren(
	at org.junit.runners.ParentRunner.access$000(
	at org.junit.runners.ParentRunner$2.evaluate(
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(
	at com.intellij.rt.execution.junit.JUnitStarter.main(

Affects: 4.0.0

Referenced from: pull request #559, and commits a0773ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant