Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.4.0, 1.4.1, 1.4.2
-
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.
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)