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

Cannot create credentials

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: credentials-plugin
    • Labels:
      None
    • Environment:
      Chrome 29.0.1547.66 m
      FireFox 23.0.1
      Cleared cookies
      Fresh install of Jenkins 1.530
    • Similar Issues:

      Description

      Every time I try creating an SSH credential with a password in the global domain I get the following exception:

      Sep 13, 2013 6:04:01 AM winstone.Logger logInternal
      SEVERE: Error while serving http://localhost:8080/credential-store/domain/_/createCredentials
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
      	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:381)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:587)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:218)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      	at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
      	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NullPointerException
      	at hudson.Util.rawEncode(Util.java:821)
      	at com.cloudbees.plugins.credentials.CredentialsStoreAction$DomainWrapper.doCreateCredentials(CredentialsStoreAction.java:266)
      	... 69 more
      

      I am filing this with a high priority because this is happening on a fresh install of Jenkins. I tried both LTS and bleeding-edge versions and I get the same behavior in both cases so I cannot configure any slave machines.

      I tried clearing the browser cookies, and also under FireFox but the same problem occurs.

        Attachments

          Activity

          Hide
          stephenconnolly Stephen Connolly added a comment -

          Can you create the credentials with via the Manage Jenkins » Manage Credentials link rather than the new UI?

          Show
          stephenconnolly Stephen Connolly added a comment - Can you create the credentials with via the Manage Jenkins » Manage Credentials link rather than the new UI?
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Fixed in 1.8.2

          Show
          stephenconnolly Stephen Connolly added a comment - Fixed in 1.8.2
          Hide
          stephenconnolly Stephen Connolly added a comment -

          You can download the 1.8.2 version from http://jenkins-updates.cloudbees.com/download/plugins/credentials/ if you want it now as the OSS update centre and it's mirrors can take a while to sync

          Show
          stephenconnolly Stephen Connolly added a comment - You can download the 1.8.2 version from http://jenkins-updates.cloudbees.com/download/plugins/credentials/ if you want it now as the OSS update centre and it's mirrors can take a while to sync
          Hide
          cowwoc cowwoc added a comment -

          Thanks for the quick turnaround. I can confirm that 1.8.2 fixes the problem, though you still have a layout problem under Chrome whereby the OK button renders on top of the password field preventing you from filling it in. As a workaround, I fill in the username, hit OK then go back and add the password.

          Show
          cowwoc cowwoc added a comment - Thanks for the quick turnaround. I can confirm that 1.8.2 fixes the problem, though you still have a layout problem under Chrome whereby the OK button renders on top of the password field preventing you from filling it in. As a workaround, I fill in the username, hit OK then go back and add the password.
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Yeah I think that will require moving the core version past 1.480 to pick up the correct jelly taglib... but as there are still SCM plugins that need 1.466 or older I am reluctant to force the upgrade just yet.

          Show
          stephenconnolly Stephen Connolly added a comment - Yeah I think that will require moving the core version past 1.480 to pick up the correct jelly taglib... but as there are still SCM plugins that need 1.466 or older I am reluctant to force the upgrade just yet.
          Hide
          stephenconnolly Stephen Connolly added a comment -

          In other words I'd rather ensure older versions of core have the API functionality they need and then upgrade the required core to fix the UI glitches

          Show
          stephenconnolly Stephen Connolly added a comment - In other words I'd rather ensure older versions of core have the API functionality they need and then upgrade the required core to fix the UI glitches
          Hide
          cowwoc cowwoc added a comment -

          Makes sense. Thanks again!

          Show
          cowwoc cowwoc added a comment - Makes sense. Thanks again!

            People

            Assignee:
            stephenconnolly Stephen Connolly
            Reporter:
            cowwoc cowwoc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: