question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MongoClientName annotation class not available when using camel-quarkus-mongodb extension

See original GitHub issue

Describe the issue @io.quarkus.mongodb.runtime.MongoClientName -annotation class not available when using camel-quarkus-mongodb extension. Annotation works with quarkus-mongodb-client but not if both extensions are present.

To Reproduce Add mongo extension and set quarkus.mongodb.users.connection-string in application.properties

Try to inject MongoClient into any bean:

@Inject
@MongoClientName("users")
MongoClient mongoClient1;

Observer java.lang.NullPointerException: Annotation class not available -error

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lburgazzolicommented, Sep 1, 2020

@squakez please add references to the issues on quarkus otherwise it is not easy to understand what’s going on here.

0reactions
squakezcommented, Sep 1, 2020

As soon as we fix the issue in the quarkus extension mentioned above we will be able to introduce the concept of a “named” connection in our extension. I am also trying to see if we can use reactive clients in order to be fully compliant with all options available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the MongoDB Client - Quarkus
MyVariable class is not known to GraalVM, the remedy is to add the @RegisterForReflection annotation to your MyVariable class . More details about...
Read more >
Camel Extensions for Quarkus Reference Red Hat Integration ...
The quarkus-amazon-lambda extension allows you to use Quarkus to build your AWS Lambdas, whereas Camel component manages (deploy, undeploy, …​) existing ...
Read more >
Class 'MongoDB\Client' not found, mongodb extension installed
i think i have properly installed MongoDB extension (Copied php_mongodb.dll to ext folder and updated php.ini with extension=php_mongodb.dll). The following ...
Read more >
Home of Quarkus Cheat-Sheet - GitHub Pages
Quarkus comes with extensions to integrate with some libraries such as JSON-B, ... If not provided, attribute is determined by class name (ie ......
Read more >
Spring Data MongoDB - Reference Documentation
You can find a working example of using the BOMs in our Spring Data ... If you do not want to extend Spring...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found