- status: open --> open-accepted
Got the following error today:
ERROR
[PlaylistSource=>/data/MP3/0001_Andres_Favorites.pls]
(?:?) - PlaylistSource=>/data/MP3/0001_Andres_Favorites.pls
java.util.ConcurrentModificationException
at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java(Compiled
Code))
at
java.util.AbstractList$Itr.next(AbstractList.java(Compiled
Code))
at
de.anneck.jcast.sources.PlaylistSourceThread.sendFileLocation(PlaylistSourceThread.java(Compiled
Code))
at
de.anneck.jcast.sources.PlaylistSourceThread.doWork(PlaylistSourceThread.java(Compiled
Code))
at
de.anneck.jcast.core.AbstractThread.doStart(AbstractThread.java:139)
at
de.anneck.jcast.core.AbstractThread.run(AbstractThread.java:116)
at java.lang.Thread.run(Thread.java:498)
--------------------
Possible Fix: public final void sendFileLocation() {
try {
m_mutex.lock();
Iterator listenerItr = m_listeners.iterator();
while (listenerItr.hasNext()) {
Object listener = listenerItr.next();
if(listener instanceof ITCP_XMMS_Listener) {
( (ITCP_XMMS_Listener)listener
).setPlayingFileLocation(m_fileLocationNow);
}
}
} catch ( final InterruptedException ie ) {
m_log.error( ie.getMessage() );
} finally {
m_mutex.unlock();
}
}