Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-613

Exception "ManagementFactory is a restricted class" for Jena 2.11.0 inside Google App Engine

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Jena 2.11.0
    • None
    • ARQ
    • None
    • Google App Engine

    Description

      I run into this exception when employing Jena 2.11.0 as part of a Google App Engine application.

      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)
      

      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 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) well.

      Attachments

        Activity

          People

            andy Andy Seaborne
            TipTop Labs TipTop Labs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: