tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31001] New: - NPE and incorrect for MBeansFactory createStandardService method signature description in mbeans-descriptor.xml
Date Wed, 01 Sep 2004 18:56:57 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: alexsmr@sympatico.ca


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message