[
https://issues.apache.org/jira/browse/DBCP-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grzegorz D. updated DBCP-449:
-----------------------------
Flags: Important
Affects Version/s: (was: 2.0)
2.0.1
2.1
Priority: Blocker (was: Major)
Fix Version/s: (was: 2.0.1)
Description:
There is no way to disable the use of JMX when using PoolableConnections. Line
53 of PoolableConnection.java uses the ManagementFactory which is blacklisted
in Google App Engine.
MBEAN_SERVER = ManagementFactory.getPlatformMBeanServer();
"java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a
restricted class. Please see the Google App Engine developer's guide for more
details."
Closed issue DBCP-418 should catch (NoClassDefFoundError | Exception ex)
instead of (Exception ex)
was:
There is no way to disable the use of JMX when using PoolableConnections. Line
48 of PoolableConnection.java uses the ManagementFactory which is blacklisted
in Google App Engine.
private static MBeanServer MBEAN_SERVER =
ManagementFactory.getPlatformMBeanServer();
There should be a way to disable all JMX bindings for environments like GAE.
> Cannot use DBCP on Google App Engine
> ------------------------------------
>
> Key: DBCP-449
> URL: https://issues.apache.org/jira/browse/DBCP-449
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 2.0.1, 2.1
> Environment: Google App Engine
> Reporter: Grzegorz D.
> Priority: Blocker
>
> There is no way to disable the use of JMX when using PoolableConnections.
> Line 53 of PoolableConnection.java uses the ManagementFactory which is
> blacklisted in Google App Engine.
> MBEAN_SERVER = ManagementFactory.getPlatformMBeanServer();
> "java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a
> restricted class. Please see the Google App Engine developer's guide for more
> details."
> Closed issue DBCP-418 should catch (NoClassDefFoundError | Exception ex)
> instead of (Exception ex)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)