问答详情
源自:3-2 公众号授权登录2

这个 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)


提问者:慕丝1040842 2017-09-08 16:43

个回答

  • qq_W_256
    2017-12-06 13:15:57

    好像是包的版本问题


  • 小明同学啊
    2017-11-13 14:55:42

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

  • 慕丝1040842
    2017-09-08 16:45:42

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