Azure / Azure/azure-functions-core-tools
Value cannot be null. (Parameter 'provider'). Failed to run Azure Functions. Please checkout console output
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 13
Description
I am trying to run the example given [here](https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/getting-started-with-spring-cloud-function-in-azure). I have installed the per-requisites.
JDK-1.8
maven-3.6.3
Azure-function-core-tools - 2.7.2628 (Installed by giving command - npm install -g azure-functions-core-tools@3 )
When I run `mvn azure-functions:run` I get below error.
`[7/26/2020 2:29:48 AM] Starting worker process:C:\Program Files\Java\jdk1.8.0_231\bin\java -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar "C:\Users\shashankdi\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\java\azure-functions-java-worker.jar" --host 127.0.0.1 --port 50754 --workerId 35123fb0-6248-483c-996d-9aa2276a070a --requestId 46a18a34-2b99-45d3-b8c9-82cf7f496178 --grpcMaxMessageLength 2147483647`
`[7/26/2020 2:29:48 AM] C:\Program Files\Java\jdk1.8.0_231\bin\java process with Id=9264 started`
`[7/26/2020 2:29:49 AM] [INFO] {Application.main}: Azure Functions Java Worker version [ 1.5.3]`
`Value cannot be null. (Parameter 'provider')`
`Application is shutting down...
[7/26/2020 2:30:48 AM] Starting worker process failed
[7/26/2020 2:30:48 AM] The operation has timed out.
[7/26/2020 2:30:48 AM] Failed to start language worker process for runtime: (null). workerId:35123fb0-6248-483c-996d-9aa2276a070a
[7/26/2020 2:30:48 AM] Initialization cancellation requested by runtime.
[7/26/2020 2:30:48 AM] Shutting down language worker channels for runtime:java
[7/26/2020 2:30:48 AM] Stopping host...
[7/26/2020 2:30:48 AM] Host shutdown completed.
[DEBUG] Process exit value: 1
[ERROR]
[ERROR] Failed to run Azure Functions. Please checkout console output.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:41 min
[INFO] Finished at: 2020-07-26T08:00:51+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.5.0:run (default-cli) on project hello: Failed to run Azure Functions. Please checkout console output. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.5.0:run (default-cli) on project hello: Failed to run Azure Functions. Please checkout console output.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
`
Following are the details to reproduce.
Steps to reproduce the problem
I am running the example given in https://github.com/Azure-Samples/hello-spring-function-azure
Downloaded the example
Followed the steps in pre-requisite (jdk1.8, Install Node js and npm, Install az cli, Install azure core functions tool)
Ran the steps given
i. mvn clean test
ii. mvn package
iii. mvn azure-functions:run
And got above errors.
Additional Info.
node --version
v12.18.3
npm --version
6.14.6
npm search azure-functions-core-tools
NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS
azure-functions-core-tool | Azure Functions… | =ahmelsayed… | 2020-06-23 | 2.7.2628 |
s | | | | |
I have gone through the similar issues created earlier. But nothing applies to the issue I am facing. I have done no changes in the example provided and I am expecting it to run. What does it mean by provider value is null. Can somebody please guide me on what is missing here.
Full log with debug on is attached.
[azure-functions-run-full-debug-log.txt](https://github.com/Azure/azure-functions-core-tools/files/4977062/azure-functions-run-full-debug-log.txt)
Contributor guide
Research direction
Start with the hello-spring-function-azure example and reproduce the failure with `mvn azure-functions:run`. Read the attached full debug log alongside the Azure Functions Java worker startup output and the reported Core Tools version. Done means identifying the cause of the null provider error and documenting verified steps that let the example run successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, java, node.js
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100