Skip to content

FUNCTIONS_WORKER_JAVA_LOAD_APP_LIBS seems no effect on local run (works on functions) #425

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

Closed
anuchandy opened this issue Mar 23, 2021 · 5 comments

Comments

@anuchandy
Copy link
Member

FUNCTIONS_WORKER_JAVA_LOAD_APP_LIBS works fine on functions but not for local development:

The following sample can be used to reproduce this issue:

hello-spring-function-azure.zip

run locally - "mvn azure-functions:run", and hit the endpoint, worker fails with dependency conflicts.

Exception: NoSuchMethodError: io.netty.handler.ssl.SslProvider.isAlpnSupported(Lio/netty/handler/ssl/SslProvider;)Z
Stack: java.lang.reflect.InvocationTargetException
[2021-03-10T22:31:22.716Z] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2021-03-10T22:31:22.716Z] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2021-03-10T22:31:22.716Z] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2021-03-10T22:31:22.716Z] at java.lang.reflect.Method.invoke(Method.java:498)
[2021-03-10T22:31:22.716Z] at com.microsoft.azure.functions.worker.broker.JavaMethodInvokeInfo.invoke(JavaMethodInvokeInfo.java:22)

@amamounelsayed
Copy link
Contributor

Can you please share your core tools versions? And your java worker version.

@anuchandy
Copy link
Member Author

sure, here is what copied from the log output of "mvn azure-functions:run"

Azure Functions Core Tools (3.0.2534 Commit hash: bc1e9efa8fa78dd1a138dd1ac1ebef97aac8d78e)
Function Runtime Version: 3.0.13353.0
Azure Functions Java Worker version [ 1.5.2-SNAPSHOT]

@amamounelsayed
Copy link
Contributor

amamounelsayed commented Mar 23, 2021

Thank your for your message, You need to upgrade to the newer core tools
#381

@saikirangit
Copy link

@anuchandy @amamounelsayed Thank you so much. Upgrading to newer core tools resolved the issue.

@amamounelsayed
Copy link
Contributor

Glad to hear, please let us know if you have any questions

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

No branches or pull requests

3 participants