2 Replies Latest reply: May 20, 2013 2:53 PM by Orlando De Abreu RSS

    Error in RIB-RMS instance: Unable to invoke MBean method returnTypes

    Orlando De Abreu
      Problem Summary
      ---------------------------------------------------
      Error in RIB-RMS instance: Unable to invoke MBean method returnTypes

      Problem Description
      ---------------------------------------------------
      By clicking on the "Adapter Manager" you get the following error:

      Application Exception: java.lang.Exception: Unable to invoke MBean method returnTypes ........... at com.retek.rib.management.adapters.model.AdapterTypes.getAdapterTypesList (AdapterTypes.java: 161) at com.retek.rib.management.adapters.model.AdapterTypes.getAllAdapterTypes (AdapterTypes.java: 185) at rib_adapter__manager._jspService (_rib__adapter__manager.java: 130) at com.orionserver.http.OrionHttpJspPage.service (OrionHttpJspPage.java: 59) at oracle.jsp.runtimev2.JspPageTable.service (JspPageTable.java: 462) at oracle.jsp.runtimev2.JspServlet. internalService (JspServlet.java: 594) at oracle.jsp.runtimev2.JspServlet.service (JspServlet.java: 518) at javax.servlet.http.HttpServlet.service (HttpServlet.java: 856) at com.evermind.server.http . ServletRequestDispatcher.invoke (ServletRequestDispatcher.java: 713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java: 370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java: 871) at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java: 453) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java: 313) at com.evermind.server.http.AJPRequestHandler.run ( AJPRequestHandler.java: 199) at $ oracle.oc4j.network.ServerSocketReadHandler SafeRunnable.run (ServerSocketReadHandler.java: 260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java: 234) at oracle.oc4j.network.ServerSocketAcceptHandler . access $ 700 (ServerSocketAcceptHandler.java: 29) at at at java.lang.Thread.run (Thread.java: 595)

      System Exception message: java.lang.Exception: Unable to invoke MBean method returnTypes ...........

      We followed the steps in the article "Unable To Edit" orion-ejb-jar.xml "and Get Application Exception While Adapters Tab Clicking [ID 739489.1]" without positive results.

      This is happening in our test environment. In addition to following the steps in the article "Unable To Edit" orion-ejb-jar.xml "and Get Application Exception While Adapters Tab Clicking [ID 739489.1]", we tried to undeploy and RIB reploy but got no positive results.

      From Management.rib.log:

      2013-05-03 12:20:40,355 [Timer-7] DEBUG org.apache.commons.beanutils.BeanUtils - copyProperty(com.retek.rib.j2ee.ErrorHospitalRetryTimerTask@1d00beb, reasonCode, SUB)
      2013-05-03 12:20:40,360 [Timer-7] ERROR com.retek.rib.j2ee.TimerAdapterCaller - Could not start timer sub_hosp_0
      java.lang.IllegalArgumentException: Non-positive period.
      at java.util.Timer.schedule(Timer.java:221)
      at com.retek.rib.j2ee.TimerAdapterCaller.startTimer(TimerAdapterCaller.java:126)
      at com.retek.rib.management.adapters.mbeans.external.levels.adapters.AbstractTimerAdapterMgmtBean.start(AbstractTimerAdapterMgmtBean.java:236)
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getTimerDrivenElements(ManagedAdaptersFactory.java:611)
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getHospMBeans(ManagedAdaptersFactory.java:197)
      at com.retek.rib.monitor.engine.MBeanRegisterServletContextListener$1.run(MBeanRegisterServletContextListener.java:94)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      2013-05-03 12:20:40,365 [Timer-7] DEBUG com.retek.rib.alert.Alert - $Header: /cvs/Integration/RIB/Rib_Support/src/com/retek/rib/alert/Alert.java,v 1.6 2007/04/16 03:45:28 dikshih Exp $
      2013-05-03 12:20:40,377 [Timer-7] DEBUG com.retek.rib.util.RibProperties - Property key(alertPublisherImpl) value(com.retek.rib.alert.impl.EmailAlertPublisher,com.retek.rib.alert.impl.JmxAlertPublisher).
      2013-05-03 12:20:40,393 [Timer-7] DEBUG com.retek.rib.util.RibProperties - Property key(mail.smtp.host) value(cmcasarrayp01).
      2013-05-03 12:20:40,393 [Timer-7] DEBUG com.retek.rib.util.RibProperties - Property key(mail.smtp.port) value(25).
      2013-05-03 12:20:40,394 [Timer-7] DEBUG com.retek.rib.util.RibProperties - Property key(mail.smtp.from) value(apprib_pre@centralmadeirense.com.ve).
      2013-05-03 12:20:40,394 [Timer-7] DEBUG com.retek.rib.util.RibProperties - Property key(mail.smtp.to.list) value(coord_continuidad_operativa@centralmadeirense.com.ve,basededatos@centralmadeirense.com.ve).
      2013-05-03 12:20:40,395 [Timer-7] DEBUG com.retek.rib.alert.AlertPublisherFactory - The following AlertPublisher implementation was defined in rib-system.properties and will be used: com.retek.rib.alert.impl.EmailAlertPublisher
      2013-05-03 12:20:40,397 [Timer-7] DEBUG com.retek.rib.alert.AlertPublisherFactory - The following AlertPublisher implementation was defined in rib-system.properties and will be used: com.retek.rib.alert.impl.JmxAlertPublisher
      2013-05-03 12:20:40,397 [Timer-7] DEBUG com.retek.rib.alert.impl.EmailAlertPublisher - $Header: /cvs/Integration/RIB/Rib_Support/src/com/retek/rib/alert/impl/EmailAlertPublisher.java,v 1.7 2008/02/15 22:29:44 borapra Exp $
      2013-05-03 12:20:40,398 [Timer-7] DEBUG com.retek.rib.alert.impl.JmxAlertPublisher - $Header: /cvs/Integration/RIB/Rib_Support/src/com/retek/rib/alert/impl/JmxAlertPublisher.java,v 1.3 2007/04/16 03:38:37 dikshih Exp $
      2013-05-03 12:20:40,399 [Timer-7] DEBUG com.retek.rib.alert.AlertPublisherFactory$AlertPublisherProxy - Invoking method in AlertPublisher implemenation com.retek.rib.alert.impl.EmailAlertPublisher
      2013-05-03 12:20:40,399 [Timer-7] DEBUG com.retek.rib.alert.impl.EmailAlertPublisher - Trying to send email to coord_continuidad_operativa@centralmadeirense.com.ve,basededatos@centralmadeirense.com.ve
      2013-05-03 12:20:41,820 [Timer-7] ERROR com.retek.rib.alert.impl.EmailAlertPublisher - Email send to coord_continuidad_operativa@centralmadeirense.com.ve,basededatos@centralmadeirense.com.ve
      2013-05-03 12:20:41,822 [Timer-7] DEBUG com.retek.rib.alert.AlertPublisherFactory$AlertPublisherProxy - Invoking method in AlertPublisher implemenation com.retek.rib.alert.impl.JmxAlertPublisher
      2013-05-03 12:20:41,823 [Timer-7] ERROR com.retek.rib.management.adapters.mbeans.external.levels.adapters.AbstractTimerAdapterMgmtBean - failed to invoke start operation
      java.lang.IllegalArgumentException: Non-positive period.
      at java.util.Timer.schedule(Timer.java:221)
      at com.retek.rib.j2ee.TimerAdapterCaller.startTimer(TimerAdapterCaller.java:126)
      at com.retek.rib.management.adapters.mbeans.external.levels.adapters.AbstractTimerAdapterMgmtBean.start(AbstractTimerAdapterMgmtBean.java:236)
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getTimerDrivenElements(ManagedAdaptersFactory.java:611)
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getHospMBeans(ManagedAdaptersFactory.java:197)
      at com.retek.rib.monitor.engine.MBeanRegisterServletContextListener$1.run(MBeanRegisterServletContextListener.java:94)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      2013-05-03 12:20:41,824 [Timer-7] DEBUG com.retek.rib.monitor.mbeans.DynamicMBeanBase - checking if notification is enabled for com.oracle.rib.rib-rms.sub_hosp_0.runtimeState.failed
      2013-05-03 12:20:41,825 [Timer-7] ERROR com.retek.rib.j2ee.ManagedAdaptersFactory - Non-positive period.
      2013-05-03 12:20:41,825 [Timer-7] ERROR com.retek.rib.monitor.engine.MBeanRegisterServletContextListener$1 - Unable to call Register ManagedAdaptersFactory.
      java.lang.RuntimeException: Non-positive period.
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getTimerDrivenElements(ManagedAdaptersFactory.java:615)
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getHospMBeans(ManagedAdaptersFactory.java:197)
      at com.retek.rib.monitor.engine.MBeanRegisterServletContextListener$1.run(MBeanRegisterServletContextListener.java:94)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      Caused by: java.lang.IllegalArgumentException: Non-positive period.
      at java.util.Timer.schedule(Timer.java:221)
      at com.retek.rib.j2ee.TimerAdapterCaller.startTimer(TimerAdapterCaller.java:126)
      at com.retek.rib.management.adapters.mbeans.external.levels.adapters.AbstractTimerAdapterMgmtBean.start(AbstractTimerAdapterMgmtBean.java:236)
      at com.retek.rib.j2ee.ManagedAdaptersFactory.getTimerDrivenElements(ManagedAdaptersFactory.java:611)
      ... 4 more
      2013-05-03 13:44:28,947 [UnDeployerRunnable Thread for rib-rms] DEBUG com.retek.rib.monitor.engine.MBeanRegisterServletContextListener - contextDestroyed begin.
        • 1. Re: Error in RIB-RMS instance: Unable to invoke MBean method returnTypes
          TrevorWJNorth
          2013-05-03 12:20:40,355 [Timer-7] DEBUG org.apache.commons.beanutils.BeanUtils - copyProperty(com.retek.rib.j2ee.ErrorHospitalRetryTimerTask@1d00beb, reasonCode, SUB)
          2013-05-03 12:20:40,360 [Timer-7] ERROR com.retek.rib.j2ee.TimerAdapterCaller - Could not start timer sub_hosp_0
          java.lang.IllegalArgumentException: Non-positive period.

          Looks like you might have a typo in the configuration for the rib-rms-adapters.xml, check this in your $RIB_HOME/application-assembly-home/rib-rms.

          Should look like this, if it does, check the elements before and after and see if you have any errors. You can compare with the file from another environment where the error doesn't occur and do a diff to see what is different.

          <hospitals>
          <timer-driven id="sub_hosp_0" initialState="running" timeDelay="10" >
          <timer-task>
          <class name="com.retek.rib.j2ee.ErrorHospitalRetryTimerTask"/>
          <property name="reasonCode" value="SUB"/>
          </timer-task>
          </timer-driven>
          • 2. Re: Error in RIB-RMS instance: Unable to invoke MBean method returnTypes
            Orlando De Abreu
            Was a great help your opinion.

            It turns out that the file "rib-rms-adapters.xml" had the value zero (0) for the attribute "timedelay":

            <timer-driven id="sub_hosp_0" initialState="running" timeDelay="0" >

            I climbed this value to 10 as it was set in the environment of quality and I could see the screen:

            <timer-driven id="sub_hosp_0" initialState="running" timeDelay="10" >

            Thank you.