Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1169

Code crashes at ContextBuilder for Apis. I have been using jclouds daily build(2.0.0-SNAPSHOT). But since 30th of august , APIs have stopped working. Basically the code crashes at context builder for Apis like glanceAPI.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Workaround
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: jclouds-core

      Description

      I have been using jclouds daily build. But since 30th of august , APIs have stopped working. Basically the code crashes at context builder for Apis like glanceAPI.
      I don't have the logs yet. But just wanted to know if it is known issue?
      Has the implementation changed?

      Is there a way i can use older libraries from version 2.0.0-SNAPSHOT only but which were available before 29th of august?

      The code for context builder looks something like this
      GlanceApi glanceApi = ContextBuilder.newBuilder(new GlanceApiMetadata()).endpoint("http://" + endpointIp + ":" + identityPort + "/" + identityVersion + "/").credentials(identity,password).buildApi(GlanceApi.class);

      I am using openstack LIBERTY

      Here is the stack trace:
      Caused by: java.lang.NoSuchMethodError: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.<init>(Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;)V
      at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory.<init>(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:118)
      at org.jclouds.json.config.GsonModule.provideGson(GsonModule.java:130)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
      at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
      at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
      at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      at com.google.inject.Scopes$1$1.get(Scopes.java:65)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
      at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:204)
      at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:198)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:198)
      at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:179)
      at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
      at com.google.inject.Guice.createInjector(Guice.java:95)
      at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:404)
      at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:327)
      at org.jclouds.ContextBuilder.buildApi(ContextBuilder.java:650)
      at org.jclouds.ContextBuilder.buildApi(ContextBuilder.java:642)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                siddsr Siddarth Rai
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: