为了账号安全,请及时绑定邮箱和手机立即绑定

这个 openid 的为题该怎么解决

{"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)


正在回答

4 回答

好像是包的版本问题


0 回复 有任何疑惑可以回复我~

解决了吗?我也遇到了这个问题

0 回复 有任何疑惑可以回复我~
#1

慕粉4024193

这个问题咋搞定的呀
2018-02-02 回复 有任何疑惑可以回复我~

http://img1.sycdn.imooc.com//59b258a70001812b09290363.jpg这是写的代码


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

这个 openid 的为题该怎么解决

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信