Skip to content
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

quarkus-langchain4j v0.20.3 fails to start #967

Closed
andreadimaio opened this issue Oct 2, 2024 · 6 comments
Closed

quarkus-langchain4j v0.20.3 fails to start #967

andreadimaio opened this issue Oct 2, 2024 · 6 comments

Comments

@andreadimaio
Copy link
Collaborator

andreadimaio commented Oct 2, 2024

When I try to start the application I have this error:

java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkiverse.langchain4j.deployment.devui.OpenWebUIDevUIProcessor#registerOpenWebUiCard threw an exception: java.lang.NoSuchMethodError: 'void io.quarkus.deployment.annotations.BuildProducer.produce(java.util.Collection)'
        at io.quarkiverse.langchain4j.deployment.devui.OpenWebUIDevUIProcessor.registerOpenWebUiCard(OpenWebUIDevUIProcessor.java:169)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
        at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
        at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
        at java.base/java.lang.Thread.run(Thread.java:1583)
        at org.jboss.threads.JBossThread.run(JBossThread.java:483)

Perhaps the line OpenWebUIDevUIProcessor.java:169 should be:

buildTimeActions.forEach(buildTimeActionProducer::produce);
@geoand
Copy link
Collaborator

geoand commented Oct 2, 2024

cc @phillip-kruger @jmartisk

@jmartisk
Copy link
Collaborator

jmartisk commented Oct 3, 2024

What Quarkus are you using? We now started requiring 3.15+. A NoSuchMethodError sounds like you're using an older version

@andreadimaio
Copy link
Collaborator Author

What Quarkus are you using? We now started requiring 3.15+. A NoSuchMethodError sounds like you're using an older version

Moved project to latest version of quarkus and everything works now. Thank you.

@geoand
Copy link
Collaborator

geoand commented Oct 3, 2024

👍🏽

@jmartisk
Copy link
Collaborator

jmartisk commented Oct 3, 2024

Yeah maybe we could add a build step that checks the Quarkus version and throws an error early in this case

@jmartisk
Copy link
Collaborator

jmartisk commented Oct 3, 2024

I've reported #971 for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants