【问题标题】:Streaming my application data to jKool cloud using REST API fails使用 REST API 将我的应用程序数据流式传输到 jKool 云失败
【发布时间】:2016-07-29 13:32:34
【问题描述】:

我在 IBM Bluemix 中创建了 jKool 服务,我在 jKool 云中创建了一个帐户。我的用户名是 jKool 云中的 parimargu。

当我尝试使用 REST API 将我的数据流式传输到 jKool 云中时,我的令牌失败了。

REST Endpoint,我使用的是:http://data.jkoolcloud.com:6580/JESL/event

我已经创建了活动并发出了发布请求:

String jKoolToken = "<my jkool cloud token>";
// Stream the event (token is the token that was assigned to you
// when you purchased jKool.
response = target.path("event").request()
.header("token", jKoolToken)
.post(Entity.entity(serialize(event), "application/json"));
response.close();

我得到的错误是:

javax.ws.rs.ProcessingException:无法调用请求

我被困在这里,有人可以指导我吗?非常感谢您的帮助。

【问题讨论】:

    标签: ibm-cloud jkoolcloud


    【解决方案1】:

    此异常意味着您的构建环境有问题或缺少 jar 文件。验证您在类路径中有所有必需的 jar 文件。

    【讨论】:

      猜你喜欢
      • 2013-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-06
      • 2022-01-20
      • 1970-01-01
      • 2012-01-20
      相关资源
      最近更新 更多