You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you (like me) forget to add -parameters to your jbang project then quarkus langchain4j shows this error:
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at io.quarkus.qute.TemplateInstanceBase.data(TemplateInstanceBase.java:45)
at io.quarkiverse.langchain4j.QuarkusPromptTemplateFactory$QuteTemplate.render(QuarkusPromptTemplateFactory.java:67)
at dev.langchain4j.model.input.PromptTemplate.apply(PromptTemplate.java:102)
at io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodImplementationSupport.prepareSystemMessage(AiServiceMethodImplementationSupport.java:502)
at io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodImplementationSupport.doImplement(AiServiceMethodImplementationSupport.java:140)
at io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodImplementationSupport.implement(AiServiceMethodImplementationSupport.java:122)
would be great if it would provide hint that the reason for NPE is that parameters are missing names and should add -parameter to the compilation.
The text was updated successfully, but these errors were encountered:
Yeah, it makes sense to see what we can better on the Quarkus LangChain4j side, but doesn't it also make sense to have JBang invoke javac with -parameters by default?
Actually, we do have a warning message, it should be:
The application has been compiled without the '-parameters' being set flag on javac. Make sure your build tool is configured to pass this flag to javac, otherwise Quarkus LangChain4j is unlikely to work properly without it.
if you (like me) forget to add
-parameters
to your jbang project then quarkus langchain4j shows this error:would be great if it would provide hint that the reason for NPE is that parameters are missing names and should add
-parameter
to the compilation.The text was updated successfully, but these errors were encountered: