我用下面的代碼:JClouds沒能獲得圖像列表
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:預期字符串但BEGIN_ARRAY第1個787列 在org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory $ DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:181) 在org.jclouds.json.internal.NullFilteringTypeAdapterFactories $ IterableTypeAdapter.readAndBuild(NullFilteringTypeAdapterFactories.java:92)
代碼正在......之前......