File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.json.JSONException: No value for user

 
Gil Carvalho
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm getting this error in my login and i don't know why

My php



My login.java



My JsonParser



and my Userfunctions



The errors i get



Any help please??
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the JSON data that is being returned. Does it have data for "user"?
 
Gil Carvalho
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know

When i put this in my php




The logCat gives me this



The problem is it seems that the response variable in php don't fill the JSonObject "user"
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the problem is in the PHP code somewhere...?
 
Gil Carvalho
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Maybe, but i don't know where.
The query works since the first if after the query works, i put a acho there.
The problem is the §response variable seems to don't get the variables, why?

Regards
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move the question over to the PHP forum.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic