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

javers.findChanges() throws java.lang.IllegalArgumentException: Version is not a positive number. #1121

ALP011216 opened this issue Jul 9, 2021 · 4 comments


Copy link

I want to integrate Javers on a database which is already in use.

If I mark an entity as deleted with javers.commitShallowDelete (for example Customer) for which no INITIAL snapshot is yet stored,


throws the following exception:

java.lang.IllegalArgumentException: Version is not a positive number.
	at org.javers.common.validation.Validate.argumentCheck(
	at org.javers.repository.api.SnapshotIdentifier.<init>(
	at org.javers.repository.api.SnapshotIdentifier.previous(
	at org.javers.core.snapshot.SnapshotDiffer.calculateDiffs(
	at org.javers.repository.api.JaversExtendedRepository.getChangesIntroducedBySnapshots(
	at org.javers.repository.api.JaversExtendedRepository.getChangeHistory(
	at org.javers.repository.jql.ChangesQueryRunner.queryForChanges(
	at org.javers.repository.jql.QueryRunner.queryForChanges(
	at org.javers.core.JaversCore.findChanges(

Javers' Version

Copy link

Copy link

thanks for reporting but this issue won't be analyzed if you don't provide a failing test case - see

Copy link

@bartoszwalacik Hi. I experience the same problem. So this test is failing now.


Copy link

fixed in 6.5.0

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

3 participants