DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31001>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31001

NPE and incorrect for MBeansFactory createStandardService method signature description 
in mbeans-descriptor.xml

           Summary: NPE and incorrect for MBeansFactory
                    createStandardService method signature description in
                    mbeans-descriptor.xml
           Product: Tomcat 5
           Version: 5.0.27
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


MBeansFactory createStandardService method has not correct descriptor:

<operation   name="createStandardService"
       description="Create a new StandardService"
            impact="ACTION"
       returnType="java.lang.String">
   <parameter name="parent"
       description="MBean Name of the associated parent component"
            type="java.lang.String"/>
   <parameter name="name"
       description="Unique name of this Service"
            type="java.lang.String"/>
</operation>

the method signature however is createStandardService(String, String, String) 
that results in runtime exception.

Even if you specify correct parameters, the method will throw NPE on return 
statement because the ObjectName for the service was not initialized.

Alex.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to