Fórum

No such user Exception

thumbnail
Asad Saeed Awan, modificado 7 Anos atrás.

No such user Exception

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
Hello,

I have implemented code for Login Screenlet. I am trying to login for first time and it gives me this exception

Could not login
                                                   com.liferay.mobile.android.exception.ServerException: com.liferay.portal.NoSuchUserException
                                                       at com.liferay.mobile.android.http.Response.checkPortalException(Response.java:98)
                                                       at com.liferay.mobile.android.http.Response.getBody(Response.java:49)
                                                       at com.liferay.mobile.android.callback.BaseCallback.inBackground(BaseCallback.java:56)
                                                       at com.liferay.mobile.android.http.client.OkHttpClientImpl$1.onResponse(OkHttpClientImpl.java:192)
                                                       at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:170)
                                                       at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
                                                       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                       at java.lang.Thread.run(Thread.java:818)


The credentials which I am using to login are the same which I use for my localhost on browser. And on browser it successfully login to my portal. Am I doing something wrong here ?
thumbnail
Victor Galan, modificado 7 Anos atrás.

RE: No such user Exception

Regular Member Postagens: 144 Data de Entrada: 14/06/16 Postagens Recentes
Did you correctly set your portal companyId in your server_context.xml file?
thumbnail
Asad Saeed Awan, modificado 7 Anos atrás.

RE: No such user Exception

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
Yes I have companyId in server_context file.
thumbnail
Prakash Kumar Singh, modificado 7 Anos atrás.

RE: No such user Exception

Junior Member Postagens: 85 Data de Entrada: 30/01/15 Postagens Recentes
Hi,
have u checked your user status ? And have u tried same user with different fake password ? What is error that time ?
thumbnail
Asad Saeed Awan, modificado 7 Anos atrás.

RE: No such user Exception

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
Using fake/wrong password gives this exception.

Could not   com.liferay.mobile.android.exception.AuthenticationException: java.lang.
at com.liferay.mobile.android.http.Response.checkPortalException(Response.
at com.liferay.mobile.android.http.Response.getBody(Response.
at com.liferay.mobile.android.callback.BaseCallback.inBackground(BaseCallback.java:
at com.liferay.mobile.android.http.client.OkHttpClientImpl$1.onResponse(OkHttpClientImpl.java:
at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:
at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
at java.lang.Thread.run(Thread.java:818)
thumbnail
Asad Saeed Awan, modificado 7 Anos atrás.

RE: No such user Exception

Regular Member Postagens: 126 Data de Entrada: 16/01/15 Postagens Recentes
Issue resolved. I was doing a stupid mistake.