I have a very strange behavior in my application(a vlcj base music player). I use a ConcurrentHashMap to cache information about an artist.
If i call get on the HashMap the program seems to stop, but no exception is thrown. The "a" has been printed out, but the "b" has never been printed out.
In a separate thread i ran a deadlock check but it, no deadlock was detected, and I'm very sure that I don't use the Cache in another thread.
public void newMedia(MediaPlayer mediaPlayer) {
MusicListItem item = this.playListModel.getActiveItem();
System.out.println("a");
// cachedArtists = ConcurrentHashMap<String, Artist>
Artist artist = this.cachedArtists.get(item.getArtist());
System.out.println("b");
}
Did i found a JVM-Bug?
Here is my JVM: java version "1.7.0_40" Java(TM) SE Runtime Environment (build 1.7.0_40-b43) Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
try catchwith ae.printStackTrace()in the catch section. That'll tell you for certain if anything is happening. - christopherjavafile isn't in sync withclassfile or are you sure program exits? It would be good if you post some more content of your codeitem.getArtistetc.. - harsh