Kavita, could you share which exact libraries you have in the classpath? And both, could you try using jclouds 1.7.2 and see if it still happens? Just trying to figure out where the issue is.
On 22 April 2014 13:04, Kavita Sanap <[email protected]> wrote: > Hi, > > I am also getting this error. I copied jclouds-core-1.7.0.jar to my > deployment lib and using it. There is no classes folder > > Below is the error stack trace > > java.lang.IncompatibleClassChangeError: > org/jclouds/json/config/GsonModule$DateAdapter > 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.buildApi(ContextBuilder.java:654) > at org.jclouds.ContextBuilder.buildApi(ContextBuilder.java:646) > at > com.cloupia.feature.vcdpController.VcdpCloudTestConnectionHandler.Vc > > --Kavita > > > On Tue, Apr 22, 2014 at 12:34 PM, Ignasi Barrera <[email protected]> wrote: >> >> This is the first time I see this error, but after a quick search I've >> found this [1]. >> >> Is "jclouds-all" the only dependency in your project? Are you using old >> code that was compiled with an earlier jclouds version? If so, could you >> remove all .class files (the entire "target" directory) to make sure >> everything is compiled again using the last jclouds version? >> >> I. >> >> [1] >> http://stackoverflow.com/questions/1980452/what-causes-java-lang-incompatibleclasschangeerror >> >> El 21/04/2014 23:21, "Pankaj Kharode" <[email protected]> escribió: >> >>> Hi Ignasi, >>> >>> Yes, Please see attached. >>> >>> -Pankaj >>> >>> >>> On Mon, Apr 21, 2014 at 1:16 PM, Ignasi Barrera >>> <[email protected]> wrote: >>>> >>>> Are you using Maven? If so, could you paste the output of running a >>>> "mvn dependency:tree"? >>>> >>>> On 21 April 2014 22:04, Pankaj Kharode <[email protected]> wrote: >>>> > 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 >>> >>> >>> >>> >>> -- >>> >>> Regards, >>> Pankaj > >
