Doesn't look like I've other entries linked (some-how my work space may
have conflicts as things worked in a fresh project)
<classpathentry kind="lib"
path="/src/target/lib/guice-assistedinject-3.0.jar"/>
<classpathentry kind="lib" path="/src/target/lib/gson-2.2.4.jar"/>
<classpathentry kind="lib" path="/src/target/lib/guava-15.0.jar"/>
<classpathentry kind="lib" path="/src/target/lib/guice-3.0.jar"/>
Thanks,
Pankaj
On Mon, Apr 21, 2014 at 12:43 PM, Ignasi Barrera <[email protected]> wrote:
> Not AFAIK. Could you check your app's classpath and see which exact
> version of guice and gson you have there?
>
> Guice should be 3.0 and Gson should be 2.2.4. Make sure you have those
> (and only those) versions of the libs in the classpath.
>
> I.
> Has anyone come across this issue ?
>
>
> * ComputeServiceContext context = ContextBuilder.newBuilder(provider)*
> * .endpoint(endpoint)*
> * .credentials(identity, password)*
> * .modules(modules)*
> * .buildView(ComputeServiceContext.class);*
> * compute = context.getComputeService(); TemplateBuilder tbuilder =
> compute.templateBuilder(); images = compute.listImages();*
>
>
>
> Exception in thread "main" java.lang.IncompatibleClassChangeError: class
> org.jclouds.json.config.GsonModule$DateAdapter has interface
> com.google.gson.TypeAdapter as super class
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.jclouds.openstack.nova.v2_0.config.NovaParserModule.configure(NovaParserModule.java:71)
> at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
> at
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
> at com.google.inject.spi.Elements.getElements(Elements.java:101)
> at
> com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
> at
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
> at com.google.inject.Guice.createInjector(Guice.java:95)
> at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:403)
> at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:327)
> at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:618)
> at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:598)
>
> --
>
> Regards,
> Pankaj
>
--
Regards,
Pankaj