Sunday, January 16, 2011

ADF JMX Datacontrol in FMW 11g PS3

One of the new Fusion MiddleWare PS3 ADF features is the JMX Datac Control. Back in late 2007 I already blogged about it and now 3 years later, Oracle finally released this feature in Patch Set 3. With the JMX Data Control you can manage your MBeans, read its attributes or invoke its operations. When an attribute gives back an MBean reference then ADF will look up this reference and returns this object. ( This is not the case in the System MBean browser of the Enterprise Manager application. )
I don't think this feature will be used in enduser applications, but can be very useful in support applications so the administrator can control the FMW servers. In this blogpost I will show you how you can use the JMX Data Control to give you a WebLogic Domain overview with its servers and application deployments.

First you need to create a JMX connection.

 Provide the WebLogic connection information
 After the JMX Connection creation, you can add the JMX Data Control to your application
 Select the JMX Connection
Select the MBeans, ( The EM System MBean browser can be handy to find the right MBean ), I will use the domain MBean located in com.bea.Domain
In the Data Controls window you can see my Domain MBean with its attributes and accessors.

 First I drag my Domain MBean to the page and select the attributes I want to show.
I also want to show you the WebLogic servers as child of the Domain ( in table layout ), the same for application deployments. So drag the Servers accessor on the page and select the attributes you want to show.
 With this as result.
Be aware, the JMX Data Control does not  know every Java Object, so if you want to use this on the SOA Suite MBeans it will give you some errors. It can't find the XML presentation of these SOA Java Object.


  1. Hi Edwin,

    Very cool feature. Thanks for showing it. And I will try to find a good use for end users - there has to be a way of making a meaningful application, I am sure...

    kind regards,


  2. Hi Edwin,

    Thanks. Your sample works great. However, when I try to add a user via the createUser() method I get a Null exception, as shown below, even though the user is added. Here is what I am doing:

    1. Under DefaultDomain, SecurityConfiguration, DefaultRealm, AuthenticationProviders, I drag the createUser(...) method to an empty jspx file.
    2. The fields are created for the 3 arguments along with the "create User" button.
    3. When I run it, I get NULL exception at:

    What am I missing here?

    My project requires displaying and managing the users in the embedded LDAP server, including adding and deleting new users, via our WebApp and not the WLS console. The new JMX DataControl seemed perfect for this, but I am running into this exception.

    What is the recommended approach to calling the methods on these MBeans from within ADF? Would you recommend using a Backing Bean instead?


  3. The stacktrace(1 of 2) for the createUser() exception.

    Thanks for the help.

    ADF: Adding the following JSF error message: java.lang.NullPointerException
    at oracle.adfinternal.model.adapter.jmx.JmxDataControl.invokeMBeanOperation(
    at oracle.adfinternal.model.adapter.jmx.JmxDataControl.invokeOperation(
    at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(
    at oracle.adf.model.binding.DCInvokeMethod.callMethod(
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(
    at oracle.adf.model.binding.DCDataControl.invokeOperation(
    at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(
    at oracle.adf.model.adapter.AdapterDCService.invokeOperation(
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(
    at javax.faces.component.UIViewRoot.broadcastEvents(
    at javax.faces.component.UIViewRoot.processApplication(
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(
    at javax.faces.webapp.FacesServlet.service(
    at weblogic.servlet.internal.StubSecurityHelper$
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
    at weblogic.servlet.internal.ServletStubImpl.execute(
    at weblogic.servlet.internal.TailFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(

  4. The stacktrace (2 of 2) for createUser().
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at oracle.adf.library.webapp.LibraryFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at Method)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at oracle.dms.servlet.DMSServletFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(
    at weblogic.servlet.internal.FilterChainImpl.doFilter(
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(
    at weblogic.servlet.internal.WebAppServletContext$
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(
    at weblogic.servlet.internal.WebAppServletContext.execute(

  5. Dear Edwin ,
    Thank you for the helpful Information
    actually I'm facing some issue wen I used configuration manager, I have a startEdit method which it's takes two parameters waitTimeInMillis, timeOutInMillis when I pass 5000,7000
    It's throws exception

    ADF: Adding the following JSF error message: Cannot create an object of from type:[; with value:[;@56d75f
    oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of from type:[; with value:[;@56d75f
    at oracle.jbo.domain.TypeFactory.get(
    at oracle.jbo.domain.TypeFactory.getInstance(
    at oracle.jbo.server.AttributeDefImpl.convertToJava(
    at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(
    at oracle.jbo.server.ViewRowStorage.getAttributeInternal(
    at oracle.jbo.server.ViewRowImpl.getAttributeValue(
    at oracle.jbo.server.ViewRowImpl.getAttributeInternal(
    at oracle.adf.model.bean.DCDataRow.getAttributeInternal(
    at oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(
    any help I will do appreciated!