net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object

Jenkins JIRA | jlin | 4 years ago
  1. 0

    We have three Jenkins instances. Two are on 1.423 and one is on 1.414. Starting sometime on September 8th 2012, our builds on Jenkins all started to fail with the following error: {code} FATAL: Error while setting property=signature type class java.lang.Object net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object at net.sf.json.JSONObject.toBean(JSONObject.java:577) at net.sf.json.JSONObject.toBean(JSONObject.java:383) at net.sf.json.JSONObject.toBean(JSONObject.java:250) at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:151) at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:510) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:174) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) at hudson.model.Run.run(Run.java:1376) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: java.lang.NullPointerException at net.sf.json.JSONObject$MethodProperty.isWritable(JSONObject.java:311) at net.sf.json.JSONObject.toBean(JSONObject.java:429) ... 16 more {code} We were able to narrow it down to {{hudson.tasks.Maven.MavenInstaller.json}} that caused the problem by deleting that file from our server and kicking off a job run. The first run without the JSON file will run fine, but subsequent runs fails because the file gets redownloaded from http://updates.jenkins-ci.org/updates/hudson.tasks.Maven.MavenInstaller.json. Our current workaround for the problem is that we created an empty (valid) {{hudson.tasks.Maven.MavenInstaller.json}} file and turned off the write permission on that file so it won't get updated by Jenkins. We're not sure if there will be any problems if Jenkins tries to update that file again though. After doing some research, we believe the following commit caused Jenkins to start breaking: https://github.com/jenkinsci/jenkins/commit/62f66f899c95ccdfdc7a5d3346240988b42a9aad Looks like the change causes the MavenInstaller JSON file to add a new "signature" block, which our Jenkins version cannot handle.

    Jenkins JIRA | 4 years ago | jlin
    net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object
  2. 0

    We have three Jenkins instances. Two are on 1.423 and one is on 1.414. Starting sometime on September 8th 2012, our builds on Jenkins all started to fail with the following error: {code} FATAL: Error while setting property=signature type class java.lang.Object net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object at net.sf.json.JSONObject.toBean(JSONObject.java:577) at net.sf.json.JSONObject.toBean(JSONObject.java:383) at net.sf.json.JSONObject.toBean(JSONObject.java:250) at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:151) at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:510) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:174) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) at hudson.model.Run.run(Run.java:1376) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: java.lang.NullPointerException at net.sf.json.JSONObject$MethodProperty.isWritable(JSONObject.java:311) at net.sf.json.JSONObject.toBean(JSONObject.java:429) ... 16 more {code} We were able to narrow it down to {{hudson.tasks.Maven.MavenInstaller.json}} that caused the problem by deleting that file from our server and kicking off a job run. The first run without the JSON file will run fine, but subsequent runs fails because the file gets redownloaded from http://updates.jenkins-ci.org/updates/hudson.tasks.Maven.MavenInstaller.json. Our current workaround for the problem is that we created an empty (valid) {{hudson.tasks.Maven.MavenInstaller.json}} file and turned off the write permission on that file so it won't get updated by Jenkins. We're not sure if there will be any problems if Jenkins tries to update that file again though. After doing some research, we believe the following commit caused Jenkins to start breaking: https://github.com/jenkinsci/jenkins/commit/62f66f899c95ccdfdc7a5d3346240988b42a9aad Looks like the change causes the MavenInstaller JSON file to add a new "signature" block, which our Jenkins version cannot handle.

    Jenkins JIRA | 4 years ago | jlin
    net.sf.json.JSONException: Error while setting property=signature type class java.lang.Object
  3. 0

    Creating a Jenkins Plugin which hooks into global build status' and has a global repeatable configuration?

    Stack Overflow | 5 years ago | MilesB
    net.sf.json.JSONException: Error while setting property=data type interface java.util.List
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JSONObject.toBean( jsonObject, jsonConfig)

    json-lib | 9 years ago | minotogna
    net.sf.json.JSONException: Error while setting property=affiliations type interface java.util.List
  6. 0

    Parse Json to Java bean

    Stack Overflow | 6 years ago | Blanca Hdez
    net.sf.json.JSONException: java.lang.NoSuchMethodException: Unknown property 'ExifTool'

    1 unregistered visitors
    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. java.lang.NullPointerException

      No message provided

      at net.sf.json.JSONObject$MethodProperty.isWritable()
    2. json-lib
      JSONObject.toBean
      1. net.sf.json.JSONObject$MethodProperty.isWritable(JSONObject.java:311)
      2. net.sf.json.JSONObject.toBean(JSONObject.java:429)
      3. net.sf.json.JSONObject.toBean(JSONObject.java:383)
      4. net.sf.json.JSONObject.toBean(JSONObject.java:250)
      4 frames
    3. Hudson
      Maven$MavenInstallation.forNode
      1. hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:151)
      2. hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54)
      3. hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63)
      4. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      5. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
      6. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150)
      7. hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:510)
      7 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:174)
      2. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:582)
      2 frames
    5. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448)
      2. hudson.model.Run.run(Run.java:1376)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:175)
      2 frames