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 8539651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:25:00+00:00 2026-06-11T11:25:00+00:00

Please advice me why log cat tell me org.json.JSONException: No value for report_data. And

  • 0

Please advice me why log cat tell me org.json.JSONException: No value for report_data.
And my php file is work.

List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair(TAG_REPORT_ID, report_id));
JSONObject json = jsonParser.makeHttpRequest(ReportURL, "GET", params);
Log.d("details", json.toString());

try {               
    int success = json.getInt(TAG_SUCCESS);
    if (success == 1) {
    JSONArray detailsObj = new JSONArray();
    detailsObj = json.getJSONArray(TAG_REPORT_DATA); // error this line
    JSONObject details = detailsObj.getJSONObject(0);
}

here all log cat show

09-17 11:55:59.723: D/details(4097): {"success":1,"detail":[{"uid":"1","time_end":"2012-08-21 15:50:37","time_start":"2012-08-15 15:40:31","report_id":"1","project_name":"example1","location":"bkk"}]}
09-17 11:55:59.723: W/System.err(4097): org.json.JSONException: No value for report_data
09-17 11:55:59.723: W/System.err(4097):     at org.json.JSONObject.get(JSONObject.java:354)
09-17 11:55:59.723: W/System.err(4097):     at org.json.JSONObject.getJSONArray(JSONObject.java:544)
09-17 11:55:59.723: W/System.err(4097):     at com.example.androidhive.ReportEdit$GetReportDetails$1.run(ReportEdit.java:131)
09-17 11:55:59.734: W/System.err(4097):     at android.os.Handler.handleCallback(Handler.java:615)
09-17 11:55:59.734: W/System.err(4097):     at android.os.Handler.dispatchMessage(Handler.java:92)
09-17 11:55:59.734: W/System.err(4097):     at android.os.Looper.loop(Looper.java:137)
09-17 11:55:59.734: W/System.err(4097):     at android.app.ActivityThread.main(ActivityThread.java:4745)
09-17 11:55:59.743: W/System.err(4097):     at java.lang.reflect.Method.invokeNative(Native Method)
09-17 11:55:59.743: W/System.err(4097):     at java.lang.reflect.Method.invoke(Method.java:511)
09-17 11:55:59.743: W/System.err(4097):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-17 11:55:59.743: W/System.err(4097):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-17 11:55:59.754: W/System.err(4097):     at dalvik.system.NativeStart.main(Native Method)
  • 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-11T11:25:01+00:00Added an answer on June 11, 2026 at 11:25 am

    The problem seems to be that you don’t have an element in the JSON named ‘report_data’

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

Sidebar

Related Questions

I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please.
Please advice a book on spatial data structures. I'm interested in Quadtrees and Octrees
Popups in jQuery Mobile not working as intended, please advice. The popup DIV is
Im new in C++. I need to listen HTTP requests. Please advice me some
Please somebody advice me how i can run external application from web browser on
Can anybody give me a little advice please? I have a string, for example
Please, help me. I need an advice in problem with progress bar in IE.
Please advise.. In the following code(Tested. Will work fine) public class Exp_Test { public
I wrote a log parser that constantly reads the log file gets specific lines
I have a log file which needs to be properly formatted into a readable

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.