ajax 500报错,Ajax 报错 500 (Internal Server Error)

  • Post author:
  • Post category:其他

==========error======={“readyState”:4,”responseText”:”Apache Tomcat/6.0.35 – Error report

HTTP Status 500 –

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exceptionorg.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Object is null (through reference chain: java.util.HashMap[“data”]->java.util.ArrayList[0]->net.sf.json.JSONObject[“applyExcuse”]->net.sf.json.JSONNull[“empty”]); nested exception is org.codehaus.jackson.map.JsonMappingException: Object is null (through reference chain: java.util.HashMap[“data”]->java.util.ArrayList[0]->net.sf.json.JSONObject[“applyExcuse”]->net.sf.json.JSONNull[“empty”])\n\torg.springframework.http.converter.json.MappingJacksonHttpMessageConverter.writeInternal(MappingJacksonHttpMessageConverter.java:194)\n\torg.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:179)\n\torg.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:148)\n\torg.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(……