java.util.ConcurrentModificationException

在前面一篇文章中提到,对Vector、ArrayList在迭代的时候如果同时对其进行修改就会抛出java.util.ConcurrentModificationException异常。下面我们就来讨论以下这个异常出现的原因以及解决办法。
. .

nested exception is org.springframework.jdbc.UncategorizedSQLException

java.lang.OutOfMemoryError: unable to create new native thread java.lang.Thread.start0(Native Method) java.lang.Thread.start(Thread.java:713) java.util.Timer.(Timer.java:176) java.util.Timer.(Timer.java:146) com.mysql.jdbc.ConnectionImpl.getCancelTimer(ConnectionImpl.java:358) com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2154)
. .