SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

java.lang.NoSuchFieldError: gNs #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It was working fine... for many times..

For some strange reason... it stopped working and started throwing some
exceptions... no idea if there is any jar missing or import stmt missing..
of course, i've tried the minimal things such as including all possible
jars.. and all possible import stmts.. 

Following is the stack trace:

java.lang.NoSuchFieldError: gNs
    at com.google.gdata.data.extensions.Email.getDefaultDescription(Unknown
Source)
    at
com.google.gdata.data.youtube.FriendEntry.declareExtensions(FriendEntry.java:118
)
    at
com.google.gdata.data.ExtensionProfile.addDeclarations(ExtensionProfile.java:71)
    at com.google.gdata.data.BaseFeed.declareExtensions(BaseFeed.java:229)
    at
com.google.gdata.data.youtube.FriendFeed.declareExtensions(FriendFeed.java:51)
    at
com.google.gdata.data.ExtensionProfile.addDeclarations(ExtensionProfile.java:71)
    at
com.google.gdata.client.youtube.YouTubeService.<init>(YouTubeService.java:145)
    at
com.google.gdata.client.youtube.YouTubeService.<init>(YouTubeService.java:118)

Original issue reported on code.google.com by ebo...@gmail.com on 3 Jun 2009 at 4:05

GoogleCodeExporter commented 9 years ago
Which version of the release package are you using?

Original comment by zenbu...@gmail.com on 3 Jun 2009 at 6:12

GoogleCodeExporter commented 9 years ago
I took the latest Lib and started working now.. :) Please use the latest Lib 
Subu... ;)

Original comment by npsha...@gmail.com on 4 Jun 2009 at 7:24

GoogleCodeExporter commented 9 years ago
i'm using the package gdata-samples.java-1.32.0.zip.
Even the latest package gdata-samples.java-1.32.1.zip doesn't have any change 
with
respect to youtube jars.
Let me know if something is changed.

by the way, the application is running fine as a standalone. when i integrate 
the
same code in our application it started throwing the above exception. (it was 
working
fine earlier at both the places.

Original comment by ebo...@gmail.com on 4 Jun 2009 at 8:46

GoogleCodeExporter commented 9 years ago
Hi ,
I am facing the same situation too.
I downloaded the latest version(1.34) and updated all gdata jars with the new 
one.
But it does not work out. I didnt face this issue with the old jars(I had to 
replace 
the jars for other reason). 

It is strange that the error doesnt occur in standalone mode. 

Original comment by ankur.ja...@gmail.com on 24 Jul 2009 at 11:07

GoogleCodeExporter commented 9 years ago
Sounds like environment issue.

The error is complaining about com.google.gdata.util.Namespaces.gNs which 
should be
present.  Can you check you have the correct gdata-core.jar lib (unjar and 
check the
Implementation-Version in file META-INF/MANIFEST.MF file).  Please check that 
your
classpath doesnt refer to another gdata-core.jar file.

Original comment by vbarat...@gmail.com on 24 Jul 2009 at 3:25

GoogleCodeExporter commented 9 years ago
hello, I am facing the same problem using the lates jars for all the apis. 
Implementation-Version: 1.35.0
is there any workaround ? can't start developing for calendar because of this 
issue.

Original comment by whiteagl...@gmail.com on 30 Jul 2009 at 12:32

GoogleCodeExporter commented 9 years ago
ok, now it works after entire project cleaning and full rebuild. 

Original comment by whiteagl...@gmail.com on 30 Jul 2009 at 12:56