Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48627

Jenkins will not start, error message: com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl cannot be cast to hudson.model.UserProperty

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After upgrading from Jenkins 2.60.2 to 2.89.2 Jenkins will not start.

      Also, for Jenkins 2.73.2 same behavior occurs.
      Reverting back to Jenkins 2.60.2 is possible, and gives no problem.

      This is the error trace:

      java.lang.ClassCastException: com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl cannot be cast to hudson.model.UserProperty

      at hudson.model.User.getProperty(User.java:305)

      at hudson.model.User.load(User.java:204)

      at hudson.model.User.<init>(User.java:157)

      at hudson.model.User.getOrCreate(User.java:470)

      at hudson.model.User.access$300(User.java:128)

      at hudson.model.User$AllUsers.scanAll(User.java:1011)

      Caused: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)

      Caused: java.lang.Error

      at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)

      at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)

      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)

      at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)

      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)

      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:745)

      Caused: org.jvnet.hudson.reactor.ReactorException

      at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)

      at jenkins.InitReactorRunner.run(InitReactorRunner.java:47)

      at jenkins.model.Jenkins.executeReactor(Jenkins.java:1124)

      at jenkins.model.Jenkins.<init>(Jenkins.java:929)

      at hudson.model.Hudson.<init>(Hudson.java:86)

      at hudson.model.Hudson.<init>(Hudson.java:82)

      at hudson.WebAppMain$3.run(WebAppMain.java:235)

      Caused: hudson.util.HudsonFailedToLoad

      at hudson.WebAppMain$3.run(WebAppMain.java:252)

        Attachments

          Activity

          Hide
          arjanschuurmans Arjan Schuurmans added a comment -

          Problem occurs first from LTS version 2.70.1. Version 2.60.3 gives no problem.

          Show
          arjanschuurmans Arjan Schuurmans added a comment - Problem occurs first from LTS version 2.70.1. Version 2.60.3 gives no problem.
          Hide
          foobar Laurens Bruinsma added a comment - - edited

          Hi, I'm a colleague of Arjan. I can add the following:

          The shown stack trace pertains to version 2.73.2 of Jenkins. For version 2.89.2, the stack trace is the same, except for the line numbers: they are slightly different.

          Also, the problem occurs when using LTS version 2.73.1 (not 2.70.1) and higher.

           

          Show
          foobar Laurens Bruinsma added a comment - - edited Hi, I'm a colleague of Arjan. I can add the following: The shown stack trace pertains to version 2.73.2 of Jenkins. For version 2.89.2, the stack trace is the same, except for the line numbers: they are slightly different. Also, the problem occurs when using LTS version 2.73.1 (not 2.70.1) and higher.  
          Hide
          arjanschuurmans Arjan Schuurmans added a comment -

          The error was caused by one config file of a user on the server.
          After inspection by a colleague, the entries with

          <com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>
          < password> ****** <password>
          </com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> seem to be the cause.

          Show
          arjanschuurmans Arjan Schuurmans added a comment - The error was caused by one config file of a user on the server. After inspection by a colleague, the entries with <com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> < password> ****** <password> </com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> seem to be the cause.

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              arjanschuurmans Arjan Schuurmans
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: