AWS Lambda-ClassNotFoundException

时间:2018-10-16 22:06:51

标签: java amazon-web-services maven aws-lambda

因此,我已经看了很多其他的帖子,几乎都遇到了同样的问题,但是所有的解决方案都不适用于我,我不确定我到底在哪里出错...

这是错误: https://gyazo.com/33c943b348e428367920f7922900f947

这是我正在尝试访问的类:         公共类AndrewTechSpeechletRequestStream扩展了SpeechletRequestStreamHandler {

#!/bin/bash

if [ "$1" == "kwarg1" ]
then
    python script1.py
elif [ "$1" == "kwarg2" ]
then
    python name2000.py
fi

我正在使用Maven,所以这是我的pom.xml

private static final Set<String> supportedApplicationIds;
static {
    AndrewTechBot.run();
    /*
     * This Id can be found on https://developer.amazon.com/edw/home.html#/ "Edit" the relevant
     * Alexa Skill and put the relevant Application Ids in this Set.
     */
    supportedApplicationIds = new HashSet<>();
    supportedApplicationIds.add("uniquecode...");
    // supportedApplicationIds.add("[unique-value-here]");
}

public AndrewTechSpeechletRequestStream() {
    super(new AndrewTechSpeechlet(), supportedApplicationIds);
}

}

要构建项目,我先使用clean,然后打包,然后将Im上传到我的lambda函数中,单击“保存”,然后进行测试,好吧……那就是弹出的错误。有人可以帮忙吗?

0 个答案:

没有答案