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

Null Pointer Exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: job-import-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 11.04 64-bit
      Jenkins version 1.432
      Oracle JDK 1.6.26
    • Similar Issues:

      Description

      a NPE happens when importing a job

      Status Code: 500
      Exception:
      Stacktrace:

      java.lang.NullPointerException
      at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:377)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:74)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      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:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
      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:66)
      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:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:662)

      Generated by Winstone Servlet Engine v0.9.10 at Sun Oct 02 18:41:25 EEST 2011

        Attachments

          Issue Links

            Activity

            Hide
            dim Dorin Marinca added a comment -

            I think I got the same on Jenkins ver. 1.450 with Job Import Plugin 1.0:

            Status Code: 500
            Exception:
            Stacktrace:

            java.lang.NullPointerException
            at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126)
            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:282)
            at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
            at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
            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:563)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
            at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
            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:95)
            at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:185)
            at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:159)
            at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
            at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
            at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
            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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
            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:173)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
            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:66)
            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 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:244)
            at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
            at java.lang.Thread.run(Unknown Source)

            Generated by Winstone Servlet Engine v0.9.10 at Mon Feb 13 16:56:07 CET 2012

            Wondering how the plugin is working when the jenkins instance holding the source job needs authentication... Is that supported by the plugin? If not could be related?

            Show
            dim Dorin Marinca added a comment - I think I got the same on Jenkins ver. 1.450 with Job Import Plugin 1.0: Status Code: 500 Exception: Stacktrace: java.lang.NullPointerException at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126) 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:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) 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:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) 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:95) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:185) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:159) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) 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:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) 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:66) 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 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:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) Generated by Winstone Servlet Engine v0.9.10 at Mon Feb 13 16:56:07 CET 2012 Wondering how the plugin is working when the jenkins instance holding the source job needs authentication... Is that supported by the plugin? If not could be related?
            Hide
            jcarsique Julien Carsique added a comment - - edited

            Same issue (authentication required):

            javax.servlet.ServletException: java.lang.NullPointerException
            	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:605)
            	org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
            (...)
            java.lang.NullPointerException
            	org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126)

            Log on the server side:

            Mar 20, 2012 2:23:14 PM org.jenkins.ci.plugins.jobimport.JobImportAction doImport
            WARNING: Job Import Failed: Server returned HTTP response code: 403 for URL: https://myurl/jenkins/job/myjob//config.xml
            Mar 20, 2012 2:23:14 PM org.jenkins.ci.plugins.jobimport.JobImportAction doImport
            INFO: Server returned HTTP response code: 403 for URL: https://myurl/jenkins/job/myjob//config.xml
            java.io.IOException: Server returned HTTP response code: 403 for URL: https://myurl/jenkins/job/myjob//config.xml
            	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
            	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
            	at java.net.URL.openStream(URL.java:1010)
            	at org.jenkins.ci.plugins.jobimport.URLUtils.fetchUrl(URLUtils.java:51)
            	at org.jenkins.ci.plugins.jobimport.URLUtils.fetchUrl(URLUtils.java:42)
            	at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:102)
            
            Show
            jcarsique Julien Carsique added a comment - - edited Same issue (authentication required): javax.servlet.ServletException: java.lang.NullPointerException org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:605) org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) (...) java.lang.NullPointerException org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126) Log on the server side: Mar 20, 2012 2:23:14 PM org.jenkins.ci.plugins.jobimport.JobImportAction doImport WARNING: Job Import Failed: Server returned HTTP response code: 403 for URL: https: //myurl/jenkins/job/myjob//config.xml Mar 20, 2012 2:23:14 PM org.jenkins.ci.plugins.jobimport.JobImportAction doImport INFO: Server returned HTTP response code: 403 for URL: https: //myurl/jenkins/job/myjob//config.xml java.io.IOException: Server returned HTTP response code: 403 for URL: https: //myurl/jenkins/job/myjob//config.xml at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at java.net.URL.openStream(URL.java:1010) at org.jenkins.ci.plugins.jobimport.URLUtils.fetchUrl(URLUtils.java:51) at org.jenkins.ci.plugins.jobimport.URLUtils.fetchUrl(URLUtils.java:42) at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:102)
            Hide
            mailsindhur Sindhu Rajan added a comment -

            Same kind of error. This doesn't show some jobs as loaded on the dashborad

            Mar 21, 2012 4:35:15 PM jenkins.InitReactorRunner$1 onTaskFailed
            SEVERE: Failed Loading job aaaa_zzzzzz
            hudson.util.IOException2: Unable to read /data/jenkins/jobs/aaaa_zzzzzz/config.xml
                    at hudson.XmlFile.read(XmlFile.java:137)
                    at hudson.model.Items.load(Items.java:114)
                    at jenkins.model.Jenkins$15.run(Jenkins.java:2421)
                    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
                    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
                    at jenkins.model.Jenkins$6.runTask(Jenkins.java:840)
                    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
                    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                    at java.lang.Thread.run(Thread.java:662)
            Caused by: com.thoughtworks.xstream.converters.ConversionException: Invalid reference
            ---- Debugging information ----
            reference           : ../../../../project-properties/entry[7]/copy-write-list-property/originalValue/hudson.model.ParametersDefinitionProperty/parameterDefinitions/hudson.model.ChoiceParamet
            erDefinition
            class               : hudson.model.FreeStyleProject
            required-type       : java.util.ArrayList
            path                : /project/properties/hudson.model.ParametersDefinitionProperty/parameterDefinitions/hudson.model.ChoiceParameterDefinition
            line number         : 108
            -------------------------------
                    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:56)
                    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
                    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
                    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
            
            
            Show
            mailsindhur Sindhu Rajan added a comment - Same kind of error. This doesn't show some jobs as loaded on the dashborad Mar 21, 2012 4:35:15 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job aaaa_zzzzzz hudson.util.IOException2: Unable to read /data/jenkins/jobs/aaaa_zzzzzz/config.xml at hudson.XmlFile.read(XmlFile.java:137) at hudson.model.Items.load(Items.java:114) at jenkins.model.Jenkins$15.run(Jenkins.java:2421) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$6.runTask(Jenkins.java:840) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: com.thoughtworks.xstream.converters.ConversionException: Invalid reference ---- Debugging information ---- reference : ../../../../project-properties/entry[7]/copy-write-list-property/originalValue/hudson.model.ParametersDefinitionProperty/parameterDefinitions/hudson.model.ChoiceParamet erDefinition class : hudson.model.FreeStyleProject required-type : java.util.ArrayList path : /project/properties/hudson.model.ParametersDefinitionProperty/parameterDefinitions/hudson.model.ChoiceParameterDefinition line number : 108 ------------------------------- at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:56) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
            Hide
            fmerrow Frank Merrow added a comment - - edited

            Having the same issue . . . and as others have noted for me authentication is enabled in the source host.

            buildcrm-MPSS.NI.1.0 FAILED - Server returned HTTP response code: 403 for URL: http://rfields2.na.qualcomm.com:8080/job/buildcrm-MPSS.NI.1.0//config.xml

            I actually thought it might be the double-/ shown . . . but authentication sounds more likely.

            Unfortunately, our authentication setup is not one line . . . is it not easy to turn off and then just turn back on because all current entries are lost . . . hmmm . . . as a work around, I suppose I could try to give Anonymous lots of permissions . . . at least for a few minutes . . . let me try that as a work around.

            UPDATE: Success . . . I enabled "Admin" for Anonymous, did the import and turned Admin back off . . . not the best solution, but a useful workaround (if you happen to be the admin already).

            Show
            fmerrow Frank Merrow added a comment - - edited Having the same issue . . . and as others have noted for me authentication is enabled in the source host. buildcrm-MPSS.NI.1.0 FAILED - Server returned HTTP response code: 403 for URL: http://rfields2.na.qualcomm.com:8080/job/buildcrm-MPSS.NI.1.0//config.xml I actually thought it might be the double-/ shown . . . but authentication sounds more likely. Unfortunately, our authentication setup is not one line . . . is it not easy to turn off and then just turn back on because all current entries are lost . . . hmmm . . . as a work around, I suppose I could try to give Anonymous lots of permissions . . . at least for a few minutes . . . let me try that as a work around. UPDATE: Success . . . I enabled "Admin" for Anonymous, did the import and turned Admin back off . . . not the best solution, but a useful workaround (if you happen to be the admin already).
            Hide
            ssbarnea Sorin Sbarnea added a comment -

            No plans on fixing this?

            Show
            ssbarnea Sorin Sbarnea added a comment - No plans on fixing this?
            Show
            jglick Jesse Glick added a comment - https://github.com/jenkinsci/job-import-plugin/commit/e52d913aad5f83cb6c35c6494f15d77c7bce72db

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              sgr Sergey Grigoriev
              Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: