java.lang.IllegalStateException: User-token feature is not enabled

Sonatype JIRA | Stuart McCulloch | 2 years ago
  1. 0

    Unpack and start Nexus * Create an internal user * Delete the internal user * Exception will appear in log: {code} 2014-09-11 18:32:55,611+0100 ERROR [qtp357251045-230] admin com.google.common.eventbus.EventBus.default - Could not dispatch event: com.sonatype.nexus.usertoken.plugin.internal.UserTokenEventInspector@41df9bb6 to public void com.sonatype.nexus.usertoken.plugin.internal.UserTokenEventInspector.inspect(org.sonatype.security.events.UserPrincipalsExpired) java.lang.IllegalStateException: User-token feature is not enabled at com.google.common.base.Preconditions.checkState(Preconditions.java:176) [com.google.guava:16.0.1] at com.sonatype.nexus.usertoken.plugin.internal.UserTokenServiceImpl.ensureEnabled(UserTokenServiceImpl.java:172) [na:na] at com.sonatype.nexus.usertoken.plugin.internal.UserTokenServiceImpl.remove(UserTokenServiceImpl.java:362) [na:na] at com.sonatype.nexus.usertoken.plugin.internal.UserTokenEventInspector.handle(UserTokenEventInspector.java:52) [na:na] at com.sonatype.nexus.usertoken.plugin.internal.UserTokenEventInspector.inspect(UserTokenEventInspector.java:46) [na:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) [na:1.7.0_51] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [com.google.guava:16.0.1] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [com.google.guava:16.0.1] at com.google.common.eventbus.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:41) [com.google.guava:16.0.1] at com.google.common.eventbus.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:56) [com.google.guava:16.0.1] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [com.google.guava:16.0.1] at org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:73) [com.google.guava:16.0.1] at org.sonatype.security.DefaultSecuritySystem.deleteUser(DefaultSecuritySystem.java:418) [org.sonatype.nexus.core:3.0.0.SNAPSHOT] at org.sonatype.security.SecuritySystem$deleteUser.call(Unknown Source) [3.0.0-SNAPSHOT:3.0.0-SNAPSHOT] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [groovy-all:2.1.5] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [groovy-all:2.1.5] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [groovy-all:2.1.5] at org.sonatype.nexus.coreui.UserComponent.delete_(UserComponent.groovy:292) [org.sonatype.nexus.plugins.nexus-coreui-plugin:3.0.0.SNAPSHOT] {code}

    Sonatype JIRA | 2 years ago | Stuart McCulloch
    java.lang.IllegalStateException: User-token feature is not enabled
  2. 0

    is it possible to run IE8 on ubuntu via selenium?

    Stack Overflow | 2 years ago | koto-moto
    java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html
  3. 0

    installing allure jenkins plugin (v2.1) fails on latest jenkins build 1.576

    GitHub | 2 years ago | psura
    java.lang.IllegalStateException: The path to the driver executable must be set by the phantomjs.binary.path capability/system property/PATH variable; for more information, see https://github.com/ariya/phantomjs/wiki. The latest version can be downloaded from http://phantomjs.org/download.html
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Analyzer fails to catch usage of window function without OVER clause

    GitHub | 2 years ago | martint
    java.lang.IllegalStateException: not a scalar function or operator
  6. 0

    How to change Chronos port 8080 to something else, say, 8088?

    GitHub | 2 years ago | sourav82
    java.lang.IllegalStateException: Client is not started

  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

    User-token feature is not enabled

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:176)[com.google.guava:16.0.1]
    1 frame
  3. com.sonatype.nexus
    UserTokenEventInspector.inspect
    1. com.sonatype.nexus.usertoken.plugin.internal.UserTokenServiceImpl.ensureEnabled(UserTokenServiceImpl.java:172)[na:na]
    2. com.sonatype.nexus.usertoken.plugin.internal.UserTokenServiceImpl.remove(UserTokenServiceImpl.java:362)[na:na]
    3. com.sonatype.nexus.usertoken.plugin.internal.UserTokenEventInspector.handle(UserTokenEventInspector.java:52)[na:na]
    4. com.sonatype.nexus.usertoken.plugin.internal.UserTokenEventInspector.inspect(UserTokenEventInspector.java:46)[na:na]
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_51]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_51]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_51]
    4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_51]
    4 frames
  5. Guava
    EventBus.post
    1. com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[com.google.guava:16.0.1]
    2. com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[com.google.guava:16.0.1]
    3. com.google.common.eventbus.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:41)[com.google.guava:16.0.1]
    4. com.google.common.eventbus.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:56)[com.google.guava:16.0.1]
    5. com.google.common.eventbus.EventBus.post(EventBus.java:275)[com.google.guava:16.0.1]
    5 frames
  6. ${project.groupId}:${project.artifactId}
    DefaultEventBus.post
    1. org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:73)[com.google.guava:16.0.1]
    1 frame
  7. ${project.groupId}:${project.artifactId}
    SecuritySystem$deleteUser.call
    1. org.sonatype.security.DefaultSecuritySystem.deleteUser(DefaultSecuritySystem.java:418)[org.sonatype.nexus.core:3.0.0.SNAPSHOT]
    2. org.sonatype.security.SecuritySystem$deleteUser.call(Unknown Source)[3.0.0-SNAPSHOT:3.0.0-SNAPSHOT]
    2 frames
  8. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)[groovy-all:2.1.5]
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)[groovy-all:2.1.5]
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)[groovy-all:2.1.5]
    3 frames
  9. org.sonatype.nexus
    UserComponent.delete_
    1. org.sonatype.nexus.coreui.UserComponent.delete_(UserComponent.groovy:292)[org.sonatype.nexus.plugins.nexus-coreui-plugin:3.0.0.SNAPSHOT]
    1 frame