You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vinshar <vi...@gmail.com> on 2016/01/19 22:36:14 UTC
UnsupportedOperationException on adding indexed types to a config
object
Hi,
Below code throws UnsupportedOperationException.
public static void main(String[] args) {
CacheConfiguration config = new
CacheConfiguration((CompleteConfiguration)new CacheConfiguration());
config.setIndexedTypes(Integer.class,String.class);
}
trace:-
Exception in thread "main" java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:148)
I am not sure whats going on in the setter hence thought of asking here.
Regards,
Vinay
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/UnsupportedOperationException-on-adding-indexed-types-to-a-config-object-tp2642.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: UnsupportedOperationException on adding indexed types to a
config object
Posted by vinshar <vi...@gmail.com>.
Thanks for the fix Denis.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/UnsupportedOperationException-on-adding-indexed-types-to-a-config-object-tp2642p2673.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: UnsupportedOperationException on adding indexed types to a
config object
Posted by Denis Magda <dm...@gridgain.com>.
Hi,
Thanks for catching this. There was a tiny issue that is reproduced only
when a CacheConfiguration is being initialized like in your example. I've
done a hot fix and pushed changes into the master.
On your side you can initialized the configuration the way below to avoid
the exception
CacheConfiguration config = new CacheConfiguration();
Regards,
Denis
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/UnsupportedOperationException-on-adding-indexed-types-to-a-config-object-tp2642p2653.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.