简体   繁体   English

HttpHostConnectException让Apache Stanbol集成测试失败

[英]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: 在我的系统上,我有:

  • Apache Maven 3.0.5 Apache Maven 3.0.5
  • Maven home: /usr/share/maven Maven主页:/ usr / share / maven
  • Java version: 1.7.0_55, vendor: Oracle Corporation Java版本:1.7.0_55,供应商:Oracle Corporation
  • Java home: /usr/lib/jvm/java-7-openjdk-i386/jre Java主页:/ usr / lib / jvm / java-7-openjdk-i386 / jre

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.

相关问题 与PHPUnit和Apache的集成测试 - Integration tests with PHPUnit and Apache 构建并运行Apache Stanbol实例 - 失败 - Build and run your Apache Stanbol instance - fails 使用apache stanbol进行命名实体识别 - using apache stanbol for named entity recognition Nutch 1.8和Apache Solr 4.8集成作业失败 - Nutch 1.8 and Apache Solr 4.8 integration job fail 线程“ main” org.apache.http.conn.HttpHostConnectException中的异常:连接到//失败:连接超时:connect - Exception in thread “main” org.apache.http.conn.HttpHostConnectException: Connect to // failed: Connection timed out: connect 从Eclipse访问URL时获取org.apache.http.conn.HttpHostConnectException - Getting org.apache.http.conn.HttpHostConnectException while accessing a URL from Eclipse org.apache.http.conn.HttpHostConnectException:android 中拒绝连接到 http://localhost - org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused in android 集成JAMES Apache和Thunderbird - Integration JAMES Apache and Thunderbird 我们在Apache上加密配置 - Let's Encrypt configuration on Apache jmeter HTTP响应代码:org.apache.http.conn.HttpHostConnectException,非HTTP响应消息:连接被拒绝错误 - jmeter HTTP response code: org.apache.http.conn.HttpHostConnectException,Non HTTP response message: Connection refused Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM