thiagolocatelli / parse4j

Java Library to deal with Parse (parse.com) REST API
http://thiagolocatelli.github.io/parse4j
143 stars 117 forks source link

ParseUser Still broken #35

Open PauloxD opened 9 years ago

PauloxD commented 9 years ago

I can't seem to be able to even log in. If I use the login() method, I get an error

"Exception in thread "pool-1-thread-7" java.lang.IllegalArgumentException: ParseFile must be saved before being set on a ParseObject."

If I use the logIn() method, I can only return the username. All others return null.

If I use the loginInBackground() Method, I receive the error:

"Inherited abstract methods are not accessible and could not be implemented"

Is anyone getting these errors or know how to fix?

Thanks

nickolayrusev commented 9 years ago

Yes, there is a problem with endpoint name. The bug is introduced from the commit with hash a58eae9 . May be the committer didn't run the test cases. May be this commit should be reverted.

PauloxD commented 9 years ago

Is there anything we can do in the meantime? It doesn't seem to be updated regularly.

nickolayrusev commented 9 years ago

The repo is updated regularly. If you create pull request the maintainer will review it and will merge into the next release. without new build everything that I will suggest to do will be a very dirty hack. If you want dirty hack - see the commit a58eae9 and just copy the content of the ParseUser class into new class - MyParseUser and replace "_User" with "users" (revert it manually) and wherever you want to use ParseUser you will use MyParse user.

passabilities commented 9 years ago

I did a little hack with this where when a user logs in with .login() it doesn't do a check on the ParseFiles. See my commit f4c024e

raxxus85 commented 9 years ago

I'm getting "Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]" when attempting to signup() a user, is this related? Is this JSON object not being built properly? I've verified the endpoint works creating users via POSTMAN.

Nevermind, changing the input to users vs _User or whatever works!