[英]HttpHostConnectException let Apache Stanbol Integration Tests fail
I tried to install the Stanbol version from branch "release-0.12" from github. 我试图从github的分支“ release-0.12”安装Stanbol版本。
On my system I have: 在我的系统上,我有:
When I start the command: 当我启动命令时:
mvn install
I get the following error for the Apache Stanbol Integration Tests => error-log 我在Apache Stanbol集成测试中收到以下错误=> 错误日志
The first lines of the error are: 错误的第一行是:
06.08.2014 15:47:02.025 *INFO * [main] Setting org.osgi.service.http.port=8765
06.08.2014 15:47:02.026 *INFO * [main] Starting launcher ...
06.08.2014 15:47:02.030 *INFO * [main] HTTP server port: 8765
15:47:03,614 INFO StanbolTestBase:163 - Got HttpHostConnectException at
http://localhost:8765/ - will retry
When I skiped the test I also got no response from the server... I already tried it with java-version 1.6, but there I got the error: 当我跳过测试时,服务器也没有响应...我已经使用Java版本1.6进行了尝试,但是出现了错误:
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireJavaVersion failed
with message:
Java 7 or higher is required to compile this module
Has someone an idea what I made wrong (does it need some further software requirements)? 有人知道我做错了吗(是否需要进一步的软件要求)? Or how can I get the server running correctly? 或者如何使服务器正常运行?
The integration test starts a Stanbol Server (actually the full launcher) in its own JVM. 集成测试将在其自己的JVM中启动Stanbol服务器(实际上是完整的启动器)。 The tests waits for up to 180 seconds for this server to start. 测试等待最多180秒才能启动该服务器。 During that time the test resends some test requests to check if the server is up and running. 在这段时间内,测试会重新发送一些测试请求,以检查服务器是否已启动并正在运行。
Based on the provided log this period starts at about "15:47" so the test should wait until about "15:50" before it gives up. 根据提供的日志,此时间段大约从“ 15:47”开始,因此测试应等到大约“ 15:50”后才放弃。
Because of the line 由于线
^C15:48:42,236 INFO StanbolTestBase:146 - Got 404 at http://localhost:8765/entityhub - will retry
in the log my guess is that the build process was manually canceled with ^C
before the server was fully started. 在日志中,我的猜测是在服务器完全启动之前,已使用^C
手动取消了构建过程。
The server side logs of the test run are available at target/launchdir/stanbol/logs/error.log
. 测试运行的服务器端日志位于target/launchdir/stanbol/logs/error.log
。 If the integration tests do fail one will usually find the reason in this log file. 如果集成测试失败,通常会在此日志文件中找到原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.