【问题标题】:JClouds not able to get the list of imagesJClouds 无法获取图像列表
【发布时间】:2014-03-27 21:42:36
【问题描述】:

我使用了下面的代码:

    Iterable<Module> modules = ImmutableSet.<Module> of(
            new SshjSshClientModule());

    ContextBuilder builder = ContextBuilder.newBuilder(provider).endpoint(endpoint)
            .credentials(identity, credential)
            .modules(modules);

    System.out.printf(">> initializing %s%n", builder.getApiMetadata());

 ComputeService compute = builder.buildView(ComputeServiceContext.class).getComputeService();

System.out.println(compute1.listImages());

但我收到以下错误消息............

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: 应为字符串,但在第 1 行第 787 列为 BEGIN_ARRAY 在 org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:181) 在 org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.readAndBuild(NullFilteringTypeAdapterFactories.java:92)

代码在工作......之前......

【问题讨论】:

    标签: openstack jclouds


    【解决方案1】:

    您肯定在您使用的 jclouds 版本和您使用的任何云版本之间的某个地方遇到了错误。我们需要更多信息来解决这个问题。请仔细阅读有关如何 Report a Bug 到 Apache jclouds 的说明。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-23
      • 2022-01-20
      • 2013-12-22
      • 2011-12-01
      • 2012-11-24
      • 2018-12-09
      • 2015-02-01
      • 2021-10-10
      相关资源
      最近更新 更多