javax.validation.ConstraintViolationException: null

Sonatype JIRA | Kelly Robinson | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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}

    Sonatype JIRA | 5 months ago | Kelly Robinson
    javax.validation.ConstraintViolationException: null

    Root Cause Analysis

    1. javax.validation.ConstraintViolationException

      null

      at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.validate()
    2. org.sonatype.nexus
      RepositoryManager$create$3.call
      1. org.sonatype.nexus.repository.manager.internal.RepositoryImpl.validate(RepositoryImpl.java:174)[na:na]
      2. org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:149)[na:na]
      3. org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.create(RepositoryManagerImpl.java:277)[na:na]
      4. org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)[org.sonatype.nexus.common:3.1.0.b2016092101]
      5. org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270)[org.sonatype.nexus.common:3.1.0.b2016092101]
      6. org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)[org.sonatype.nexus.common:3.1.0.b2016092101]
      7. org.sonatype.nexus.repository.manager.RepositoryManager$create$3.call(Unknown Source)[na:na]
      7 frames
    3. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)[na:na]
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)[na:na]
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)[na:na]
      3 frames
    4. com.sonatype.nexus
      Step$run$1.call
      1. com.sonatype.nexus.migration.repository.RepositoryPrepareStep.doRun(RepositoryPrepareStep.groovy:129)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101]
      2. com.sonatype.nexus.migration.plan.Step.run(Step.groovy:271)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101]
      3. com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source)[na:na]
      3 frames
    5. Groovy
      CallSiteArray.defaultCall
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)[na:na]
      1 frame
    6. com.sonatype.nexus
      StepExecutor.runSync
      1. com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source)[na:na]
      2. com.sonatype.nexus.migration.plan.StepExecutor.runSync(StepExecutor.groovy:168)[na:na]
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor267.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60]
      3. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60]
      3 frames
    8. Groovy
      AbstractCallSite.callCurrent
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)[na:na]
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)[na:na]
      3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)[na:na]
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)[na:na]
      5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)[na:na]
      6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)[na:na]
      6 frames
    9. com.sonatype.nexus
      StepExecutor$_runAsync_closure1.doCall
      1. com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy:197)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101]
      2. com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy)[com.sonatype.nexus.plugins.nexus-migration-plugin:3.1.0.b2016092101]
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60]
      3. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60]
      3 frames
    11. Groovy
      Closure.run
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)[na:na]
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)[na:na]
      3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)[na:na]
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)[na:na]
      5. groovy.lang.Closure.call(Closure.java:426)[groovy-all:2.4.4]
      6. groovy.lang.Closure.call(Closure.java:420)[groovy-all:2.4.4]
      7. groovy.lang.Closure.run(Closure.java:507)[groovy-all:2.4.4]
      7 frames
    12. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_60]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_60]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_60]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_60]
      5. java.lang.Thread.run(Thread.java:745)[na:1.8.0_60]
      5 frames