KeyAlreadyExistsException

Hi all,

I'm using a Open MBean and I have some CompositeDataSupport objects whose itemValues (the last constructor argument) could differ only because of an element, i.e.

Object[] itemValues1 ={"type1", 0.d, 0.d, 0.d};

Object[] itemValues2 ={"type2", 0.d, 0.d, 0.d};

The problem is that when I try to insert those values into a TabularDataSupport object I get a KeyAlreadyExistsException with this error message "Argument value's index, calculated according to this TabularData instance's tabularType, already refers to a value in this table".

Any idea apart from using a custom data type?

Thanks,

Michele

[813 byte] By [michele81a] at [2007-11-15]
# 1
I've found the problem. The exception happened because the values were indexed without taking into account the first element.Michele
michele81a at 2007-7-12 > top of java,Core,Monitoring & Management...