Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Patch:Fixed
-
Approval:Accepted
Description
JMX Attributes can have null references. Currently a Exception is thrown because the "null-type" is not handled via objects->data:
user> (jmx/mbean "java.lang:type=GarbageCollector,name=PS MarkSweep")
{:LastGcInfo #<IllegalArgumentException java.lang.IllegalArgumentException: No implementation of method: :objects->data of protocol: #'clojure.java.jmx/Destract found for class: nil>, :CollectionCount 0, :CollectionTime 0, :MemoryPoolNames #<String[] [Ljava.lang.String;@57b8fe29>, :Name "PS MarkSweep", :Valid true, :ObjectName #<ObjectName java.lang:type=GarbageCollector,name=PS MarkSweep>}
After applying this patch:
user> (jmx/mbean "java.lang:type=GarbageCollector,name=PS MarkSweep")
{:LastGcInfo nil, :CollectionCount 0, :CollectionTime 0, :MemoryPoolNames #<String[] [Ljava.lang.String;@2225be1e>, :Name "PS MarkSweep", :Valid true, :ObjectName #<ObjectName java.lang:type=GarbageCollector,name=PS MarkSweep>}
Attachments
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | 0001-Extend-Destract-protocol-on-nil-to-handle-null-refer.patch [ 11453 ] |
| Attachment | 0003-Extend-Destract-protocol-on-nil-to-handle-null-refer.patch [ 11491 ] | |
| Attachment | 0002-Test-Destract-protocol-on-nil-refs-JMX-7.patch [ 11490 ] | |
| Attachment | 0001-fix-duplicate-definition-of-test-objects-data.patch [ 11489 ] |
| Attachment | 0001-Extend-Destract-protocol-on-nil-to-handle-null-refer.patch [ 11453 ] |
| Resolution | Completed [ 1 ] | |
| Approval | Accepted [ 10005 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |