I am trying to remove an item of a List.
list.remove(key);
However, it throws an exception:
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at java.util.AbstractCollection.remove(AbstractCollection.java:293)
at bean.Bean.deleteRow(Bean.java:46)
How is this caused and how can I solve it?
javax.faces.el.EvaluationExceptionis a Java exception, so you should read the server logs.main()method. Including the entire Java EE web interface in a question about an exception ofjava.lang.*package originating from your own code is unnecessary. I have trimmed down the irrelevant noise from the question to make it better focused.