No, it is just one of my plain simple Java applications, no app server at all. 
I have a number of small applications, all make the same call to a class of 
mine called Database, which has the following static initializer.

        static {
                TDB.setOptimizerWarningFlag(false);
        }

Only one of the programs causes this exception. I had run this program before 
Friday, never got this problem. And Friday, it was only happening with this one 
program, consistently. It was weird. I set up a JMX policy file to grant the 
register permission, so the problem is no longer holding me up. But it is very 
weird that this was happening for just one of the programs, and that it had 
worked fine before.


-----Original Message-----
From: Andy Seaborne [mailto:[email protected]] On Behalf Of Andy 
Seaborne
Sent: Saturday, September 24, 2011 3:54 PM
To: [email protected]
Subject: Re: JMX issue with TDB-0.8.11-SNAPSHOT

On 23/09/11 18:54, David Jordan wrote:
> I am getting the following exception for one of my programs, but not others, 
> curiously.
>
> WARN [main] (Log.java:146) - Failed to initialize JMX
> java.security.AccessControlException: access denied 
> (javax.management.MBeanTrustPermission register)
>          at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>          at 
> java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
>          at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
>          at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310)
>          at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
>          at com.hp.hpl.jena.sparql.mgt.ARQMgt.register(ARQMgt.java:88)
>          at com.hp.hpl.jena.sparql.mgt.ARQMgt.init(ARQMgt.java:54)
>          at com.hp.hpl.jena.query.ARQ.init(ARQ.java:400)
>          at com.hp.hpl.jena.query.ARQ.<clinit>(ARQ.java:419)
>          at com.hp.hpl.jena.tdb.TDB.<clinit>(TDB.java:76)
>          at com.sas.hls.hoa.ontology.Database.<clinit>(Database.java:17)
>          at 
> com.sas.hls.hoa.ontology.CreateOntologySingletons.main(CreateOntologyS
> ingletons.java:20)
>

In what environment is this running?  I've not seen it and the "access denied" 
implies the app isn't being allowed to register mbeans.  is this some webapp 
container and might it have some sort of security on?

        Andy

>
> David Jordan
> Software Developer
> SAS Institute Inc.
> Health&  Life Sciences, Research&  Development Bldg R ▪ Office 4467
> 600 Research Drive ▪ Cary, NC 27513
> Tel: 919 531 1233 ▪ [email protected]<mailto:[email protected]>
> www.sas.com<http://www.sas.com>
> SAS® … THE POWER TO KNOW®
>
>
>


Reply via email to