[ http://jira.jboss.com/jira/browse/JBAS-1317?page=history ]
     
Scott M Stark resolved JBAS-1317:
---------------------------------

    Resolution: Won't Fix

The jmx 1.2 maintence release is actually version clear that the 
MonitorNotification.OBSERVED_ATTRIBUTE_TYPE_ERROR notification should be sent 
when the observed attribute is null. From Chapter 8, section Common Monitor 
Notification Types:

jmx.monitor.error.type - Sent when the object instance of the observed 
attribute value is null or not of the appropriate type for the given monitor. 
The observed object name and observed attribute name are provided in the 
notification.

The java5 StringMonitor explicitly ignores null monitored values and fails to 
emit the OBSERVED_ATTRIBUTE_TYPE_ERROR. A bug has been filed in the jdc bug 
database and has an internal review id of 383402.

> org.jboss.test.jbossmx.compliance.monitor.BasicTestCase StringMonitor null 
> attribute error notifications
> --------------------------------------------------------------------------------------------------------
>
>          Key: JBAS-1317
>          URL: http://jira.jboss.com/jira/browse/JBAS-1317
>      Project: JBoss Application Server
>         Type: Bug
>   Components: JMX
>     Versions:  JBossAS-3.2.7 Final
>  Environment: [EMAIL PROTECTED] testsuite]$ $JAVA_HOME/bin/java -version
> java version "1.5.0_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
> Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
>     Reporter: Scott M Stark
>     Assignee: Scott M Stark
>     Priority: Blocker
>      Fix For:  JBossAS-3.2.7 Final

>
>
> There are 3 errors in the StringMonitor tests due to the expectation of an 
> jmx.monitor.error.attribute notification resulting from the monitored 
> attribute being null. The java5 implementation explicitly ignores this 
> condition and its certainly not clear from the spec that such an error should 
> be generated for this condition.
> Suite:       org.jboss.test.jbossmx.compliance.monitor.BasicTestCase
> Test:        testStringBothNotification
> Type:        failure
> Exception:   junit.framework.AssertionFailedError
> Message:     expected:<1> but was:<0>
> ---------------------------------
> Suite:       org.jboss.test.jbossmx.compliance.monitor.BasicTestCase
> Test:        testStringMatchNotification
> Type:        failure
> Exception:   junit.framework.AssertionFailedError
> Message:     expected:<1> but was:<0>
> ---------------------------------
> Suite:       org.jboss.test.jbossmx.compliance.monitor.BasicTestCase
> Test:        testStringDifferNotification
> Type:        failure
> Exception:   junit.framework.AssertionFailedError
> Message:     expected:<1> but was:<0>
> ---------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to