I'm using MongoDB Java Driver v3.2.2 and I use the following instruction to add a new String array field into an existing document:
myMongoCollection.updateOne(new Document("id", id), Updates.set("arrayField", Arrays.asList(new Document("strField", strValue))));
It creates the following exception:
org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class java.util.Arrays$ArrayList.
Am I doing a coding error or is it related to the Driver bug as suggested here (link)?
If it is related to the driver bug, any hint how I can easily get the latest not-yet-released version (3.3) where is has been fixed (ie. how can I easily create a JAR file, knowing that GIT is completely new to me)?
Many thanks, Tom