java.lang.VerifyError

51 views
Skip to first unread message

srita...@gmail.com

unread,
Jan 5, 2016, 8:55:00 AM1/5/16
to AdWords API Forum
Hello,
I copied API Code and lib into to my project, but when I call AddCampaigns class method from my class, I am getting error  Credential oAuth2Credential = new OfflineCredentials.Builder()
    .forApi(Api.ADWORDS)
    .fromFile()
    .build()
    .generateCredential();
this level.

Error:


SEVERE: Servlet.service() for servlet action threw exception
java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)

Anthony Madrigal

unread,
Jan 5, 2016, 4:54:40 PM1/5/16
to AdWords API Forum
Hi,

Please make sure you are using a client customer Id in your ads.properties file, not MCC customer Id. If you are using a client customer Id, could you please reply privately to author with the SOAP request and response that resulted in this error?

Thanks,
Anthony
AdWords API Team

srita...@gmail.com

unread,
Jan 6, 2016, 12:43:32 AM1/6/16
to AdWords API Forum

I am not sending request through Soap, I have downloaded client library for java, and copy that library code in to my java application, when I call library from my application it shows an error

Anthony Madrigal

unread,
Jan 6, 2016, 9:18:35 AM1/6/16
to AdWords API Forum
Hi,

Do you have all your dependencies, jar files, and properties files set up correctly?

Regards,
Anthony
AdWords API Team

srita...@gmail.com

unread,
Jan 7, 2016, 1:32:31 AM1/7/16
to AdWords API Forum
Yes I have All dependencies, and I have set up properties file correctly

srita...@gmail.com

unread,
Jan 7, 2016, 1:38:10 AM1/7/16
to AdWords API Forum
At this line I am getting Error

  Credential oAuth2Credential = new OfflineCredentials.Builder()
      .forApi(Api.ADWORDS)
      .fromFile()
      .build()
      .generateCredential();

On Wednesday, January 6, 2016 at 7:48:35 PM UTC+5:30, Anthony Madrigal wrote:

srita...@gmail.com

unread,
Jan 7, 2016, 1:56:38 AM1/7/16
to AdWords API Forum
When I paste code in to my project and tried to run using main method in shows error 

Jan 07, 2016 12:19:13 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)

On Wednesday, January 6, 2016 at 7:48:35 PM UTC+5:30, Anthony Madrigal wrote:

srita...@gmail.com

unread,
Jan 7, 2016, 4:14:24 AM1/7/16
to AdWords API Forum
Please help me to resolve this, I want to use those library into my java application.
please help me!

Anthony Madrigal

unread,
Jan 7, 2016, 9:22:08 AM1/7/16
to AdWords API Forum
Hi,

Sorry, you are having trouble setting up the project. Could you please reply privately to author your code and ads.properties file so that I could take a further look? I will try to solve this issue as soon as possible!

srita...@gmail.com

unread,
Jan 8, 2016, 12:06:55 AM1/8/16
to AdWords API Forum
ok, where can I send my code?? is there any email ID??

Anthony Madrigal

unread,
Jan 8, 2016, 1:58:11 PM1/8/16
to AdWords API Forum
Hi,

You can click the dropdown next to the reply button on the right then click Reply privately to author.

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages