B3log 后台拿不到社区推荐、发布的文章也无法同步到社区

本贴最后更新于 2692 天前,其中的信息可能已经时过境迁

后台首页拿不到社区推荐的文件,看了下 network,发现
https://hacpai.com/apis/articles?p=1&size=7&tags=Java,Maven,css,javascript+nodeJs+bower+gulp+less,GloboDNS,Github,ddd,%E6%BB%B4%E6%BB%B4,javascript,url,%E6%8D%A2%E8%82%A4,PHP+Linux+Windows,whmcs,Linux,IDEA,PHP,aja,CentOS,tag,css3&callback=jQuery17205134093271555178_1499826529924&_=1499826530496
这一段请求报 404 错误

51af010b04c54dcdae2ea960a827faf8-image.png

自己发布的文章也没有同步到社区,难怪你们最近没有看到我写的文章啊有木有???

以下是相关日志的内容,同时声明一下:我没有改 solo 的任何代码,在正常运行相当长的时间下突然出现这个问题的。

再来一段新鲜的 solo 错误日志:

[ERROR]-[2017-07-12 09:44:42]-[org.b3log.latke.servlet.renderer.freemarker.AbstractFreeMarkerRenderer:137]: FreeMarker renders error

FreeMarker template error:

The following has evaluated to null or missing:

==> title [in template "error/404.ftl" at line 4, column 7]

----

Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??

----

----

FTL stack trace ("~" means nesting-related):

 - Failed at: ${title} [in template "error/404.ftl" at line 4, column 5]

 ~ Reached through: #nested [in template "macro-common-page.ftl" in macro "commonPage" at line 21, column 13]

 ~ Reached through: @commonPage "404 Not Found!" [in template "error/404.ftl" at line 3, column 1]

----

Java stack trace (for programmers):

----

freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]

 at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:131)

 at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:355)

 at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82)

 at freemarker.core.DollarVariable.accept(DollarVariable.java:41)

 at freemarker.core.Environment.visit(Environment.java:324)

 at freemarker.core.MixedContent.accept(MixedContent.java:54)

 at freemarker.core.Environment.visit(Environment.java:324)

 at freemarker.core.Environment.invokeNestedContent(Environment.java:546)

 at freemarker.core.BodyInstruction.accept(BodyInstruction.java:56)

 at freemarker.core.Environment.visit(Environment.java:324)

 at freemarker.core.MixedContent.accept(MixedContent.java:54)

 at freemarker.core.Environment.visit(Environment.java:324)

 at freemarker.core.Macro$Context.runMacro(Macro.java:184)

 at freemarker.core.Environment.invoke(Environment.java:701)

 at freemarker.core.UnifiedCall.accept(UnifiedCall.java:84)

 at freemarker.core.Environment.visit(Environment.java:324)

 at freemarker.core.MixedContent.accept(MixedContent.java:54)

 at freemarker.core.Environment.visit(Environment.java:324)
 at freemarker.template.Template.process(Template.java:325)

 at org.b3log.latke.servlet.renderer.freemarker.AbstractFreeMarkerRenderer.genHTML(AbstractFreeMarkerRenderer.java:161)

 at org.b3log.latke.servlet.renderer.freemarker.AbstractFreeMarkerRenderer.render(AbstractFreeMarkerRenderer.java:132)

 at org.b3log.latke.servlet.DispatcherServlet.result(DispatcherServlet.java:111)

 at org.b3log.latke.servlet.DispatcherServlet.service(DispatcherServlet.java:89)

 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)

 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)

 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)

 at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:479)

 at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:341)

 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)

 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)

 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)

 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)

 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)

 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)

 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

 at java.lang.Thread.run(Thread.java:748)

再来一段新鲜的 localhost_access_log.2017-07-12.txt

106.14.212.41 - - [12/Jul/2017:10:37:49 +0800] "GET /./solo/console/stat/onlineVisitorRefresh HTTP/1.1" 500 -

183.247.162.210 - - [12/Jul/2017:10:37:53 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827074777 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:37:59 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827081294 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:38:03 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827084596 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:38:09 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827091296 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:38:13 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827094597 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:38:19 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827101295 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:38:23 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827104661 HTTP/1.1" 200 47

183.247.162.210 - - [12/Jul/2017:10:38:29 +0800] "GET /console/plugins/b3log-broadcast/chance?_=1499827111294 HTTP/1.1" 200 47

再来一段新鲜的 catalina.2017-07-12.log 日志:

Jul 12, 2017 10:22:22 AM org.apache.coyote.http11.AbstractHttp11Processor process

INFO: Error parsing HTTP request header

 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

 at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:136)

 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1028)

 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)

 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

 at java.lang.Thread.run(Thread.java:748)

Jul 12, 2017 10:22:22 AM org.apache.coyote.http11.AbstractHttp11Processor process

INFO: Error parsing HTTP request header

 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

 at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:136)

 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1028)

 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)

 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

 at java.lang.Thread.run(Thread.java:748)

~
  • B3log

    B3log 是一个开源组织,名字来源于“Bulletin Board Blog”缩写,目标是将独立博客与论坛结合,形成一种新的网络社区体验,详细请看 B3log 构思。目前 B3log 已经开源了多款产品:SymSoloVditor思源笔记

    1063 引用 • 3453 回帖 • 203 关注
  • Java

    Java 是一种可以撰写跨平台应用软件的面向对象的程序设计语言,是由 Sun Microsystems 公司于 1995 年 5 月推出的。Java 技术具有卓越的通用性、高效性、平台移植性和安全性。

    3187 引用 • 8213 回帖
  • Solo

    Solo 是一款小而美的开源博客系统,专为程序员设计。Solo 有着非常活跃的社区,可将文章作为帖子推送到社区,来自社区的回帖将作为博客评论进行联动(具体细节请浏览 B3log 构思 - 分布式社区网络)。

    这是一种全新的网络社区体验,让热爱记录和分享的你不再感到孤单!

    1434 引用 • 10054 回帖 • 489 关注

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...