Uploaded image for project: 'JBoss Enterprise Web Server'
  1. JBoss Enterprise Web Server
  2. JBEWS-10

javax.management.InstanceNotFoundException: Catalina:type=StoreConfig

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Migrated to another ITS
    • Affects Version/s: EWS 2.0.0 CR1
    • Fix Version/s: TBD EWS
    • Labels:
      None
    • Affects:
      Release Notes

      Description

      This is a lingering upstream issue in Tomcat 6 and 7. It affects JON in a way that it prevents configuration changes made by JON agent to be persisted into xml. Config changes can be done through remote JMX interface, but persisting them to server.xml doesn't work, as it requires calling the storeConfig method of Catalina:type=StoreConfig MBean.

      JBoss Operations Network tries to persist every change right away, so - when you try to make a configuration change through JON, you will get this message in tomcat log:

      Oct 11, 2012 11:10:07 AM org.apache.tomcat.util.modeler.BaseModelMBean invoke
      SEVERE: Exception invoking method storeConfig
      javax.management.InstanceNotFoundException: Catalina:type=StoreConfig
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1118)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:854)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
      	at org.apache.catalina.core.StandardServer.storeConfig(StandardServer.java:665)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
      	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450)
      	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90)
      	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285)
      	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383)
      	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807)
      	at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
      	at sun.rmi.transport.Transport$1.run(Transport.java:177)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
      	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:679)
      

      official tomcat6 issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=42708

      .. but it also affects tomcat7 in the same way.

      It seems that this will never be fixed in upstream. In other words, if we don't provide this functionality ourselves, this will probably never work.

        Gliffy Diagrams

          Activity

          Hide
          jfclere Jean-Frederic Clere added a comment -

          The upstream code wasn't port to TC6. I don't except this being fixed....

          Show
          jfclere Jean-Frederic Clere added a comment - The upstream code wasn't port to TC6. I don't except this being fixed....
          Hide
          jfclere Jean-Frederic Clere added a comment -

          fixing that is weeks for work for Tomcat6 and bunch of weeks more for Tomcat7 (and more for trunk).

          Show
          jfclere Jean-Frederic Clere added a comment - fixing that is weeks for work for Tomcat6 and bunch of weeks more for Tomcat7 (and more for trunk).
          Hide
          permaine Permaine Cheung added a comment -

          Assigning to dev for future EWS release.

          Show
          permaine Permaine Cheung added a comment - Assigning to dev for future EWS release.
          Hide
          rmaucher Remy Maucherat added a comment -

          A port attempt is in the Tomcat sandbox:

          Show
          rmaucher Remy Maucherat added a comment - A port attempt is in the Tomcat sandbox: for Tomcat 6: http://svn.apache.org/repos/asf/tomcat/sandbox/storeconfig6/ for Tomcat 7: http://svn.apache.org/repos/asf/tomcat/sandbox/storeconfig7/ They can be built with Maven.
          Hide
          jfclere Jean-Frederic Clere added a comment -
          Show
          jfclere Jean-Frederic Clere added a comment - more comments on https://bugzilla.redhat.com/show_bug.cgi?id=583996
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          This issue has been migrated to Bugzilla bug 901050. Please note that this JIRA issue has been closed as part of the migration and therefore you will need to check the Bugzilla issue to find the current status.

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - This issue has been migrated to Bugzilla bug 901050 . Please note that this JIRA issue has been closed as part of the migration and therefore you will need to check the Bugzilla issue to find the current status.
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          Michal Haško <mhasko@redhat.com> made a comment on bug 901050

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - Michal Haško <mhasko@redhat.com> made a comment on bug 901050
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          Michal Haško <mhasko@redhat.com> changed the Status of bug 901050 from NEW to CLOSED

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - Michal Haško <mhasko@redhat.com> changed the Status of bug 901050 from NEW to CLOSED

            People

            • Assignee:
              dknox David Knox
              Reporter:
              jmartisk Jan Martiska
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development