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.

spring-di - WARN Failed to index org.osgi.annotation.bundle.Requirements

See original GitHub issue

Describe the bug

spring-di - WARN Failed to index org.osgi.annotation.bundle.Requirements

This wasn’t happening in previous Quarkus releases

mvn quarkus:dev
...
2022-11-11 15:04:25,550 WARN  [io.qua.arc.pro.BeanArchives] (build-9) Failed to index org.osgi.annotation.bundle.Requirements: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: DEV@2b4bac49
...

Expected behavior

No warning

Actual behavior

2022-11-11 14:57:43,349 WARN [io.qua.arc.pro.BeanArchives] (build-13) Failed to index org.osgi.annotation.bundle.Requirements: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: DEV@50a7bc6e

How to Reproduce?

  • generate app which is using spring-di
  • run mvn quarkus:dev
  • check the log

Output of uname -a or ver

macOS

Output of java -version

Java 11

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.14.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Ladicekcommented, Nov 15, 2022

Okay so my comment above is not correct: during bean archive index creation, only annotations directly present on classes are indexed. Meta-annotations are not.

Just to be clear - you’re talking about indexing additional bean classes coming from AdditionalBeanBuildItem, right?

Correct.

I agree that we could just index meta-annotations as well and prefill the BeanArchives.IndexWrapper with “known misses”.

Okay, @geoand expressed the same opinion in the PR, so I’ll do that.

1reaction
Ladicekcommented, Nov 14, 2022

I’ll take a look later today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"class file for org.osgi.annotation.bundle.Requirement ...
Quarkus javadoc warning when building with maven: "class file for org.osgi.annotation.bundle.Requirement$Resolution not found".
Read more >
Requirement (OSGi Annotation Release 7) - OSGi Docs
It is for use by tools to generate bundle manifests or otherwise process the a package. This annotation can be used to annotate...
Read more >
Hibernate Search 5.11.11.Final: Reference Guide
Hibernate Search addresses these shortcomings - it indexes your domain model with the help of a few annotations, takes care of database/index ......
Read more >
Jersey 2.37 User Guide - GitHub Pages
This chapter presents only required maven dependencies, more information can be ... org.glassfish.jersey.examples.osgi-http-service.bundle [303]: Unable to ...
Read more >
Missing annotations after bundle install in OSGi - Stack Overflow
As JAXB is part of the jdk the system bundle (OSGi framework) ... So if the annotations are not available then your code...
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