Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast exception when using $in in Mongojack 2.8 #163

Open
cberkeley opened this issue Nov 10, 2017 · 1 comment
Open

Cast exception when using $in in Mongojack 2.8 #163

cberkeley opened this issue Nov 10, 2017 · 1 comment

Comments

@cberkeley
Copy link

I'm having a similar issue:
Something like this where users is an array of Strings : DBQuery.in("users", Arrays.asList("user1", "user2"));
will throw this exception: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection

Any idea if I'm doing something wrong or if MongoJack is trying to cast a string to a collection? I'm using version 2.8.

@ractive
Copy link
Contributor

ractive commented Jan 24, 2018

This could be the same issue as in #143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants