Questions tagged [spring-cloud-function]

Use this tag for questions related to the Spring Cloud Function project

Spring Cloud Function is a project in a Spring Cloud portfolio of projects with the following high-level goals:

  • Promote the implementation of business logic via java.util.function.(Supplier, Function, Consumer)
  • Provide necessary deployment and runtime abstractions to ensure the same code can run in multiple environments (e.g., a web endpoint, a stream processor, or a task).
  • Support a uniform programming model across serverless providers, as well as the ability to run standalone (locally or in a PaaS).
  • Enable Spring Boot features (auto-configuration, dependency injection, metrics) on serverless providers.

Resources

See Also

255 questions
0
votes
1 answer

During lambda aws test, a class not found exception is thrown

Serverless Functions with Spring Cloud Function is the Baeldung article I was using. I changed their recommended aws-adapter dependency because importing in maven failed, so I found the version 3.0.1.RELEASE AND used that instead. All errors gone, I…
0
votes
2 answers

The function runtime is unable to start - Could not load type 'Microsoft.Azure.ServiceBus.Management.ManagementClient'

I deployed a new version of my Azure Functions based on Java. Now there is following error toast in the Azure portal under my Azure Function resource in a specific function: Error: The function runtime is unable to start.…
Phipsll
  • 81
  • 1
  • 2
  • 9
0
votes
1 answer

Kafkalistener as serverless or functional

We have a Kafka listener consuming messages from topic. We want to make this bean as functional so we can spin up multiple instances of function using server less architecture when there is heavy load. Can anyone show me a right direction
0
votes
1 answer

Spring Cloud Stream/Function: Kotlin lambdas without the use of Java Function/BiFunction

I have a Kafka stream processing application written using Spring Boot, using spring-cloud-function and spring-cloud-stream-binder-kafka-streams. The method which processes a couple of streams is annotated with @Bean, so that it should be picked up…
0
votes
0 answers

Maven package of SpringCloud functions app not working

I've got a SpringCloud functions app built and my junit of it with azure adapters in seems to work in eclipse. So I'm ready to deploy. But this thing comes with a ton of dependencies, which is concerning for a serverless function I think. Given how…
0
votes
2 answers

NullPointerException with SpringCloud Azure Adapter in Junit test

I'm getting a rather unhelpful NullPointerException from my junit test of my Azure Functions test service with SpringCloud. I am a complete novice at this, so I apologize if this seems obvious. The stack trace: java.lang.NullPointerException at…
Entropy
  • 1,219
  • 6
  • 21
  • 45
0
votes
1 answer

Getting error in SpringCloud functions with azure junit test

I'm just trying to set up my springcloud with azure functions test to play with the environment. When I ran as just a SpringBoot/Cloud app it worked fine. When I add the Azure adapter, it had me add a class with a bunch of annotations like…
Entropy
  • 1,219
  • 6
  • 21
  • 45
0
votes
1 answer

How to solve Null pointer exception while running a Spring Cloud Function based AWS Lambda

I am trying to upload a simple spring boot application into AWS lambda, but every time i am getting Null pointer exception while calling it from Lambda,Below i am posting the code DemoApplication package com.example.demo; import…
0
votes
0 answers

Azure storage trigger

I'm looking at the documentation for the @BlobTrigger and see that the content is being passed in as a byte array in the examples. Is it possible to have the spring FileStorageResource supplied? I can't find anything online indicating if this is…
user3465651
  • 706
  • 1
  • 4
  • 22
0
votes
0 answers

Extending SpringBootStreamHandler for SpringCloudFunction

I'm working in a project using Spring Cloud Function for AWS Lambda. I noticed that there are few examples on extending SpringBootRequestHandler for handling specific type of input and output. But, my project has a requirement where the input json…
mengjiann
  • 275
  • 3
  • 12
0
votes
0 answers

Spring Cloud Function input type lost when request has no body

I've written a function using Spring Cloud Function that has an optional request body. Everything works when the body has content but, if there's no content, the input to the function becomes LinkedMultiValueMap and the response object is wrapped…
0
votes
1 answer

Spring Cloud Function: How to map a Supplier to Azure function

I'm trying to map a Supplier Bean to an Azure function using Spring Cloud Function 2.0, but I need to extend AzureSpringBootRequestHandler, which seems to only support functions with an input parameter and a return value. class…
Hagai Cibulski
  • 4,421
  • 3
  • 20
  • 23
0
votes
1 answer

Spring Cloud Function expects Flux instead of String, when deploying on Azure Functions

I'm currently looking into Spring Cloud Function and its possibilities to deploy one function on different cloud environments (AWS Lambda and Azure Functions). My function looks like this (of course very simplified): @Component public class…
-1
votes
1 answer

Build failed: could not resolve source: googleapi: Error 403: Unknown service account showing up in error message

Build failed: could not resolve source: googleapi: Error 403: 909263763911@cloudbuild.gserviceaccount.com does not have storage.objects.get access to the Google Cloud Storage object., forbidden com.google.net.rpc3.client.RpcClientException:
-1
votes
1 answer

JOB to Dataflow using function

Parameter google function eu quero passar parameter para query template file: "steps":[ { "kind":"ParallelRead", "name":"s1", "properties":{ "bigquery_export_format":"FORMAT_AVRO", …
1 2 3
16
17