1

after uploading the Spring Cloud Function to AWS Lambda and testing it, I get:

Class not found: example.Hello: java.lang.ClassNotFoundException
java.lang.ClassNotFoundException: example.Hello
 at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:348)

But I don ́t have any Hello class in my Packages and no String "Hello" is used in Project(I used the Eclipse Search).

How to find the root cause?

Ori Marko
59.3k26 gold badges157 silver badges259 bronze badges
asked Jul 13, 2020 at 9:23
0

1 Answer 1

1

You need to update Lambda's Function Code

In Lambda, under Function Code, where you specify Handler Info, instead of 'example.Hello', you need to replace that with your own Request Handler.

This link shows how you would do that in AWS Lambda Setup instruction 9. In this example, handler info is 'com.amazon.asksdk.helloworld.HelloWorldSpeechletRequestStreamHandler' and that's what you would be replacing instead of 'example.Hello'

answered Jul 13, 2020 at 9:32
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.