I have a stable backend working on spring boot 2.2.4.RELEASE. We do all our queries using @Query in CrudRepositoy, pretty much like this https://www.screencast.com/t/EAloISHqEvr
We had some problems with larger documents, so I decided to try migrating to most recent spring boot 2.4.1.
This caused some dependency and configuration issues due to changes in 2.3.x, but I was able to fix those.
Now the backend is working however many queries fail to work. After lots of digging we determined that broken queries are the ones that contain custom SELECT statement and META().id AS _ID, META().cas AS _CAS or the ones that return primitive type classes (boolean, long…)
I tried several different work-arounds like using different return types, different Crud repositories including playing with ReactiveCrudRepository, all leading to the same null pointer exception error in the end.
I went through lots of spring boot and CouchBase documentation and haven’t found anything that could help me identify a simple solution for this. Can anyone please help with this issue? I’d still like to hope this is some simple thing I missed like configuration and not a result of some major breaking change in CB SDK.