-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
"docStore has type OBJECT rather than LIST" error when Elastic configuration is in application.conf #104
Comments
I managed to make it work thanks to the ServerConfigStartup, by adding :
|
Problem is here:
This is just accepting/parsing String and List configurations. |
To use DocStore, You have to put these lines on |
I could, but I would have to put all ebean configuration in this file (I tried to mix configuration between the |
I see, it make sense, something like that (see below) could be a good approach to handle configuration of all Ebean functionalities. application.conf
|
...of course it doesn't work. It's an example of what play-ebean configuration could looks like in the future. I just said "could be a good approach to handle configuration of all Ebean functionalities.". |
My bad ! That would be perfect |
I can propose a PR this weekend or next weekend... I don't promise all configuration keys will be implemented, but the docstore related keys should working. |
I have rewritted so many files, not sure it will be merged in this project. So we are published our version under our organization. in your
And use this
|
Great ! Thank you so much, I'll try this monday ! |
@cpoissonnier I tried this plugin Anyone else who is able to run this successfully...please share the config format. |
@ethereal-sandeep have you upgraded your
@ethereal-sandeep Could copy / past your application.conf (gist) ? have you try to clean ivy cache ? |
I had no time to try it yet, sorry :/ |
@0xBAADF00D Since i was using 3.0.0 , Firstly i fixed all the migrations then for each iteration I tried cleaning first and then recompile -> it failed with the same error
So earlier i had my 'application.conf' as:
What i wanted was something like below in 'application.conf':
What i understood from your config, i did this to 'application.conf':
still it failed with the same error. ** Please let me know if i am applying it incorrectly. |
Your keys are not corrects. According to my example, "flat keys" follows this pattern By example:
|
Unfortunatly, it doesn't work for me as well, but not for the same reasons :
|
Note that with version 9.1.1 Ebean moved to Java 8 and in release 9.3.1 made the API changes to move to use Java8 Consumer and Predicate: #891 Refactor: Replace Ebean's QueryEachConsumer with java.util.function.Consumer To use QueryEachConsumer you need to use a version prior to 9.3.1. |
Said another way, the exception above suggests to me that the version of "ebean-elastic" used is not compatible with the version of "ebean". Check that ebean-elastic 1.5.1 is being used (and not an earlier version). |
Actually, If Ebean 9.3.1 is not suitable for you, as mentioned on the README.md, you can override Ebean version with all versions between 9.1.1 and 9.5.1. The next scheduled version of |
Weirdly,the version of ebean used in my project was 8.2.3. Overriding ebean version (9.3.1) and upgrading ebean-elastic to 1.5.1 resolves the issue. Thank you so much for your help ! |
@cpoissonnier can you please share (gist) of your application.conf and build.sbt and plugin.sbt.... |
Guys, i know this must have started irritating you all but bear with me for a while. @cpoissonnier i added the settings and also clears ivy2/cache and tried a fresh compile..got this in return.
my application.conf
|
@ethereal-sandeep I think you don't use our plugin, cause you have an error on the file Are you sure |
my plugins.sbt
|
@ethereal-sandeep You don't use the right version. 16.11 don't allow configuration of document store via |
@0xBAADF00D Seriously thats was the only thing ... My Bad .Let me check |
@0xBAADF00D, @cpoissonnier Thanks man!! it finally compiled . but strangely gist of it is mentioned below...
|
Seems not related to
You can read more at https://www.playframework.com/documentation/2.5.x/JavaDatabase and https://www.playframework.com/documentation/2.5.x/SettingsLogger |
@0xBAADF00D okay, thanks !! |
Is this issue gonna be resolved in the 4.0.0 version? |
Which release is this going to be in? |
Hi,
When I add these lines to
application.conf
:I have the following error :
play/conf/application.conf: 26: docStore has type OBJECT rather than LIST
The text was updated successfully, but these errors were encountered: