### 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_download_url(self) -> str:
        arch = get_arch()
        arch = "x86_64" if arch == "amd64" else arch
        return LAMBDA_RUNTIME_INIT_URL.format(version=self.version, arch=arch)
    def _install(self, target: InstallTarget) -> None:
        super()._install(target)
        install_location = self.get_executable_path()
        st = os.stat(install_location)
        os.chmod(install_location, mode=st.st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
class AWSLambdaGoRuntimePackage(Package):
    def __init__(self, default_version: str = GO_RUNTIME_VERSION):
        super().__init__(name="AwsLambdaGo", default_version=default_version)
    def get_versions(self) -> List[str]:
        return [GO_RUNTIME_VERSION]
    def _get_installer(self, version: str) -> PackageInstaller:
        return AWSLambdaGoRuntimePackageInstaller(name="awslamba-go-runtime", version=version)
class AWSLambdaGoRuntimePackageInstaller(ArchiveDownloadAndExtractInstaller):
    def _get_download_url(self) -> str:
        system = platform.system().lower()
        arch = get_arch()
        if system not in ["linux"]:
            raise SystemNotSupportedException(f"Unsupported os {system} for awslambda-go-runtime")
        if arch not in ["amd64", "arm64"]:
            raise SystemNotSupportedException(f"Unsupported arch {arch} for awslambda-go-runtime")
        return GO_RUNTIME_DOWNLOAD_URL_TEMPLATE.format(
            version=GO_RUNTIME_VERSION,
            os=system,
            arch=arch,
        )