org.sonatype.nexus.plugin.migration.artifactory.MigrationException

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.

  • This is happening in the lastest release: 2009-08-04 08:08:55 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: codehaus-snapshots 2009-08-04 08:08:55 ERROR [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to import repository 'codehaus-snapshots': Unable to create new repository: codehaus-snapshots org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:533) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepository(DefaultArtifactoryMigrator.java:448) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepositories(DefaultArtifactoryMigrator.java:387) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:210) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - The Repository ID 'codehaus-snapshots' conflicts with an existing Repository ID Validation warnings follows: o id - Repository with ID='codehaus-snapshots' has no name, defaulted to it's ID. at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository(DefaultNexusConfiguration.java:777) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepository(DefaultNexusConfiguration.java:790) at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:496) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:529) ... 13 more 2009-08-04 08:08:55 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: ext-releases 2009-08-04 08:08:55 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: ext-relea
    via by Marvin Herman Froeder,
  • while importing a repo which id is conflicted with existing nexus repo id, I am able to select "merge" in UI and then merge the 2 repos but when I don't select the "merge", I got the following exception: {noformat} jvm 1 | 2009-04-22 20:17:57 ERROR - o.s.n.p.m.a.Artifac~:default - Failed to import repository 'codehaus-snapshots': Unable to create new repository: codehaus-snapshots jvm 1 | org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:525) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepository(DefaultArtifactoryMigrator.java:439) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepositories(DefaultArtifactoryMigrator.java:378) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:207) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:619) jvm 1 | Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! jvm 1 | Validation errors follows: jvm 1 | o id - The Repository ID 'codehaus-snapshots' conflicts with an existing Repository ID jvm 1 | jvm 1 | Validation warnings follows: jvm 1 | o id - Repository with ID='codehaus-snapshots' has no name, defaulted to it's ID. jvm 1 | jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository(DefaultNexusConfiguration.java:776) jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepository(DefaultNexusConfiguration.java:789) jvm 1 | at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:495) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:521) jvm 1 | ... 13 more {noformat} the user should be warned that, if not merge, the repo would be abandoned, and no exception should arise.
    via by Juven Xu,
    • org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:533) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepository(DefaultArtifactoryMigrator.java:448) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepositories(DefaultArtifactoryMigrator.java:387) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:210) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - The Repository ID 'codehaus-snapshots' conflicts with an existing Repository ID Validation warnings follows: o id - Repository with ID='codehaus-snapshots' has no name, defaulted to it's ID. at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository(DefaultNexusConfiguration.java:777) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepository(DefaultNexusConfiguration.java:790) at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:496) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:529) ... 13 more
    No Bugmate found.