-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Reactive Couchbase microservice fails to start #11611
Comments
@mraible : Are you using some special branch? When I generate the project using the given JDL, I see the following in the logs. 🤔 Found the .jhipster/Blog.json configuration file, entity can be automatically generated! events.js:187 throw er; // Unhandled 'error' event ^ Error: The entity generator doesn't support reactive apps with databases of type neo4j at the moment at Environment.error (/home/sudharaka/IdeaProjects/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:284:40) at EntityGenerator.error (/home/sudharaka/IdeaProjects/generator-jhipster/generators/generator-base.js:1551:18) at EntityGenerator.validateReactiveCompatibility (/home/sudharaka/IdeaProjects/generator-jhipster/generators/entity/index.js:240:26) at Object.<anonymous> (/home/sudharaka/IdeaProjects/generator-jhipster/node_modules/yeoman-generator/lib/index.js:751:25) at /home/sudharaka/IdeaProjects/generator-jhipster/node_modules/run-async/index.js:25:25 at new Promise (<anonymous>) at /home/sudharaka/IdeaProjects/generator-jhipster/node_modules/run-async/index.js:24:19 at runLoop.add.once.once (/home/sudharaka/IdeaProjects/generator-jhipster/node_modules/yeoman-generator/lib/index.js:752:11) at processImmediate (internal/timers.js:439:21) Emitted 'error' event on EntityGenerator instance at: at Immediate.<anonymous> (/home/sudharaka/IdeaProjects/generator-jhipster/node_modules/yeoman-generator/lib/index.js:791:20) at processImmediate (internal/timers.js:439:21) |
@SudharakaP Yes, I'm using |
I guess it might be the same problem with neo4j and elasticsearch. Can you try without elastic? Gerrit checked and all repository beans are tried to be created with the elastic repository bean. Will keep you updated if I have some news. |
@mraible Just for your information it seems not to be fixed by the same workaround for elastic & neo. But nevertheless it seems like a problem with multiple spring data modules too. |
Removing elasticsearch makes the service start. Trying to find a workaround. |
Okay, I need some couchabse expertise. When I change e.g. EDIT: And now I see why the @EnableReactiveCouchbaseRepositories(
repositoryBaseClass = CustomReactiveN1qlCouchbaseRepository.class,
basePackages = "com.okta.developer.blog.repository",
includeFilters = @Filter(type = FilterType.ASSIGNABLE_TYPE, value = ReactiveN1qlCouchbaseRepository.class)) So it looks like oversight. I can provide a PR for that. Either extending the filter or making all entity repositories extend |
* use correct couchabse reactive repository base class closes #11611 * remove obsolete import * Enable couchbase entities in webflux tests * add missing commons codec dependency for couchbase * clean build.gradle and pom.xml from doubled codec dependency * fix delete of entities Co-authored-by: Matt Raible <matt.raible@okta.com>
Overview of the issue
I created a Couchbase microservice as part of the following JDL:
When I try to run the
blog
microservice, it fails:Motivation for or Use Case
You should be able to use Couchbase in a reactive microservice.
Reproduce the error
See JDL above.
Related issues
Suggest a Fix
JHipster Version(s)
master branch as of 10:33AM MDT on Tue, 21 April, 2020
Browsers and Operating System
The text was updated successfully, but these errors were encountered: