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.

ReaderListeners are not picked up

See original GitHub issue

Hi!

Good job with the package, it’s real cool 🕶 !😃

Small bug i’ve found while trying to implement ReaderListeners, please see details below:

Prerequisites: Have a class in the scanned resources package(s) which implements ReaderListener without any annotation on it.

Expected behavior: The class is picked up, instantiated, then acted upon accordingly to the documentation.

Actual behavior: The class is not picked up, nor called.

Workaround: The class is picked up when it’s annotated with@SwaggerDefinition.

Thanks for making this project, enjoy your day!😃 Reg, -Dan

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
seanadkinsoncommented, Apr 7, 2020

I had the same issue with dropwizard and swagger v3. Adding @OpenAPIDefinition to my class implementing ReaderListener did the trick.

0reactions
salilkumarjaincommented, Nov 3, 2020

Hi, I am also facing similar issue while working with a sample project downloaded from https://www.javainuse.com/spring/boot_swagger with just one API definition.

Have updated the following dependencies in pom.xml spring-boot-starter-parent:v2.3.4.RELEASE, springfox-swagger2:v2.9.2, springfox-swagger-ui:v2.9.2, swagger-jaxrs:v1.6.2

I have added on class which implements ReaderListener and annotated with @SwaggerDefinition Have implemented the beforeScan and afterScan methods by just putting a sysout. On running the application the sysouts never get printed

I tried with both @SwaggerDefinition and @OpenAPIDefinition but could not get it t work. Have also tried the following but it seems to be not working https://stackoverflow.com/questions/39856511/swagger-readerlistener-is-never-picked-up-during-scanning https://github.com/swagger-api/swagger-core/issues/1912

Please help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Listeners and Readers Generalize Their Experience ... - NCBI
The related probes were selected from common word association responses and dictionary definitions. These words were not used in the item's priming sentence...
Read more >
Event listeners not working? 3 key areas to troubleshoot
Are your event listeners not working as you'd expect? Here are 3 key areas to troubleshoot to help you get everything triggering as...
Read more >
Audience Awareness - English Composition 2
Knowing your audience—whether readers or listeners—will help you determine what information to include in a document or presentation, as well as how to ......
Read more >
We've spent two years studying readers' & listeners' needs of ...
Here's how we collected these needs: Our team at The Atlantic conducts survey and interview-based research with current, prospective, and former subscribers, as ......
Read more >
What Does the Bible Say About Reading Listeners?
A Psalm of David. The Lord is my shepherd; I shall not want. He makes me lie down in green pastures. He leads...
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