[
https://issues.apache.org/jira/browse/JENA-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne closed JENA-613.
------------------------------
> Exception "ManagementFactory is a restricted class" for Jena 2.11.0 inside
> Google App Engine
> --------------------------------------------------------------------------------------------
>
> Key: JENA-613
> URL: https://issues.apache.org/jira/browse/JENA-613
> Project: Apache Jena
> Issue Type: Question
> Components: ARQ
> Affects Versions: Jena 2.11.0
> Environment: Google App Engine
> Reporter: TipTop Labs
> Assignee: Andy Seaborne
> Priority: Minor
>
> I run into this exception when employing Jena 2.11.0 as part of a Google App
> Engine application.
> {noformat}
> 1:10:41,371 WARN [com.hp.hpl.jena.sparql.mgt.ARQMgt] - Failed to initialize
> JMX
> java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a
> restricted class. Please see the Google App Engine developer's guide for
> more details.
> at
> com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
> at com.hp.hpl.jena.sparql.mgt.ARQMgt.init(ARQMgt.java:56)
> {noformat}
> Is it safe to assume that this will only disable ARQ’s JMX agent and not
> otherwise impact Jena and the application? And is it possibly to disable JMX
> more gracefully e.g. by a Jena/ARQ property setting?
> I noticed in
> [ARQ|http://grepcode.com/file/repo1.maven.org/maven2/org.apache.jena/jena-arq/2.9.1/com/hp/hpl/jena/sparql/mgt/ARQMgt.java]
> is (perhaps) already meant to handle environments where JMX does not exist,
> but apparently this does not cover Google App Engine (where
> {{ManagementFactory}} is not available by
> [design|https://developers.google.com/appengine/docs/java/jrewhitelist]) well.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)