javax.validation.ConstraintViolationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Testing 3.1EA A negativeCache value = -1 is perfectly valid in NX2 but if you attempt to migrate that Repository to NX3 a validation error is thrown. We should set this to the maximum allowable value in NX3 when encountered (should NOT change the rules of the NX3 system to accommodate). {noformat} 2016-09-27 15:20:16,886-0700 WARN [plan-executor-4-thread-2] admin org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl - Validation failed; 1 constraints violated: 1) must be greater than or equal to 0, type: class org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl$SectionWrapper, property: attributes[negativeCache].timeToLive, value: -1 2016-09-27 15:20:16,894-0700 WARN [plan-executor-4-thread-2] admin com.sonatype.nexus.migration.repository.RepositoryPrepareStep - Prepare repository for upgrade: plugins.gradle failed javax.validation.ConstraintViolationException: null at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.validate(RepositoryImpl.java:174) [na:na] at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:149) [na:na] at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.create(RepositoryManagerImpl.java:277) [na:na] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [org.sonatype.nexus.common:3.1.0.b2016092101] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270) [org.sonatype.nexus.common:3.1.0.b2016092101] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [org.sonatype.nexus.common:3.1.0.b2016092101] at org.sonatype.nexus.repository.manager.RepositoryManager$create$3.call(Unknown Source) [na:na] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) [na:na] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) [na:na] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) [na:na] at com.sonatype.nexus.migration.repository.RepositoryPrepareStep.doRun(RepositoryPrepareStep.groovy:129) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at com.sonatype.nexus.migration.plan.Step.run(Step.groovy:271) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source) [na:na] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) [na:na] at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source) [na:na] at com.sonatype.nexus.migration.plan.StepExecutor.runSync(StepExecutor.groovy:168) [na:na] at sun.reflect.GeneratedMethodAccessor267.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) [na:1.8.0_60] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [na:na] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [na:na] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384) [na:na] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) [na:na] at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69) [na:na] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166) [na:na] at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy:197) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) [na:1.8.0_60] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [na:na] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [na:na] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) [na:na] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) [na:na] at groovy.lang.Closure.call(Closure.java:426) [groovy-all:2.4.4] at groovy.lang.Closure.call(Closure.java:420) [groovy-all:2.4.4] at groovy.lang.Closure.run(Closure.java:507) [groovy-all:2.4.4] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60] {noformat}
    via by Kelly Robinson,
    • javax.validation.ConstraintViolationException: null at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.validate(RepositoryImpl.java:174)[na:na] at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:149)[na:na] at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.create(RepositoryManagerImpl.java:277)[na:na] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)[org.sonatype.nexus.common:3.1.0.b2016092101] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270)[org.sonatype.nexus.common:3.1.0.b2016092101] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)[org.sonatype.nexus.common:3.1.0.b2016092101] at org.sonatype.nexus.repository.manager.RepositoryManager$create$3.call(Unknown Source)[na:na] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)[na:na] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)[na:na] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)[na:na] at com.sonatype.nexus.migration.repository.RepositoryPrepareStep.doRun(RepositoryPrepareStep.groovy:129)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at com.sonatype.nexus.migration.plan.Step.run(Step.groovy:271)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source)[na:na] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)[na:na] at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source)[na:na] at com.sonatype.nexus.migration.plan.StepExecutor.runSync(StepExecutor.groovy:168)[na:na] at sun.reflect.GeneratedMethodAccessor267.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)[na:na] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)[na:na] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)[na:na] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)[na:na] at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)[na:na] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)[na:na] at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy:197)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101] at sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)[na:na] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)[na:na] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)[na:na] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)[na:na] at groovy.lang.Closure.call(Closure.java:426)[groovy-all:2.4.4] at groovy.lang.Closure.call(Closure.java:420)[groovy-all:2.4.4] at groovy.lang.Closure.run(Closure.java:507)[groovy-all:2.4.4] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_60] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_60] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_60]
    No Bugmate found.