[CONJ-281] v1.4.2 of Connector/J is incompatible with Google App Engine Created: 2016-04-15  Updated: 2016-04-22  Resolved: 2016-04-22

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.4.0, 1.4.1, 1.4.2
Fix Version/s: 1.4.3

Type: Bug Priority: Major
Reporter: Robert Dyas Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

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.



 Comments   
Comment by Diego Dupin [ 2016-04-22 ]

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)

Generated at Thu Feb 08 03:14:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.