"我是通过最新源码构建的服务 后台日志输出的全是 JSON 处理错误,出现错误后刷新重试几次,可能就会成功 Caused by: org.json.JSONException: JSONObject['preference'] is not a JSONObject. at org.json.JSONObject.get .."

Solo 3.5.0 后台管理经常性 -500 错误

我是通过最新源码构建的服务

后台日志输出的全是 JSON 处理错误,出现错误后刷新重试几次,可能就会成功😂

Caused by: org.json.JSONException: JSONObject["preference"] is not a JSONObject.
	at org.json.JSONObject.getJSONObject(JSONObject.java:763)
	at org.b3log.solo.processor.console.PreferenceConsole.updatePreference(PreferenceConsole.java:264)
	at org.b3log.solo.processor.console.PreferenceConsole_$$_jvsta18_2c._d10updatePreference(PreferenceConsole_$$_jvsta18_2c.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
	at org.b3log.solo.processor.console.PreferenceConsole_$$_jvsta18_2c.updatePreference(PreferenceConsole_$$_jvsta18_2c.java)
	... 40 more
[WARN ]-[2019-04-17 12:30:41]-[org.b3log.solo.processor.console.PageConsole:215]: org.json.JSONException: JSONObject["page"] is not a JSONObject.
org.b3log.latke.service.ServiceException: org.json.JSONException: JSONObject["page"] is not a JSONObject.
	at org.b3log.solo.service.PageMgmtService.addPage(PageMgmtService.java:395)
	at org.b3log.solo.service.PageMgmtService_$$_jvsta18_4c._d0addPage(PageMgmtService_$$_jvsta18_4c.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
	at org.b3log.solo.service.PageMgmtService_$$_jvsta18_4c.addPage(PageMgmtService_$$_jvsta18_4c.java)
	at org.b3log.solo.processor.console.PageConsole.addPage(PageConsole.java:208)
	at org.b3log.solo.processor.console.PageConsole_$$_jvsta18_3c._d0addPage(PageConsole_$$_jvsta18_3c.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
	at 
[ERROR]-[2019-04-17 12:26:48]-[org.b3log.solo.processor.console.LinkConsole:242]: org.json.JSONException: JSONObject["link"] is not a JSONObject.
org.b3log.latke.service.ServiceException: org.json.JSONException: JSONObject["link"] is not a JSONObject.
	at org.b3log.solo.service.LinkMgmtService.addLink(LinkMgmtService.java:199)
	at org.b3log.solo.service.LinkMgmtService_$$_jvsta18_4a._d0addLink(LinkMgmtService_$$_jvsta18_4a.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
	at org.b3log.solo.service.LinkMgmtService_$$_jvsta18_4a.addLink(LinkMgmtService_$$_jvsta18_4a.java)
	at org.b3log.solo.processor.console.LinkConsole.addLink(LinkConsole.java:235)
	at org.b3log.solo.processor.console.LinkConsole_$$_jvsta18_4d._d0addLink(LinkConsole_$$_jvsta18_4d.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
	at org.b3log.solo.processor.console.LinkConsole_$$_jvsta18_4d.addLink(LinkConsole_$$_jvsta18_4d.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)

  • Q&A

    提问之前请先看一下这篇文章 《提问的智慧》精读注解版,好的问题比好的答案更有价值。

    941 引用 • 5907 回帖 • 607 关注
  • Solo

    Solo 是一款小而美的开源博客系统,专为程序员设计。

    Solo 有着非常活跃的社区,可将文章作为帖子推送到社区,来自社区的回帖将作为博客评论进行联动。

    这是一种全新的网络社区体验,让热爱记录和分享的你不再感到孤单!
    具体细节请浏览 B3log 构思

    609 引用 • 4687 回帖 • 720 关注
感谢    关注    收藏    赞同    反对    举报    分享
3 回帖    
请输入回帖内容...
  • 88250      

    是升级还是新安装的?

    1 回复
       感谢    赞同    反对    举报    折叠    分享    评论    回复
  • LYHFUU            

    新安装的

       感谢    赞同    反对    举报    折叠    分享    评论    回复
  • 88250      

    难道是网络问题,我这里重现不了哦。

       感谢    赞同    反对    举报    折叠    分享    评论    回复