Java MultiStreamWS example gets exception


When I run the MultiStreamWS example from datasift-java I get a ConcurrentModificationException. This happens with the downloaded 2.2.0 version and 2.2.1 built from source. The MultiStream example does work.


Creating user…
Building hash list…
Getting the consumer…

Subscribing to “Python”, 89251290332bb42c0e6a647f8c3f6cb6…

Subscribing to “PHP”, b95a09322b49f59881565bd46487dd81…

Exception in thread “Thread-1” java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(
at java.util.ArrayList$
at org.datasift.streamconsumer.WSThread$1.onOpen(Unknown Source)
at Source)
at Source)


This has now been resolved. Please see Github Issue #45 for more details. You should now be able to checkout the latest version (v.2.2.2)