{"openid":"o-m_N1KPc21H5py7aoluGrCUgRFo","nickname":"Abdullah","sex":1,"language":"zh_CN","city":"绍兴","province":"浙江","country":"中国","headimgurl":"http://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eq5NFic3gAnVVUfcicft8aC7oBUg7a6WkfpYibWHNiaooBoVv8ykxg15ekMafxH0gHW2dLI4nz7aZBR9g/0","privilege":[]}
2017-9-8 16:29:30 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [com.wx.servlet.CallBackServlet] in context with path [/wxl] threw exception
net.sf.json.JSONException: JSONObject["openid"] not found.
at net.sf.json.JSONObject.getString(JSONObject.java:2092)
at com.wx.servlet.CallBackServlet.doGet(CallBackServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
好像是包的版本问题
解决了吗?我也遇到了这个问题
这是写的代码