Setup
IntelliJ build version: 2021.2 IC-212.4746.92
OS: Windows 10
JDK: JetBrains s.r.o. 11.0.11
Plugin version: 3.56.0-2021.2
Describe the bug
I'm using the example repo of Spring Cloud Functions in azure and running the app using mvn from cmd works fine, running the app from the "run function" doesn't work properly. Seems like it doesn't package the spring stuff, while the azure functions alone work fine. If I run the function and go to the api url, gives me 500 error and an error of "cannot find class" or "nullpointerexception" etc... like this:
System.Private.CoreLib: Exception while executing function: Functions.hello. System.Private.CoreLib: Result: Failure Exception: NullPointerException: Cannot invoke "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.apply(Object)" because "function" is null Stack: java.lang.reflect.InvocationTargetException
To Reproduce
Just run the example repository from here and use the azure tool of intellij
Exception or Stack Trace
One of the errors I get:
System.Private.CoreLib: Exception while executing function: Functions.hello. System.Private.CoreLib: Result: Failure Exception: NullPointerException: Cannot invoke "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.apply(Object)" because "function" is null Stack: java.lang.reflect.InvocationTargetException
Setup
IntelliJ build version: 2021.2 IC-212.4746.92
OS: Windows 10
JDK: JetBrains s.r.o. 11.0.11
Plugin version: 3.56.0-2021.2
Describe the bug
I'm using the example repo of Spring Cloud Functions in azure and running the app using mvn from cmd works fine, running the app from the "run function" doesn't work properly. Seems like it doesn't package the spring stuff, while the azure functions alone work fine. If I run the function and go to the api url, gives me 500 error and an error of "cannot find class" or "nullpointerexception" etc... like this:
System.Private.CoreLib: Exception while executing function: Functions.hello. System.Private.CoreLib: Result: Failure Exception: NullPointerException: Cannot invoke "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.apply(Object)" because "function" is null Stack: java.lang.reflect.InvocationTargetExceptionTo Reproduce
Just run the example repository from here and use the azure tool of intellij
Exception or Stack Trace
One of the errors I get:
System.Private.CoreLib: Exception while executing function: Functions.hello. System.Private.CoreLib: Result: Failure Exception: NullPointerException: Cannot invoke "org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry$FunctionInvocationWrapper.apply(Object)" because "function" is null Stack: java.lang.reflect.InvocationTargetException