Uploaded image for project: 'PUBLIC -  Liferay Screens'
  1. PUBLIC - Liferay Screens
  2. LSR-743

"Could not login." message from LoginScreenlet not visible on Android Tablet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.4.0
    • Component/s: Android, LoginScreenlet
    • Labels:
      None

      Description

      Description
      When trying to log in via the LoginScreenlet but failing, the red error message that slides down from the top is obstructed by the status bar of the tablet. Tested with both the default view and with the material viewset as well.

      Additional Information
      In the build.gradle file, under dependencies:

          compile 'com.liferay.mobile:liferay-screens:+'
          compile 'com.liferay.mobile:liferay-material-viewset:+'

      LoginScreenlet implementation is the same as described in the tutorial.

      Log
      In the log, I can only see the exception for the failed attempt (my portal was not running actually):

      01-18 14:08:52.828 6063-6063/com.liferay.support.screensdemo I/LiferayScreens: event = [com.liferay.mobile.screens.base.interactor.JSONObjectEvent@1bbffcc6]
      01-18 14:08:52.838 6063-6063/com.liferay.support.screensdemo E/LiferayScreens: Could not login
                                                                                     java.net.ConnectException: failed to connect to /192.168.221.219 (port 8080) after 15000ms: isConnected failed: ECONNREFUSED (Connection refused)
                                                                                         at libcore.io.IoBridge.isConnected(IoBridge.java:238)
                                                                                         at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
                                                                                         at libcore.io.IoBridge.connect(IoBridge.java:122)
                                                                                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
                                                                                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
                                                                                         at java.net.Socket.connect(Socket.java:882)
                                                                                         at com.squareup.okhttp.internal.Platform$Android.connectSocket(Platform.java:190)
                                                                                         at com.squareup.okhttp.internal.http.SocketConnector.connectRawSocket(SocketConnector.java:160)
                                                                                         at com.squareup.okhttp.internal.http.SocketConnector.connectCleartext(SocketConnector.java:67)
                                                                                         at com.squareup.okhttp.Connection.connect(Connection.java:152)
                                                                                         at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:185)
                                                                                         at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
                                                                                         at com.squareup.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:341)
                                                                                         at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
                                                                                         at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
                                                                                         at com.squareup.okhttp.Call.getResponse(Call.java:273)
                                                                                         at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:230)
                                                                                         at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:201)
                                                                                         at com.squareup.okhttp.Call.access$100(Call.java:36)
                                                                                         at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:164)
                                                                                         at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                         at java.lang.Thread.run(Thread.java:818)
                                                                                      Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
                                                                                         at libcore.io.IoBridge.isConnected(IoBridge.java:223)
                                                                                         at libcore.io.IoBridge.connectErrno(IoBridge.java:171) 
                                                                                         at libcore.io.IoBridge.connect(IoBridge.java:122) 
                                                                                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) 
                                                                                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456) 
                                                                                         at java.net.Socket.connect(Socket.java:882) 
                                                                                         at com.squareup.okhttp.internal.Platform$Android.connectSocket(Platform.java:190) 
                                                                                         at com.squareup.okhttp.internal.http.SocketConnector.connectRawSocket(SocketConnector.java:160) 
                                                                                         at com.squareup.okhttp.internal.http.SocketConnector.connectCleartext(SocketConnector.java:67) 
                                                                                         at com.squareup.okhttp.Connection.connect(Connection.java:152) 
                                                                                         at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:185) 
                                                                                         at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128) 
                                                                                         at com.squareup.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:341) 
                                                                                         at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330) 
                                                                                         at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248) 
                                                                                         at com.squareup.okhttp.Call.getResponse(Call.java:273) 
                                                                                         at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:230) 
                                                                                         at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:201) 
                                                                                         at com.squareup.okhttp.Call.access$100(Call.java:36) 
                                                                                         at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:164) 
                                                                                         at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33) 
                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                                         at java.lang.Thread.run(Thread.java:818)

      Used device:
      Model number: Nexus 10
      Android version: 5.1.1
      Android security patch level: 2016-01-01
      Kernel version: 3.4.67-g84ad5a4

      I'll try to attach a screenshot of what's happening.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                1.4.0