Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-42

AndroidHttpClient leaked

    XMLWordPrintable

    Details

      Description

      Hi,

      I'm just doing a quick test around your Android automation client and I saw that when I change the destination server dynamically, you create a new AndroidAutomationClient. However, the AndroidHttpClient the former AndroidAutomationClient holds is not closed, so an exception is thrown (java.lang.IllegalStateException: AndroidHttpClient created and never closed). I have added locally this stupid thing so it's closed when the AndroidAutomationClient is disposed:

          @Override
          protected void finalize() {
              ((AndroidHttpClient) this.http).close();
          }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.