jclouds / legacy-jclouds

https://jclouds.apache.org
466 stars 216 forks source link

Could not create Context vcloud-director #772

Closed dieu closed 12 years ago

dieu commented 12 years ago
java.lang.IllegalArgumentException: api {id=vcloud-director, name=vCloud Director 1.5 API, views=[], endpointName=https endpoint, identityName=User at Organization (user@org), credentialName=Optional.of(Password), documentation=http://www.vmware.com/support/pubs/vcd_pubs.html, api=interface org.jclouds.vcloud.director.v1_5.user.VCloudDirectorApi, asyncApi=interface org.jclouds.vcloud.director.v1_5.user.VCloudDirectorAsyncApi} not wrappable as org.jclouds.compute.ComputeServiceContext; context: org.jclouds.vcloud.director.v1_5.VCloudDirectorContext, views: []
    at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:517)
    at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:501)
    at org.jclouds.ContextBuilder.build(ContextBuilder.java:494)
    at org.jclouds.compute.ComputeServiceContextFactory.createContext(ComputeServiceContextFactory.java:120)
    at com.griddynamics.genesis.jclouds.Test$delayedInit$body.apply(Test.scala:17)
    at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
    at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
    at scala.App$$anonfun$main$1.apply(App.scala:60)
    at scala.App$$anonfun$main$1.apply(App.scala:60)
    at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
    at scala.collection.immutable.List.foreach(List.scala:45)
    at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30)
    at scala.App$class.main(App.scala:60)
    at com.griddynamics.genesis.jclouds.Test$.main(Test.scala:13)
    at com.griddynamics.genesis.jclouds.Test.main(Test.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
jclouds commented 12 years ago

yep, this isn't finished, yet. in the mean time, you'll want to use "vcloud" not "vcloud-director"

On Mon, Aug 6, 2012 at 8:47 AM, Anton Panasenko < reply@reply.github.com

wrote:

java.lang.IllegalArgumentException: api {id=vcloud-director, name=vCloud
Director 1.5 API, views=[], endpointName=https endpoint, identityName=User
at Organization (user@org), credentialName=Optional.of(Password),
documentation=http://www.vmware.com/support/pubs/vcd_pubs.html,
api=interface org.jclouds.vcloud.director.v1_5.user.VCloudDirectorApi,
asyncApi=interface
org.jclouds.vcloud.director.v1_5.user.VCloudDirectorAsyncApi} not wrappable
as org.jclouds.compute.ComputeServiceContext; context:
org.jclouds.vcloud.director.v1_5.VCloudDirectorContext, views: []
java.lang.IllegalArgumentException: api {id=vcloud-director, name=vCloud
Director 1.5 API, views=[], endpointName=https endpoint, identityName=User
at Organization (user@org), credentialName=Optional.of(Password),
documentation=http://www.vmware.com/support/pubs/vcd_pubs.html,
api=interface org.jclouds.vcloud.director.v1_5.user.VCloudDirectorApi,
asyncApi=interface
org.jclouds.vcloud.director.v1_5.user.VCloudDirectorAsyncApi} not wrappable
as org.jclouds.compute.ComputeServiceContext; context:
org.jclouds.vcloud.director.v1_5.VCloudDirectorContext, views: []
        at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:517)
        at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:501)
        at org.jclouds.ContextBuilder.build(ContextBuilder.java:494)
        at
org.jclouds.compute.ComputeServiceContextFactory.createContext(ComputeServiceContextFactory.java:120)
        at
com.griddynamics.genesis.jclouds.Test$delayedInit$body.apply(Test.scala:17)
        at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
        at
scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
        at scala.App$$anonfun$main$1.apply(App.scala:60)
        at scala.App$$anonfun$main$1.apply(App.scala:60)
        at
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
        at scala.collection.immutable.List.foreach(List.scala:45)
        at
scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30)
        at scala.App$class.main(App.scala:60)
        at com.griddynamics.genesis.jclouds.Test$.main(Test.scala:13)
        at com.griddynamics.genesis.jclouds.Test.main(Test.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)

Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/issues/772

dieu commented 12 years ago

vcloud as I understand it does not support vCloud Director 1.5?

PS: I am willing to be a beta tester vcloud-director :)

jclouds commented 12 years ago

Hi, Anton

vcloud does, as vCloud Director also provides the "1.0" api. Give it a try, and thanks for the offer.

p.s. feel free to nag and star this issue: https://code.google.com/p/jclouds/issues/detail?id=830

On Mon, Aug 6, 2012 at 8:52 AM, Anton Panasenko < reply@reply.github.com

wrote:

vcloud as I understand it does not support vCloud Director 1.5?

PS: I am willing to be a beta tester vcloud-director :)


Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/issues/772#issuecomment-7527251

dieu commented 12 years ago

@jclouds thx, vcloud works with 1.0 api (on last vCloud Director).

jclouds commented 12 years ago

closing this issue as it is tracked elsewhere