What steps will reproduce the problem?
1.hi in my project i want to create spreadsheet in google docs.it's working
fine out side of my project .but when i am deploy my project it's thow mehtod
not found exception
2.please check my code
3.GoogleOAuthParameters objParametersPro = new GoogleOAuthParameters();
objParametersPro.setOAuthConsumerKey("myconsumerkey");
objParametersPro.setOAuthConsumerSecret("myconsumcersecrtkey");
objParametersPro.setOAuthType(OAuthType.TWO_LEGGED_OAUTH);
objParametersPro.setScope ("https://spreadsheets.google.com/feeds/");
// objParametersPro.addCustomBaseParameter("xoauth_requestor_id","appsadmin@soharcoas.com");
OAuthSigner objSignerPrp = new OAuthHmacSha1Signer();
SpreadsheetService spreadsheetService= new SpreadsheetService ("gBuddy");
spreadsheetService.useSsl ();
try {
spreadsheetService.setOAuthCredentials (objParametersPro,
new OAuthHmacSha1Signer ());
DocsService client= new DocsService ("idea");
client.useSsl ();
client.setOAuthCredentials (objParametersPro, new OAuthHmacSha1Signer ());
DocumentListEntry newEntry= new com.google.gdata.data.docs.SpreadsheetEntry ();
newEntry.setTitle (new PlainTextConstruct ("myspreadsheet"));
DocumentListEntry insertedEntry= client.insert (new URL (
"https://docs.google.com/feeds/default/private/full/?xoauth_requestor_id=appsadmin@soharcoas.com"), newEntry);
}catch(Exception e)
{
System.out.println(e);
}
i include gdata-docs-1.0 and gdata-docs-3.0 and gdata-docs-meta3.0 jar files
What is the expected output? What do you see instead?
i expected to create a spreadsheet in my admin mail but i got following
exception
Exception in thread "main" java.lang.NoSuchMethodError:
com.google.gdata.client.GoogleService.insert(Ljava/net/URL;Lcom/google/gdata/dat
a/BaseEntry;)Lcom/google/gdata/data/BaseEntry;
at com.google.gdata.client.media.MediaService.insert(MediaService.java:318)
at Test.main(Test.java:38)
What version of the product are you using? On what operating system?
i am using winows7
java6 and google app
Please provide any additional information below.
Original issue reported on code.google.com by prash...@cloudcodes.com on 24 Dec 2012 at 7:50
Original issue reported on code.google.com by
prash...@cloudcodes.com
on 24 Dec 2012 at 7:50