All artifacts make it to site/wwwroot correctly, but when function is triggered get the following error:
Result: Failure
Exception: IllegalStateException: No function defined with name=myFunction
Stack: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.microsoft.azure.functions.worker.broker.JavaMethodInvokeInfo.invoke(JavaMethodInvokeInfo.java:22)
at com.microsoft.azure.functions.worker.broker.JavaMethodExecutor.execute(JavaMethodExecutor.java:54)
at com.microsoft.azure.functions.worker.broker.JavaFunctionBroker.invokeMethod(JavaFunctionBroker.java:51)
at com.microsoft.azure.functions.worker.handler.InvocationRequestHandler.execute(InvocationRequestHandler.java:33)
at com.microsoft.azure.functions.worker.handler.InvocationRequestHandler.execute(InvocationRequestHandler.java:10)
at com.microsoft.azure.functions.worker.handler.MessageHandler.handle(MessageHandler.java:45)
at com.microsoft.azure.functions.worker.JavaWorkerClient$StreamingMessagePeer.lambda$onNext$0(JavaWorkerClient.java:92)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: No function defined with name=myFunction
at org.springframework.cloud.function.adapter.azure.AzureSpringFunctionInitializer.lookup(AzureSpringFunctionInitializer.java:174)
at org.springframework.cloud.function.adapter.azure.AzureSpringBootRequestHandler.handleRequest(AzureSpringBootRequestHandler.java:54)
at josh.phision.MyAzureSpringBootHandler.run(MyAzureSpringBootHandler.java:50)
... 16 more
`
Deploying via azure-functions-maven-plugin works as expected.
Noticed in the Invocation Details that the working azure-functions-maven-plugin deploy logs a message: "Initialized context: catalog=org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration$BeanFactoryFunctionCatalog@59242e70"
Whereas the Local Git deployed function app logs: "Initialized context: catalog=null"
All artifacts make it to site/wwwroot correctly, but when function is triggered get the following error:
`
Deploying via azure-functions-maven-plugin works as expected.
Noticed in the Invocation Details that the working azure-functions-maven-plugin deploy logs a message: "Initialized context: catalog=org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration$BeanFactoryFunctionCatalog@59242e70"
Whereas the Local Git deployed function app logs: "Initialized context: catalog=null"