first test problem in velocypack parser for LocalDate

60 views
Skip to first unread message

jean safar

unread,
Mar 23, 2021, 12:24:08 PM3/23/21
to ArangoDB
Hi, 

Apologies in advance if I have missed a message on the topic (I did a search). 

I am running a first junit test on arango and I am getting an exception when getting a document with the key after I stored it. 

The message is: 

java.util.concurrent.ExecutionException: com.arangodb.ArangoDBException: com.arangodb.velocypack.exception.VPackParserException: java.lang.InstantiationException: java.time.LocalDate

The object stored is: 
{"id":"1","json":"json","actor":"toto","date":{"year":2021,"month":3,"day":23}}

The date field is of type LocalDate. ... 

it fails in the call: collection.getDocument(key, TestClass.class).get();

There is a setter and getting for that field. 

Thanks in advance-

jean safar

unread,
Mar 23, 2021, 1:40:06 PM3/23/21
to ArangoDB
I forgot to mention that I have in my dependencies the volicypack jdk8 module... 

Michele Rastelli

unread,
Mar 24, 2021, 4:38:03 AM3/24/21
to ArangoDB

jean safar

unread,
Mar 24, 2021, 5:22:05 AM3/24/21
to ArangoDB
 I was indeed just missing the registerModule directive!!
Thanks a lot for this...
Reply all
Reply to author
Forward
0 new messages