java.lang.IllegalStateException: Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm)

Sonatype JIRA | Peter Lynch | 2 years ago
  1. 0

    Create an npm hosted repo. Create a staging profile. You can select the npm hosted repo as the Release Repository. Stage an artifact. Try to release the staging repo. Release fails with 500 error. {noformat} jvm 1 | 2014-10-07 14:45:40,146-0300 INFO [qtp273957304-92] admin com.sonatype.nexus.staging.internal.DefaultStagingManager - Releasing staging repositories [stage-1000] jvm 1 | 2014-10-07 14:45:40,154-0300 WARN [qtp273957304-92] admin com.sonatype.nexus.staging.internal.DefaultStagingManager - Abort background; task preparations failed jvm 1 | java.lang.IllegalStateException: Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm) jvm 1 | at com.google.common.base.Preconditions.checkState(Preconditions.java:200) ~[guava-16.0.1.jar:na] jvm 1 | at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask$ReleaseItem.<init>(RepositoryReleaseTask.java:136) ~[nexus-staging-plugin-2.10.0-02/:na] jvm 1 | at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask$ReleaseItem.<init>(RepositoryReleaseTask.java:125) ~[nexus-staging-plugin-2.10.0-02/:na] jvm 1 | at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask.createItem(RepositoryReleaseTask.java:203) ~[nexus-staging-plugin-2.10.0-02/:na] jvm 1 | at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask.createItem(RepositoryReleaseTask.java:1) ~[nexus-staging-plugin-2.10.0-02/:na] jvm 1 | at com.sonatype.nexus.staging.internal.task.OperationTaskSupport$1.doApply(OperationTaskSupport.java:125) ~[nexus-staging-plugin-2.10.0-02/:na] jvm 1 | at com.sonatype.nexus.staging.internal.task.OperationTaskSupport$1.doApply(OperationTaskSupport.java:1) ~[nexus-staging-plugin-2.10.0-02/:n {noformat} Expected: - do not allow npm hosted repos to be a release repository for a staging profile

    Sonatype JIRA | 2 years ago | Peter Lynch
    java.lang.IllegalStateException: Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm)
  2. 0

    docker.com | 1 month ago
    java.lang.IllegalStateException: Nexus work directory already in use: /sonatype-work
  3. 0

    Crawling with Google Chrome fails silently in Web UI

    GitHub | 3 years ago | keheliya
    java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html while locating com.crawljax.browser.WebDriverBrowserBuilder while locating com.crawljax.browser.EmbeddedBrowser for parameter 0 at com.crawljax.core.CrawlerContext.<init>(CrawlerContext.java:32) while locating com.crawljax.core.CrawlerContext for parameter 0 at com.crawljax.core.Crawler.<init>(Crawler.java:72) while locating com.crawljax.core.Crawler for parameter 2 at com.crawljax.core.CrawlTaskConsumer.<init>(CrawlTaskConsumer.java:30) while locating com.crawljax.core.CrawlTaskConsumer 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Titan data corruption

    Stack Overflow | 2 years ago | crak
    java.lang.IllegalStateException: Could not find type for id: 630
  6. 0

    compiler crashes with integer overflow when evaluating expressions

    GitHub | 1 year ago | nicks
    java.lang.IllegalStateException: Casting long to integer results in overflow: 1000000000000

  1. fervidnerd 2 times, last 6 days ago
  2. musketyr 1 times, last 3 weeks ago
  3. pnaranja 2 times, last 5 months ago
  4. regisso 1 times, last 6 months ago
  5. Bardh 2 times, last 6 months ago
5 more registered users
61 unregistered visitors
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.IllegalStateException

    Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm)

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:200)[guava-16.0.1.jar:na]
    1 frame
  3. com.sonatype.nexus
    OperationTaskSupport$1.doApply
    1. com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask$ReleaseItem.<init>(RepositoryReleaseTask.java:136)[nexus-staging-plugin-2.10.0-02/:na]
    2. com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask$ReleaseItem.<init>(RepositoryReleaseTask.java:125)[nexus-staging-plugin-2.10.0-02/:na]
    3. com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask.createItem(RepositoryReleaseTask.java:203)[nexus-staging-plugin-2.10.0-02/:na]
    4. com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask.createItem(RepositoryReleaseTask.java:1)[nexus-staging-plugin-2.10.0-02/:na]
    5. com.sonatype.nexus.staging.internal.task.OperationTaskSupport$1.doApply(OperationTaskSupport.java:125)[nexus-staging-plugin-2.10.0-02/:na]
    5 frames