Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-281

v1.4.2 of Connector/J is incompatible with Google App Engine

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.4.1, 1.4.2
    • 1.4.3
    • Other
    • None
    • Google App Engine Java

    Description

      1.4.2 (and probably the 1.4.x branch) of Connector/J is not compatible with Google App Engine because it uses a restricted class. Here is the error produced by App Engine:

      *_java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details
      _*

      The 1.3.x branch of Connector/J does not have this problem and works fine on App Engine. There are a lot of Google App Engine users, so it would be best to remove the 1.4.x branch's dependency on this class.

      Attachments

        Activity

          diego dupin Diego Dupin added a comment -

          That's since 1.4.0, because driver send different client information to server, so from the server admin can identified current connections.
          One of those informations is the running process ID using ManagementFactory.getRuntimeMXBean().getName().

          Add a catch on ManagementFactory use (commit)

          diego dupin Diego Dupin added a comment - That's since 1.4.0, because driver send different client information to server, so from the server admin can identified current connections. One of those informations is the running process ID using ManagementFactory.getRuntimeMXBean().getName(). Add a catch on ManagementFactory use ( commit )

          People

            diego dupin Diego Dupin
            rdyas Robert Dyas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.