### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

The following request handler:

```java
public class LegalDocPublisher implements RequestHandler<SQSEvent, Void> {
    @Override
    public Void handleRequest(final SQSEvent event, final Context context) {
        return null;
    }
}
```

causes 

```
2022-10-10T06:38:23.362  INFO --- [  Thread-244] l.s.a.lambda_executors     : Error executing Lambda "arn:aws:lambda:us-east-2:000000000000:function:LegalDocPublisher": InvocationException: Lambda process returned error status code: 1. Result: . Output:
Exception in thread "main" java.lang.IllegalArgumentException: argument type mismatch
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at cloud.localstack.LambdaExecutor.main(LambdaExecutor.java:117)   File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 1423, in do_execute
    execute_result = lambda_function_callable(inv_context.event, context)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 579, in execute
    result = lambda_executors.EXECUTOR_LOCAL.execute_java_lambda(
  File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 1532, in execute_java_lambda
    invocation_result = self._execute_in_custom_runtime(cmd, lambda_function=lambda_function)
  File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 1366, in _execute_in_custom_runtime
    raise InvocationException(
```

when execution is triggered.

This works fine until LocalStack 1.0.4.

### Expected Behavior

No exceptions.

### How are you starting LocalStack?

Custom (please describe below)

### Steps To Reproduce

LocalStack is started as part of integration tests run by Maven, via `docker-maven-plugin`.

### Environment

```markdown
- OS: 20.04
- LocalStack: 1.2.0
```


### Anything else?

AWS SDK version: 1.12.271
def _get_install_marker_path(self, install_dir: str) -> str:
        return os.path.join(install_dir, "aws-lambda-mock")
    def _install(self, target: InstallTarget) -> None:
        super()._install(target)
        install_dir = self._get_install_dir(target)
        install_location = self._get_install_marker_path(install_dir)
        st = os.stat(install_location)
        os.chmod(install_location, st.st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
        go_lambda_mockserver = os.path.join(install_dir, "mockserver")
        st = os.stat(go_lambda_mockserver)
        os.chmod(go_lambda_mockserver, st.st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
LOCALSTACK_MAVEN_VERSION = "0.2.21"
MAVEN_REPO_URL = "https://repo1.maven.org/maven2"
URL_LOCALSTACK_FAT_JAR = (
    "{mvn_repo}/cloud/localstack/localstack-utils/{ver}/localstack-utils-{ver}-fat.jar"
)
class AWSLambdaJavaPackage(Package):
    def __init__(self):
        super().__init__("LambdaJavaLibs", "0.2.21")
    def get_versions(self) -> List[str]:
        return ["0.2.21"]
    def _get_installer(self, version: str) -> PackageInstaller:
        return AWSLambdaJavaPackageInstaller("lambda-java-libs", version)
class AWSLambdaJavaPackageInstaller(DownloadInstaller):
    def _get_download_url(self) -> str:
        return URL_LOCALSTACK_FAT_JAR.format(ver=self.version, mvn_repo=MAVEN_REPO_URL)
awslambda_runtime_package = AWSLambdaRuntimePackage()
awslambda_go_runtime_package = AWSLambdaGoRuntimePackage()
lambda_java_libs_package = AWSLambdaJavaPackage()