Questions tagged [jandex]

16 questions
3
votes
0 answers

Quarkus Gradle multimodule build and Jandex

I am migrating a Java EE project to Quarkus, but are having problems with the Quarkus build and jandex I have created a submodule for Quarkus similar to: apply plugin: 'io.quarkus' dependencies { implementation project(':core') } and my core…
2
votes
1 answer

CDI with Weld in Java SE, jakarta namespace, NoSuchMethodError

For a trivial app using CDI in Java SE with jakarta namespace I can not get rid of this NoSuchMethodError during SeContainerInitializer.newInstance().initialize(): Caused by: java.lang.NoSuchMethodError: 'java.util.Map…
r-uu
  • 423
  • 1
  • 4
  • 18
2
votes
2 answers

Quarkus throws org.jboss.jandex.UnsupportedVersion: Version: 10 during tests

We have some Quarkus service that depends on a module that has a Jandex index in it. Now when we run a test that has @QuarkusTest annotation in it we get the error: org.jboss.jandex.UnsupportedVersion: Version: 10 We are using Quarkus 2.2.1.Final…
gkephorus
  • 1,232
  • 18
  • 31
1
vote
2 answers

Open Liberty application server and jandex version

I want to improve the startup time of my Open Liberty application using Jandex, as described in https://www.ibm.com/support/pages/node/745421 and…
stefan.m
  • 1,912
  • 4
  • 20
  • 36
1
vote
1 answer

Multiple jandex maven plugin (JBoss vs SmallRye)

I use Weld on a Java SE application, and I was wondering if generate the Jandex index at build with a plugin will improve the startup. For now, I didn't notice a performance improvement. But i found 2 plugins for generating the…
iriiko
  • 43
  • 4
1
vote
2 answers

Build error - jandex index not found for java.time.OffsetDateTime

I have a multi-module Maven project that uses Quarkus and Kogito, with MongoDb persistence. The module with the Kogito process definition is using beans from another module. One of the beans has a property of type java.time.OffsetDateTime
1
vote
0 answers

quarkus-maven-plugin reports: [WARNING] [io.quarkus.arc.processor.BeanArchives] Failed to index

I'm trying to setup a legacy (jboss-eap) project on quarkus I cannot find a maven dependency to CXF but I know its a "provided" dependency in one of my common-libs since CXF is offered by JBOSS. Now I run into a warning during build: INFO] ---…
Sjaak
  • 3,602
  • 17
  • 29
0
votes
1 answer

Warning: Unable to register kotlin.Lazy for reflection using Quarkus

I have the following data class in my Kotlin code that uses Quarkus as a server side framework. data class Location( val id: String, val serviceTimeInMinutes: Long, val openingTimes: List, ) { val sortedOpeningTimes:…
greyhairredbear
  • 624
  • 3
  • 10
  • 27
0
votes
1 answer

Can I get Helidon 2.x to use the latest Jandex versions

From https://github.com/smallrye/jandex/issues/300 https://github.com/smallrye/jandex/issues/301 I am trying to clean up a messy Gradle-based monorepo while upgrading from Java 8 to Java 11/17. I am not a Jandex or Helidon expert, but I am slowly…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
0
votes
0 answers

In Jandex 3+, how do I distinguish between type use annotations on same-typed type arguments?

Suppose I have: public class A {} public class B extends A<@C String, @C String> {} @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE_USE) public @interface C {} Jandex, via its TypeTarget interface, and its usage() method, can…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
0
votes
1 answer

Maven jandex plugin does not generate index for local custom maven repositories (sometimes)

I have a multi module maven project wie quarkus modules and some custom libraries which are local maven repositories (so they can be used by the other maven projects/modules). However, so that local maven repositories are recognizable und usable by…
Furious Gamer
  • 359
  • 1
  • 3
  • 16
0
votes
1 answer

Problem with the upgrade of quarkus app from the 2.6.3.Final (last working version) to the 2.8.2.Final version - maybe external module beans' lookup

Situation: I have a Quarkus application which uses another quarkus application's beans (added as a maven dependency) for RESTEASY calls to some HTTP rest service. After updating Quarkus 2.6.3.Final to 2.8.2.Final, I am getting following errors when…
mettw
  • 439
  • 5
  • 10
0
votes
1 answer

Quarkus + Kogito build error: java.lang.IllegalStateException: Cannot find class info in jandex index for java.time.LocalDateTime

I have a multi-module Maven project that uses Quarkus and Kogito, with MongoDb persistence. The module with the Kogito process definition is using beans from another module. One of the beans has a property of type java.time.LocalDateTime. public…
Matei Florescu
  • 1,155
  • 11
  • 23
0
votes
0 answers

Quarkus: Using Gradle Jandex Plugin vs beans.xml descriptor to discover beans

We have a large multi-module legacy project that we migrated to Quarkus. So far we used Jandex in all modules that define beans. Since Gradle 7.3.3 we have the log full of warnings complaining about implicit dependencies. If I get it right, they are…
René
  • 71
  • 7
0
votes
1 answer

quarkus - javax.persistence.AttributeConverter not in jandex index

I have a problem that seems to be very similar to How to create a Jandex index in Quarkus for classes in a external module and I carefully followed all suggested steps (jandex maven plugin, empty beans.xml, indexing other dependencies). However…
r-uu
  • 423
  • 1
  • 4
  • 18
1
2