net.sf.json.JSONException

tip

Jackson 1.x and Jackson 2.x annotations are in different places inside Java, so this can be either import related (check if you imported the right one) or you might have different versions in your classpath causing conflict.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I have updated to 1.207 snapshot and copied my windows setup over to a linux box. I decided to try the system using winstone rather then the tomcat setup I was using but when I try to change my main hudson config it fails to save so I had to make the changes directly to the files. I do not get any error messages. When however I try to save a job configuration I get the following error. The other change I have made is to install the ci-game plugin Status Code: 500 Exception: Stacktrace: net.sf.json.JSONException: null object at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2498) at net.sf.json.JSONObject.get(JSONObject.java:1712) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:285) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher$DescriptorImpl.newIn stance(DescriptionSetterPublisher.java:85) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher$DescriptorImpl.newIn stance(DescriptionSetterPublisher.java:71) at hudson.model.AbstractProject.buildDescribable (AbstractProject.java:891) at hudson.model.Project.submit(Project.java:154) at hudson.model.Job.doConfigSubmit(Job.java:745) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:294) 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:585) at org.kohsuke.stapler.Function$InstanceFunction.invoke (Function.java:103) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:57) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:69) at org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352) at org.kohsuke.stapler.Stapler.service(Stapler.java:112) 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.security.HudsonFilter.doFilter(HudsonFilter.java:88) 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:595)
    via by ajpurkiss,
  • I have updated to 1.207 snapshot and copied my windows setup over to a linux box. I decided to try the system using winstone rather then the tomcat setup I was using but when I try to change my main hudson config it fails to save so I had to make the changes directly to the files. I do not get any error messages. When however I try to save a job configuration I get the following error. The other change I have made is to install the ci-game plugin Status Code: 500 Exception: Stacktrace: net.sf.json.JSONException: null object at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2498) at net.sf.json.JSONObject.get(JSONObject.java:1712) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:285) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher$DescriptorImpl.newIn stance(DescriptionSetterPublisher.java:85) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher$DescriptorImpl.newIn stance(DescriptionSetterPublisher.java:71) at hudson.model.AbstractProject.buildDescribable (AbstractProject.java:891) at hudson.model.Project.submit(Project.java:154) at hudson.model.Job.doConfigSubmit(Job.java:745) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:294) 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:585) at org.kohsuke.stapler.Function$InstanceFunction.invoke (Function.java:103) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:57) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:69) at org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch (NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352) at org.kohsuke.stapler.Stapler.service(Stapler.java:112) 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.security.HudsonFilter.doFilter(HudsonFilter.java:88) 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:595)
    via by ajpurkiss,
  • 首页内容
    via by Unknown author,
  • 首页内容
    via by Unknown author,
  • spring, Jackson, Fasterxml Annotations not work
    via by Unknown author,
    • net.sf.json.JSONException: null object at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2498) at net.sf.json.JSONObject.get(JSONObject.java:1712) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:285)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,