【问题标题】:Error running akka-http-microservice Activator template运行 akka-http-microservice Activator 模板时出错
【发布时间】:2016-04-22 07:37:43
【问题描述】:

运行时出错akka-http-microservice Activator template 无法运行示例模板:来自 Activator 的 akka-http-microservice

项目构建,但在运行时,无法访问 URL,

http://localhost:9000/ip/8.8.8.8

得到

'内部服务器错误'

运行服务时出错:[ERROR] [04/21/2016 12:06:35.506] [default-akka.actor.default-dispatcher-10] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation] 阶段 [One2OneBidi] 中的错误:内部流在输入之前完成 完全的。输出可能已被截断。 (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$)

这只是直接从下载的模板*.zip 文件中获取的代码。

Mac OSx, El Capitan. 上运行,运行 Scala v2.10.3。 激活器 v1.3.9

============ (更新)在教程支持团队尝试修复后仍然存在问题:

[调试] [04/22/2016 11:58:47.749] [default-akka.actor.default-dispatcher-2] [akka://default/system/IO-TCP/selectors/$a/2 ] 与 [freegeoip.net/104.131.63.168:80] 建立连接 [错误] [04/22/2016 11:58:47.832] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation ] 阶段 [One2OneBidi] 中的错误:内部流在输入完成之前完成。输出可能已被截断。 (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$) [错误] [04/22/2016 11:58:47.851] [default-akka.actor.default-dispatcher-3] [akka.actor.ActorSystemImpl(default)] 处理请求 HttpRequest(HttpMethod(GET), http://localhost:9000/ip/8.8.8.8,List(Host: localhost:9000, C

【问题讨论】:

  • 我收到了支持Activator模板教程的公司的回复;他们已经修复了暂时性问题:github.com/theiterators/akka-http-microservice/issues/21
  • 我重试运行教程中的内置服务;看起来这并没有解决问题。现在这是服务端的完整错误跟踪:
  • 完整的跟踪包含在我下面的第一个“答案”评论中。

标签: akka-http


【解决方案1】:

与此问题相关的响应最多的帮助论坛是:

1) 激活器模板 https://github.com/theiterators/akka-http-microservice/issues

2) Akka 邮件列表 https://groups.google.com/forum/#!forum/akka-user

【讨论】:

    【解决方案2】:

    我收到了支持 Activator 模板教程的公司的回复;他们已经修复了临时问题:https://github.com/theiterators/akka-http-microservice/issues/21

    但是 -- 我尝试再次运行服务,但似乎仍然存在问题:

    [调试] [04/22/2016 11:58:47.749] [default-akka.actor.default-dispatcher-2] [akka://default/system/IO-TCP/selectors/$a/2 ] 与 [freegeoip.net/104.131.63.168:80] 建立连接 [错误] [04/22/2016 11:58:47.832] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation ] 阶段 [One2OneBidi] 中的错误:内部流在输入完成之前完成。输出可能已被截断。 (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$) [错误] [04/22/2016 11:58:47.851] [default-akka.actor.default-dispatcher-3] [akka.actor.ActorSystemImpl(default)] 处理请求 HttpRequest(HttpMethod(GET), http://localhost:9000/ip/8.8.8.8,List(Host: localhost:9000, C

    【讨论】:

      【解决方案3】:

      尝试下载最新的教程模板;并覆盖我昨天下载的那个。然后重建,重新运行。

      现在微服务出现了;它似乎正在工作!问题已解决!

      【讨论】:

        猜你喜欢
        • 2018-02-09
        • 2015-11-16
        • 1970-01-01
        • 2023-03-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-07-21
        • 1970-01-01
        相关资源
        最近更新 更多