Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:18:47+00:00 2026-06-07T08:18:47+00:00

Exception stack trace: java.lang.RuntimeException: An error occured while executing doInBackground() E/AndroidRuntime( 695): at android.os.AsyncTask$3.done(AsyncTask.java:200)

  • 0

Exception stack trace:

java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 695): at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime( 695): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
E/AndroidRuntime( 695): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime( 695): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
E/AndroidRuntime( 695): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime( 695): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
E/AndroidRuntime( 695): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
E/AndroidRuntime( 695): at java.lang.Thread.run(Thread.java:1096)
E/AndroidRuntime( 695): Caused by: java.lang.NoClassDefFoundError: com.google.gson.Gson
E/AndroidRuntime( 695): at com.amphisoft.mebox.LoginActivity$LoginTask.doInBackground(LoginActivity.java:167)
E/AndroidRuntime( 695): at com.amphisoft.mebox.LoginActivity$LoginTask.doInBackground(LoginActivity.java:1)
E/AndroidRuntime( 695): at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime( 695): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
E/AndroidRuntime( 695): … 4 more

This is my code:

protected User doInBackground(User... user) {
        HttpClient httpClient = new DefaultHttpClient();
        try {
            HashMap<String, String> parameters = new HashMap<String, String>();
            parameters.put("username", user[0].username);
            parameters.put("password", user[0].password);
            String response = HTTPUtil.post("/user/login.json", parameters,
                    null);
            System.out.println("Response:" + response);
            Gson gson = new Gson();
            User userObj = gson.fromJson(response, User.class);
            Store.getInstance().user = userObj;

        }

I tried adding gson-2.1jar many times in the library.. But getting the same error as class definition not found.. Please help me. Thanks in advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:18:49+00:00Added an answer on June 7, 2026 at 8:18 am

    Create a libs folder and put gson in there, then add the folder to the library path.

    See this

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My program crashes due to a null pointer exception. Snip of Stack Trace: java.lang.NullPointerException
Here is the stacktrace: 04-10 18:09:36.393: E/AndroidRuntime(26592): FATAL EXCEPTION: main 04-10 18:09:36.393: E/AndroidRuntime(26592): java.lang.RuntimeException:
I get a java.lang.NoClassDefFoundError: android/util/Log error when I try to run my unit test
Why does this code not print an exception stack trace? public class Playground {
I want to disable the stack trace getting generated when an exception is thrown.
Suppose I want to reflect exception in the log. Should I pass stack trace
Can you try/catch a stack overflow exception in java? It seems to be throwing
My app has an occasional bug in it. Flurry shows me this: class java.lang.RuntimeException
it happens when i change the DataSource. i have checked everything(stack traces, all exception
In certain cases - especially when an exception escapes a destructor during stack unwinding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.