这个 openid 的为题该怎么解决

来源:3-2 公众号授权登录2

慕丝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)


写回答 关注

3回答

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

    好像是包的版本问题


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

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

    慕粉4024...

    这个问题咋搞定的呀

    2018-02-02 17:15:35

    共 1 条回复 >

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

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


微信授权登录

教你如何用Java实现微信授权登录,最后介绍公众号和开发平台如何关联

68138 学习 · 104 问题

查看课程

相似问题