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

Registering more than one custom comparator throws exception #172

Closed
tomazic89 opened this Issue Jun 10, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@tomazic89

tomazic89 commented Jun 10, 2015

If you try to register more than one custom comparator the following exception is thrown:

java.lang.ExceptionInInitializerError
Caused by: org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'class org.javers.core.diff.custom.CustomToNativeAppenderAdapter'
at org.picocontainer.DefaultPicoContainer.addAdapterInternal(DefaultPicoContainer.java:437)
at org.picocontainer.DefaultPicoContainer.addAdapter(DefaultPicoContainer.java:458)
at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:555)
at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:500)
at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:487)
at org.javers.core.AbstractJaversBuilder.addComponent(AbstractJaversBuilder.java:52)
at org.javers.core.JaversBuilder.registerCustomComparator(JaversBuilder.java:302)
at com.bee7.core.entityaudit.DatastoreEntityAuditerTest.(DatastoreEntityAuditerTest.java:64)
... 25 more

Version used: 1.2.9

@bartoszwalacik bartoszwalacik added the bug label Jun 10, 2015

@bartoszwalacik bartoszwalacik self-assigned this Jun 11, 2015

bartoszwalacik added a commit that referenced this issue Jun 11, 2015

@bartoszwalacik

This comment has been minimized.

Member

bartoszwalacik commented Jun 12, 2015

fixed in 1.2.10

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