Accessing the Weblogic management entity encountered weblogic.management.NoAccessRuntimeException.

problem description

failed to access weblogic.management.mbeanservers.domainruntime:

weblogic.management.NoAccessRuntimeException: [Management:141102] Subject: principals= [] does not have access to perform Admin actions.

the environmental background of the problems and what methods you have tried

refer to How it"s done: Password change functionality in OBIEE

related codes

/ / Please paste the code text below (do not replace the code with pictures)
initialize the connection as follows:

    public static void InlCctn(String Adr, String AdrUsr, String AdrPswd) throws IOException, MalformedURLException {
        JMXServiceURL SvcUrl =
            new JMXServiceURL("service:jmx:iiop://" + Adr + "/jndi/weblogic.management.mbeanservers.domainruntime");
        Hashtable h = new Hashtable();
        h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
        h.put(Context.SECURITY_PRINCIPAL, AdrUsr);
        h.put(Context.SECURITY_CREDENTIALS, AdrPswd);
        //        String[] credentials = new String[] { AdrUsr, AdrPswd };
        //        h.put("jmx.remote.credentials", credentials);
        cctor = JMXConnectorFactory.connect(SvcUrl, h);
        mbsc = cctor.getMBeanServerConnection();
    }

uses both ways to connect with the same error.

look forward to

is it the problem of Weblogic configuration or my method?

Mar.29,2021
For

method construction problems, please refer to Accessing WebLogic Server MBeans with JMX

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4403f-437b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4403f-437b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?