Closed
Description
🐛 Bug Report
Affected Languages
-
TypeScript
orJavascript
-
Python
-
Java
- .NET (
C#
,F#
, ...)
General Information
- JSII Version: N/A
- Platform: Windows 10 1809
Using AWS CDK 1.11.
What is the problem?
Getting "Unhandled Exception: Amazon.JSII.Runtime.JsiiException: System.Reflection.TargetParameterCountException: Parameter count mismatch" exception with this line uncommented.
Reported as an spinnoff of the aws/aws-cdk#4336
This is probably the same problem causing aws/aws-cdk#4151.
Verbose Log
cdk synth
Unhandled Exception: Amazon.JSII.Runtime.JsiiException: System.Reflection.TargetParameterCountException: Parameter count mismatch.
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Amazon.JSII.Runtime.CallbackExtensions.InvokeMethod(InvokeRequest request, IReferenceMap referenceMap)
at Amazon.JSII.Runtime.CallbackExtensions.InvokeCallback(Callback callback, IReferenceMap referenceMap, IFrameworkToJsiiConverter converter, String& error)
at Amazon.JSII.Runtime.Services.Client.TryDeserialize[TResponse](String responseJson)
at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
at Amazon.JSII.Runtime.Services.Client.TryDeserialize[TResponse](String responseJson)
at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
at Amazon.JSII.Runtime.Deputy.DeputyBase..ctor(DeputyProps props)
at CicdInfraAsCode.CicdInfraAsCodeStack.CreateCiCdPipeline(Repository dockerRepo, Repository gitRepo) in C:\!Projects\AWS\Samples\Unicorn-Store\infra-as-code\CicdInfraAsCode\src\CicdInfraAsCodeStack.cs:line 44
at CicdInfraAsCode.CicdInfraAsCodeStack..ctor(Construct parent, String id, UnicornStoreCiCdStackProps settings) in C:\!Projects\AWS\Samples\Unicorn-Store\infra-as-code\CicdInfraAsCode\src\CicdInfraAsCodeStack.cs:line 26
at CicdInfraAsCode.Program.Main(String[] args) in C:\!Projects\AWS\Samples\Unicorn-Store\infra-as-code\CicdInfraAsCode\src\Program.cs:line 15
Subprocess exited with error 3762504530