-
Notifications
You must be signed in to change notification settings - Fork 57
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
[BUG] Dependency Conflict Between Worker and Microsoft-Graph #423
Comments
Thank you so much for your message. Can you please share what did you do for "I fixed local env by modifying gson dependency in azure-functions-java-worker.jar"? Thank you so much |
I opened azure-functions-java-worker.jar and replaced gson class files with gson (2.8.6). |
Thank you so much, Which sku are you planning to use in the cloud? |
Is sku a service plan type ? |
Sorry for my delay, Unfortunately to upgrade GSON will need new release there is no ETA for the upgrade, but I was looking for options. As your on Standard S1, you can follow https://github.com/Azure/azure-functions-host/wiki/Deploying-the-Functions-runtime-as-a-private-site-extension By this way you can have your own jar upgraded. But this will require you for each release to update the host code as you will not be getting it automatically. Please let us if you have any questions |
Okay thank you @amamounelsayed, As a workaround there is a way to target custom worker in azure which solves my problem temporarily. Steps :
|
@sainath341 Thank you for the workaround. I will be closing this issue as we are tracking customizing the gson version in the below issue |
When using batch request from microsoft-graph sdk (for java) I am getting below error because of dependency conflict between function and java worker.
Exception: NoSuchMethodError: 'com.google.gson.JsonElement com.google.gson.JsonParser.parseString(java.lang.String)'
Investigative information
Followed this issue #381 and tried both the java version but got the same error.
Please provide the following:
Repro steps
Follow this example Simple batching example or use below code and deploy in azure.
Dependencies to include
I fixed local env by modifying gson dependency in azure-functions-java-worker.jar
Provide the steps required to reproduce the problem:
Just run the function
Expected behavior
Running the application successfully.
Actual behavior
Application crashed with NoSuchMethodError,
Known workarounds
Provide a description of any known workarounds.
Related information
Provide any related information
The text was updated successfully, but these errors were encountered: