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

JSON error when adding deployment war step.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • deploy-plugin
    • None
    • Platform: Macintosh, OS: Linux

      I was adding a war deployment step to a running job in Hudson and got the
      following message.

      Error

      Failed to parse form data. Please report this probelm as a bug
      JSON={"hudson-triggers-TimerTrigger":

      {"timer_spec":"@daily"}

      ,"hudson-plugins-emotional_hudson-EmotionalHudsonPublisher":{},"jobProperty0":{},"jobProperty1":{"promotions":{"config":{"buildStep":{"":"hudson.plugins.deploy.Tomcat6xAdapter","adapter":

      {"stapler-class":"hudson.plugins.deploy.Tomcat6xAdapter","userName":"","password":"","url":"http://phpdevapp3.dev.livenation.com:8080"}

      ,"kind":"hudson.plugins.deploy.DeployPublisher$DescriptorImpl","war":""},"name":""}}},"builder":[

      {"shell":"env\necho \"Start svn up `date` \" \necho $WORKSPACE\nssh imager1 \"/usr/local/bin/svn up $WORKSPACE/global_digital\"\necho \"End svn up `date` \" \n# Fake out the properties file system to use hudson.properties to build the baker war into a private tomcat \n# so we can promote to being used later if the build works.\nexport USER=hudson\ncd $WORKSPACE/global_digital/plugins/baker/webapps/baker\nmkdir -p build/webapps\n$ANT_HOME/bin/ant -d -Duser.name=hudson clean\n$ANT_HOME/bin/ant -Duser.name=hudson\n","kind":"hudson.tasks.Shell$DescriptorImpl"}

      ,

      {"shell":"cd $WORKSPACE/global_digital/plugins/baker/webapps/baker\n$ANT_HOME/bin/ant -Duser.name=hudson short-build","kind":"hudson.tasks.Shell$DescriptorImpl"}

      ],"hudson-plugins-deploy-DeployPublisher":{"":"hudson.plugins.deploy.Tomcat6xAdapter","adapter":

      {"stapler-class":"hudson.plugins.deploy.Tomcat6xAdapter","userName":"","password":"","url":"http://phpdevapp3.dev.livenation.com:8080"}

      ,"war":"global_digital/plugins/baker/webapps/baker/build/webapps/baker.war"},"hudson-tasks-Mailer":

      {"mailer_recipients":"sf-dev@internal.livenation.com","mailer_notifyEveryUnstableBuild":true,"mailer_sendToIndividuals":true}

      ,"hudson-tasks-ArtifactArchiver":

      {"latestOnly":false,"excludes":"","artifacts":"global_digital/plugins/baker/webapps/baker/**/*.war"}

      ,"hudson-plugins-emailext-ExtendedEmailPublisher":

      {"":["select","Failure"],"body":["$PROJECT_DEFAULT_CONTENT","$PROJECT_DEFAULT_CONTENT","$PROJECT_DEFAULT_CONTENT","$PROJECT_DEFAULT_CONTENT","$PROJECT_DEFAULT_CONTENT","$PROJECT_DEFAULT_CONTENT"],"project_default_subject":"$DEFAULT_SUBJECT","includeCulprits":[false,false,false,false,false,false],"configured":["true","false","false","false","false","false"],"subject":["$PROJECT_DEFAULT_SUBJECT","$PROJECT_DEFAULT_SUBJECT","$PROJECT_DEFAULT_SUBJECT","$PROJECT_DEFAULT_SUBJECT","$PROJECT_DEFAULT_SUBJECT","$PROJECT_DEFAULT_SUBJECT"],"project_default_content":"$DEFAULT_CONTENT","sendToDevelopers":[true,true,true,true,true,true],"sendToRecipientList":[true,true,false,false,true,false],"recipientlist_recipients":"stuartschmukler@livenation.com, corey.lohman@livenation.com, georgeblazer@livenation.com, tanyaGygi@livenation.com","recipientList":["","","","","",""]}

      ,"description":"","name":"daily-build","hudson-tasks-BuildTrigger":

      {"childProjects":"the_bake, the_bake_in_place","evenIfUnstable":false}

      ,"jobProperty3":{},"scm":{"value":"0"}}

      net.sf.json.JSONException: null object
      at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2498)
      at net.sf.json.JSONObject.getString(JSONObject.java:1842)
      at hudson.plugins.promoted_builds.JobPropertyImpl.<init>(JobPropertyImpl.java:67)
      at hudson.plugins.promoted_builds.JobPropertyImpl.<init>(JobPropertyImpl.java:37)
      at
      hudson.plugins.promoted_builds.JobPropertyImpl$DescriptorImpl.newInstance(JobPropertyImpl.java:229)
      at
      hudson.plugins.promoted_builds.JobPropertyImpl$DescriptorImpl.newInstance(JobPropertyImpl.java:213)
      at hudson.model.Job.doConfigSubmit(Job.java:912)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:379)
      at sun.reflect.GeneratedMethodAccessor527.invoke(Unknown Source)
      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:156)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
      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:91)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      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.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
      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:619)

      Hudson ver. 1.291

            Unassigned Unassigned
            sasconsul sasconsul
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: