java.lang.IllegalStateException: null

Sonatype JIRA | Joe Tom | 5 months ago
  1. 0

    Running "Remove snapshots from Maven repository" task with a proxy or hosted release repository selected fires the below WARN and errors the task. Both proxy and hosted release repositories are available in the dropdown of repositories (and for maven configured by default). I do not believe these failing repository types should be in the dropdown if they just cause errors. This is borderline bug/improvement but I made a bug because of the error. {quote} 016-07-01 14:40:55,715-0400 WARN [quartz-2-thread-4] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task 6b9d9397-3ed8-495d-923b-7c0646340fb7 : 'test2' [repository.maven.remove-snapshots] execution failure java.lang.IllegalStateException: null at com.google.common.base.Preconditions.checkState(Preconditions.java:158) [com.google.guava:18.0.0] at org.sonatype.nexus.repository.RepositoryTaskSupport.findRepositories(RepositoryTaskSupport.java:83) [na:na] at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:53) [na:na] at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:89) [org.sonatype.nexus.scheduling:3.1.0.SNAPSHOT] at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:144) [org.sonatype.nexus.quartz:3.1.0.SNAPSHOT] at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:105) [org.sonatype.nexus.quartz:3.1.0.SNAPSHOT] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.quartz-scheduler.quartz:2.2.2] at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) [org.sonatype.nexus.thread:3.1.0.SNAPSHOT] at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [org.apache.shiro.core:1.2.4] at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [org.apache.shiro.core:1.2.4] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_40] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_40] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40] {quote} Specifically seems to be happening because Repositories with a policy of RELEASE can be selected, even though they can't possibly contain SNAPSHOT jars. Note that this is stored in Repository attributes, which presently aren't exposed as a criteria to choose from in RepositoryComboBox definition.

    Sonatype JIRA | 5 months ago | Joe Tom
    java.lang.IllegalStateException: null
  2. 0

    when using JDBC dirver to query has a error

    GitHub | 2 years ago | anywhy
    java.lang.IllegalStateException: null
  3. 0

    GitHub comment 1240#208896270

    GitHub | 8 months ago | PavelNiedoba
    java.lang.IllegalStateException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 388#230483368

    GitHub | 5 months ago | xeviscc
    java.lang.IllegalStateException: null
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

    null

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:158)[com.google.guava:18.0.0]
    1 frame
  3. org.sonatype.nexus
    RepositoryTaskSupport.execute
    1. org.sonatype.nexus.repository.RepositoryTaskSupport.findRepositories(RepositoryTaskSupport.java:83)[na:na]
    2. org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:53)[na:na]
    2 frames
  4. ${project.groupId}:${project.artifactId}
    TaskSupport.call
    1. org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:89)[org.sonatype.nexus.scheduling:3.1.0.SNAPSHOT]
    1 frame
  5. org.sonatype.nexus
    QuartzTaskJob.execute
    1. org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:144)[org.sonatype.nexus.quartz:3.1.0.SNAPSHOT]
    2. org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:105)[org.sonatype.nexus.quartz:3.1.0.SNAPSHOT]
    2 frames
  6. quartz
    JobRunShell.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[org.quartz-scheduler.quartz:2.2.2]
    1 frame
  7. org.sonatype.nexus
    MDCAwareRunnable.run
    1. org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)[org.sonatype.nexus.thread:3.1.0.SNAPSHOT]
    1 frame
  8. Shiro
    SubjectRunnable.run
    1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)[org.apache.shiro.core:1.2.4]
    2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)[org.apache.shiro.core:1.2.4]
    2 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_40]
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_40]
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_40]
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_40]
    5. java.lang.Thread.run(Thread.java:745)[na:1.8.0_40]
    5 frames