慕丝1040842
2017-09-08 16:43
{"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)
好像是包的版本问题
解决了吗?我也遇到了这个问题
这是写的代码
微信授权登录
68138 学习 · 104 问题
相似问题
回答 2
回答 1