java.lang.IllegalArgumentException: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war

JFrog JIRA | Tal Abramson | 8 years ago
  1. 0

    If a non-unique artifact was already deployed to a repository , and then you change the repository Snapshot Version Behavior to UNIQUE When you try to redeploy that artifact again you get an error 500 and you get this in the log: 2009-03-16 10:40:42,109 [ERROR] (o.a.w.s.RepoFilter :72) - Sending HTTP error code 500: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war java.lang.IllegalArgumentException: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war at org.artifactory.api.maven.MavenNaming.getUniqueSnapshotVersionBuildNumber(MavenNaming.java:221) [artifactory-api-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.getSnapshotFile(UploadServiceImpl.java:356) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.getSnapshotFile(UploadServiceImpl.java:330) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.getSnapshotTimestamp(UploadServiceImpl.java:311) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.adjustNonUniqueSnapshotToUnique(UploadServiceImpl.java:222) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.adjustSnapshotPath(UploadServiceImpl.java:178) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.doProcess(UploadServiceImpl.java:128) [artifactory-core-2.0.3.jar:na] at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.5.jar:2.5.5] at org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79) [artifactory-core-2.0.3.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.5.jar:2.5.5] at $Proxy45.doProcess(Unknown Source) [na:na] at org.artifactory.engine.UploadServiceImpl.process(UploadServiceImpl.java:105) [artifactory-core-2.0.3.jar:na] at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.5.jar:2.5.5] at $Proxy45.process(Unknown Source) [na:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:121) [RepoFilter.class:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73) [RepoFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:178) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:118) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90) [AccessFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51) [ArtifactoryFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [catalina.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) [catalina.jar:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) [tomcat-coyote.jar:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tomcat-coyote.jar:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) [tomcat-coyote.jar:na] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12]

    JFrog JIRA | 8 years ago | Tal Abramson
    java.lang.IllegalArgumentException: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war
  2. 0

    If a non-unique artifact was already deployed to a repository , and then you change the repository Snapshot Version Behavior to UNIQUE When you try to redeploy that artifact again you get an error 500 and you get this in the log: 2009-03-16 10:40:42,109 [ERROR] (o.a.w.s.RepoFilter :72) - Sending HTTP error code 500: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war java.lang.IllegalArgumentException: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war at org.artifactory.api.maven.MavenNaming.getUniqueSnapshotVersionBuildNumber(MavenNaming.java:221) [artifactory-api-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.getSnapshotFile(UploadServiceImpl.java:356) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.getSnapshotFile(UploadServiceImpl.java:330) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.getSnapshotTimestamp(UploadServiceImpl.java:311) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.adjustNonUniqueSnapshotToUnique(UploadServiceImpl.java:222) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.adjustSnapshotPath(UploadServiceImpl.java:178) [artifactory-core-2.0.3.jar:na] at org.artifactory.engine.UploadServiceImpl.doProcess(UploadServiceImpl.java:128) [artifactory-core-2.0.3.jar:na] at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.5.jar:2.5.5] at org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79) [artifactory-core-2.0.3.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.5.jar:2.5.5] at $Proxy45.doProcess(Unknown Source) [na:na] at org.artifactory.engine.UploadServiceImpl.process(UploadServiceImpl.java:105) [artifactory-core-2.0.3.jar:na] at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.5.jar:2.5.5] at $Proxy45.process(Unknown Source) [na:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:121) [RepoFilter.class:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73) [RepoFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:178) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:118) [AccessFilter.class:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90) [AccessFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51) [ArtifactoryFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [catalina.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) [catalina.jar:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) [tomcat-coyote.jar:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tomcat-coyote.jar:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) [tomcat-coyote.jar:na] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12]

    JFrog JIRA | 8 years ago | Tal Abramson
    java.lang.IllegalArgumentException: Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war
  3. 0

    spring application with jpa repositiry not starting if used @Transactional

    Stack Overflow | 3 months ago | user783662
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina3].StandardHost[localhost].StandardContext[/accounting]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: 500 Internal server error getting artifact.

    archiva-users | 5 years ago | Jeff
    java.lang.IllegalArgumentException: Not a valid artifact path in a Maven 2 repository, not enough directories: .indexer\nexus-maven-repository-index.zip*
  6. 0

    500 Internal server error getting artifact.

    archiva-users | 5 years ago | Jeff
    java.lang.IllegalArgumentException: Not a valid artifact path in a Maven 2 repository, not enough directories: .indexer\nexus-maven-repository-index.zip*

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Not a valid maven unique snapshot version: deploy-war-1.0-SNAPSHOT.war

      at org.artifactory.api.maven.MavenNaming.getUniqueSnapshotVersionBuildNumber()
    2. org.artifactory.api
      MavenNaming.getUniqueSnapshotVersionBuildNumber
      1. org.artifactory.api.maven.MavenNaming.getUniqueSnapshotVersionBuildNumber(MavenNaming.java:221)[artifactory-api-2.0.3.jar:na]
      1 frame
    3. org.artifactory.engine
      UploadServiceImpl.doProcess
      1. org.artifactory.engine.UploadServiceImpl.getSnapshotFile(UploadServiceImpl.java:356)[artifactory-core-2.0.3.jar:na]
      2. org.artifactory.engine.UploadServiceImpl.getSnapshotFile(UploadServiceImpl.java:330)[artifactory-core-2.0.3.jar:na]
      3. org.artifactory.engine.UploadServiceImpl.getSnapshotTimestamp(UploadServiceImpl.java:311)[artifactory-core-2.0.3.jar:na]
      4. org.artifactory.engine.UploadServiceImpl.adjustNonUniqueSnapshotToUnique(UploadServiceImpl.java:222)[artifactory-core-2.0.3.jar:na]
      5. org.artifactory.engine.UploadServiceImpl.adjustSnapshotPath(UploadServiceImpl.java:178)[artifactory-core-2.0.3.jar:na]
      6. org.artifactory.engine.UploadServiceImpl.doProcess(UploadServiceImpl.java:128)[artifactory-core-2.0.3.jar:na]
      6 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_12]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_12]
      3 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)[spring-aop-2.5.5.jar:2.5.5]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.5.jar:2.5.5]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.5.jar:2.5.5]
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)[spring-tx-2.5.5.jar:2.5.5]
      1 frame
    7. org.artifactory.jcr
      LockingAdvice.invoke
      1. org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79)[artifactory-core-2.0.3.jar:na]
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)[spring-aop-2.5.5.jar:2.5.5]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-2.5.5.jar:2.5.5]
      2 frames
    9. Unknown
      $Proxy45.doProcess
      1. $Proxy45.doProcess(Unknown Source)[na:na]
      1 frame
    10. org.artifactory.engine
      UploadServiceImpl.process
      1. org.artifactory.engine.UploadServiceImpl.process(UploadServiceImpl.java:105)[artifactory-core-2.0.3.jar:na]
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_12]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_12]
      3 frames
    12. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)[spring-aop-2.5.5.jar:2.5.5]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-2.5.5.jar:2.5.5]
      2 frames
    13. Unknown
      $Proxy45.process
      1. $Proxy45.process(Unknown Source)[na:na]
      1 frame
    14. org.artifactory.webapp
      RepoFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:121)[RepoFilter.class:na]
      2. org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73)[RepoFilter.class:na]
      2 frames
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:na]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:na]
      2 frames
    16. org.artifactory.webapp
      AccessFilter.doFilter
      1. org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190)[AccessFilter.class:na]
      2. org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:178)[AccessFilter.class:na]
      3. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:118)[AccessFilter.class:na]
      4. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90)[AccessFilter.class:na]
      4 frames
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:na]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:na]
      2 frames
    18. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51)[ArtifactoryFilter.class:na]
      1 frame
    19. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:na]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:na]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[catalina.jar:na]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[catalina.jar:na]
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)[catalina.jar:na]
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[catalina.jar:na]
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[catalina.jar:na]
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)[catalina.jar:na]
      8 frames
    20. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)[tomcat-coyote.jar:na]
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)[tomcat-coyote.jar:na]
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)[tomcat-coyote.jar:na]
      3 frames
    21. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)[na:1.6.0_12]
      1 frame