java.util.ServiceConfigurationError: org.jclouds.apis.ApiMetadata: Provider org.jclouds.openstack.swift.SwiftApiMetadata could not be instantiated: java.lang.IllegalAccessError: tried to access class com.google.common.reflect.TypeResolver from class org.jclouds.util.TypeToken2

Stack Overflow | IAmYourFaja | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JClouds-Chef: IllegalAccessError on TokenType2?

    Stack Overflow | 3 years ago | IAmYourFaja
    java.util.ServiceConfigurationError: org.jclouds.apis.ApiMetadata: Provider org.jclouds.openstack.swift.SwiftApiMetadata could not be instantiated: java.lang.IllegalAccessError: tried to access class com.google.common.reflect.TypeResolver from class org.jclouds.util.TypeToken2
  2. 0

    Problem with JClouds - Ask OpenStack: Q&A Site for OpenStack Users and Developers

    openstack.org | 8 months ago
    java.util.ServiceConfigurationError: org.jclouds.providers.ProviderMetadata: Provider org.jclouds.rackspace.cloudservers.CloudServersUSProviderMetadata could not be instantiated

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access class com.google.common.reflect.TypeResolver from class org.jclouds.util.TypeToken2

      at org.jclouds.util.TypeToken2.where()
    2. jclouds Components Core
      BaseRestApiMetadata$Builder.<init>
      1. org.jclouds.util.TypeToken2.where(TypeToken2.java:47)
      2. org.jclouds.rest.internal.BaseRestApiMetadata.contextToken(BaseRestApiMetadata.java:60)
      3. org.jclouds.rest.internal.BaseRestApiMetadata$Builder.<init>(BaseRestApiMetadata.java:74)
      3 frames
    3. org.jclouds.openstack
      SwiftApiMetadata.<init>
      1. org.jclouds.openstack.swift.SwiftApiMetadata$Builder.<init>(SwiftApiMetadata.java:85)
      2. org.jclouds.openstack.swift.SwiftApiMetadata$Builder.<init>(SwiftApiMetadata.java:81)
      3. org.jclouds.openstack.swift.SwiftApiMetadata$ConcreteBuilder.<init>(SwiftApiMetadata.java:108)
      4. org.jclouds.openstack.swift.SwiftApiMetadata$ConcreteBuilder.<init>(SwiftApiMetadata.java:108)
      5. org.jclouds.openstack.swift.SwiftApiMetadata.<init>(SwiftApiMetadata.java:60)
      5 frames
    4. Java RT
      ServiceLoader$1.next
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      5. java.lang.Class.newInstance(Class.java:374)
      6. java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)
      7. java.util.ServiceLoader$1.next(ServiceLoader.java:445)
      7 frames
    5. Guava
      ImmutableSet$Builder.addAll
      1. com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:323)
      2. com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:633)
      2 frames
    6. jclouds Components Core
      ContextBuilder$newBuilder.call
      1. org.jclouds.apis.Apis.all(Apis.java:72)
      2. org.jclouds.apis.Apis.withId(Apis.java:89)
      3. org.jclouds.ContextBuilder.newBuilder(ContextBuilder.java:168)
      4. org.jclouds.ContextBuilder$newBuilder.call(Unknown Source)
      4 frames
    7. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      3 frames
    8. com.me.myorg
      ChefProvisioner$provision.call
      1. com.me.myorg.chef.ChefProvisioner.provision(ChefProvisioner.groovy:51)
      2. com.me.myorg.chef.ChefProvisioner$provision.call(Unknown Source)
      2 frames
    9. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
      3 frames
    10. com.me.myorg
      ChefProvisioner.main
      1. com.me.myorg.chef.ChefProvisioner.main(ChefProvisioner.groovy:27)
      1 frame