3 Replies Latest reply on May 30, 2002 4:19 AM by Juha Lindfors

    NYI Problems

    ddumbugie Newbie

      Hi, all..

      new tomcat 4.1.2 alpha release uses ModelMBean...
      with its commons-modeler packages.

      I successfully built with jboss-jmx.jar.
      But running is failed. Because,,
      java.management.modelbean.ModelMBeanInfoSupport.java
      has two NYI Error throwings.
      this methods are..
      - Object clone();
      - void setDescriptor(Descriptor[] indescs);

      In, mx4j's clone implementation is not deep copy..
      ant jmx-ri's clone implentataion colne is deep copy.

      mx4j's setDescriptor implementation is the same one with
      sun's jmx-ri from IBM.

      IMHO,
      (1) clone must be deep copy.
      (2) setDescriptor same as with sun's implementation.

      Is there another plan to implement above methods??

      How can i contribute?

      The following is the stack trace result from catalina.out.
      0-0-0-0-0-0-0-0-0-0-
      Start of stack trace :Um catalina.out,,,
      0-0-0-0-0-0-0-0-0-0-

      [INFO] Registry - -Loading registry information
      [INFO] Registry - -Creating new Registry instance
      [INFO] Registry - -Creating MBeanServer
      [INFO] Http11Protocol - -Attribute port: 8080
      [INFO] Http11Protocol - -Attribute maxThreads: 75
      [INFO] Http11Protocol - -Attribute backlog: 10
      [INFO] Http11Protocol - -Attribute tcpNoDelay: true
      [INFO] Http11Protocol - -Attribute soTimeout: 20000
      [INFO] Http11Protocol - -Attribute timeout: 20000
      [INFO] Http11Protocol - -Attribute secure: false
      [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 protocol handler on port 8080
      [INFO] JkMain - -Starting Jk2, base dir= /home/cdrom/freesoft/jakarta.apache.org/jakarta-tomcat-4.0/dist conf=/home/cdrom/freesoft/jakarta.apache.org/jakarta-tomcat-4.0/dist/conf/jk2.properties
      [INFO] JkMain - -APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path
      [INFO] ChannelSocket - -JK: listening on tcp port 8019
      [INFO] JkMain - -Jk running ID=0 ... init time=399 ms
      ServerLifecycleListener: createMBeans: Throwable
      java.lang.Error: NYI
      at javax.management.modelmbean.ModelMBeanInfoSupport.clone(ModelMBeanInfoSupport.java:301)
      at org.apache.commons.modeler.BaseModelMBean.setModelMBeanInfo(BaseModelMBean.java:587)
      at org.apache.commons.modeler.BaseModelMBean.(BaseModelMBean.java:146)
      at org.apache.catalina.mbeans.MBeanFactory.(MBeanFactory.java:151)
      at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:282)
      at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:184)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:2180)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
      Exception during startup processing
      java.lang.reflect.InvocationTargetException: java.lang.Error: NYI
      at javax.management.modelmbean.ModelMBeanInfoSupport.clone(ModelMBeanInfoSupport.java:301)
      at org.apache.commons.modeler.BaseModelMBean.setModelMBeanInfo(BaseModelMBean.java:587)
      at org.apache.commons.modeler.BaseModelMBean.(BaseModelMBean.java:146)
      at org.apache.catalina.mbeans.MemoryUserDatabaseMBean.(MemoryUserDatabaseMBean.java:109)
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java:232)
      at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:386)
      at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:733)
      at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:240)
      at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:213)
      at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:176)
      at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:147)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:2180)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

      0-0-0-0-0-0-0-0-0-0-
      End of stack trace
      0-0-0-0-0-0-0-0-0-0-