Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Unable to invoke oracle cloud function

User_5S0B7Nov 30 2020

I am able to deploy my Spring boot application but unable to invoke it.
Error :- Error invoking function. status: 502 message: error receiving function response
Log message : - "Class ' com.xxx.applicationservice.MainApplication' not found in function jar. It's likely that the 'cmd' entry in func.yaml is incorrect.",
Yaml File :- schema_version: 20180708
name: function
version: 0.0.20
runtime: java
build_image: fnproject/fn-java-fdk-build:jdk11-1.0.116
run_image: fnproject/fn-java-fdk:jre11-1.0.116
cmd: com.xxx.applicationservice.MainApplication::main
Application Hierarchy : - com -> xxx -> applicationserivce->MainApplication
Main Class :-
package com.xxx.applicationservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MainApplication {
public static void main(String[] args) { SpringApplication.run(MainApplication.class, args);
}
}

Comments
Post Details
Added on Nov 30 2020
1 comment
114 views