org.acegisecurity.userdetails.UsernameNotFoundException:

Jenkins JIRA | Robert Cope | 1 year ago
  1. 0

    I have just installed Jenkins 1.620, and am running it with security off. I have installed the IRC Plugin (2.26), and get an exception thrown whenever I send commands to the bot in IRC, like !jenkins help It looks like in Bot.java, around line 134, this.authentication returns non-null, and throws a fault when used with security off. The stack trace: Jul 19, 2015 11:32:31 PM WARNING hudson.plugins.im.bot.Bot onMessage org.acegisecurity.userdetails.UsernameNotFoundException: at hudson.security.SecurityRealm$None$2.loadUserByUsername(SecurityRealm.java:494) at jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32) at hudson.model.User.impersonate(User.java:309) at hudson.plugins.im.IMConnectionProvider$1.getAuthentication(IMConnectionProvider.java:128) at hudson.plugins.im.bot.Bot.onMessage(Bot.java:136) at hudson.plugins.ircbot.v2.PircListener.onMessage(PircListener.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pircbotx.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:98) at org.pircbotx.hooks.managers.ThreadedListenerManager$1.run(ThreadedListenerManager.java:110) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Relevant config: <useSecurity>false</useSecurity> <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/> <securityRealm class="hudson.security.SecurityRealm$None"/>

    Jenkins JIRA | 1 year ago | Robert Cope
    org.acegisecurity.userdetails.UsernameNotFoundException:
  2. 0

    I have just installed Jenkins 1.620, and am running it with security off. I have installed the IRC Plugin (2.26), and get an exception thrown whenever I send commands to the bot in IRC, like !jenkins help It looks like in Bot.java, around line 134, this.authentication returns non-null, and throws a fault when used with security off. The stack trace: Jul 19, 2015 11:32:31 PM WARNING hudson.plugins.im.bot.Bot onMessage org.acegisecurity.userdetails.UsernameNotFoundException: at hudson.security.SecurityRealm$None$2.loadUserByUsername(SecurityRealm.java:494) at jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32) at hudson.model.User.impersonate(User.java:309) at hudson.plugins.im.IMConnectionProvider$1.getAuthentication(IMConnectionProvider.java:128) at hudson.plugins.im.bot.Bot.onMessage(Bot.java:136) at hudson.plugins.ircbot.v2.PircListener.onMessage(PircListener.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pircbotx.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:98) at org.pircbotx.hooks.managers.ThreadedListenerManager$1.run(ThreadedListenerManager.java:110) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Relevant config: <useSecurity>false</useSecurity> <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/> <securityRealm class="hudson.security.SecurityRealm$None"/>

    Jenkins JIRA | 1 year ago | Robert Cope
    org.acegisecurity.userdetails.UsernameNotFoundException:
  3. 0

    Authenticating jenkins-cli using crowd2 Plugin

    Google Groups | 11 months ago | Robert Szentmihalyi
    org.acegisecurity.userdetails.UsernameNotFoundException: jenkinsdeploy
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [core] (JENKINS-22853) SEVERE: Trying to unexport an object that's already unexported

    Google Groups | 2 years ago | christo...@gmx.net (JIRA)
    org.acegisecurity.userdetails.UsernameNotFoundException: admin

    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. org.acegisecurity.userdetails.UsernameNotFoundException

      at hudson.security.SecurityRealm$None$2.loadUserByUsername()
    2. Hudson
      SecurityRealm$None$2.loadUserByUsername
      1. hudson.security.SecurityRealm$None$2.loadUserByUsername(SecurityRealm.java:494)
      1 frame
    3. jenkins.security
      ImpersonatingUserDetailsService.loadUserByUsername
      1. jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32)
      1 frame
    4. Hudson
      User.impersonate
      1. hudson.model.User.impersonate(User.java:309)
      1 frame
    5. Hudson instant-messaging plugin
      Bot.onMessage
      1. hudson.plugins.im.IMConnectionProvider$1.getAuthentication(IMConnectionProvider.java:128)
      2. hudson.plugins.im.bot.Bot.onMessage(Bot.java:136)
      2 frames
    6. hudson.plugins.ircbot
      PircListener.onMessage
      1. hudson.plugins.ircbot.v2.PircListener.onMessage(PircListener.java:79)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    8. org.pircbotx.hooks
      ThreadedListenerManager$1.run
      1. org.pircbotx.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:98)
      2. org.pircbotx.hooks.managers.ThreadedListenerManager$1.run(ThreadedListenerManager.java:110)
      2 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames