Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-eks] Java: could not find symbol #1969

Closed
rix0rrr opened this issue Mar 7, 2019 · 0 comments · Fixed by #1970
Closed

[aws-eks] Java: could not find symbol #1969

rix0rrr opened this issue Mar 7, 2019 · 0 comments · Fixed by #1970
Assignees
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. language/java Related to Java bindings

Comments

@rix0rrr
Copy link
Contributor

rix0rrr commented Mar 7, 2019

Reported on Gitter:

int n = 3;
int minsize = 1;
int maxsize = 3;

InstanceType it = new InstanceType("m3.xlarge");
VpcNetwork vpcc = new VpcNetwork(this, "VPCC", VpcNetworkProps.builder()
               .build());

AddWorkerNodesOptions workernodeoptions = new AddWorkerNodesOptions.Builder()
               .withAssociatePublicIpAddress(true)
               .withDesiredCapacity(n)
               .withMinCapacity(minsize)
               .withMaxCapacity(maxsize)
               .withInstanceType(it)
               .build();

Cluster cl = new Cluster(this, "EKS", ClusterProps.builder()
               .withVpc((IVpcNetwork) vpcc)
                   .build());

cl.addCapacity("AC", workernodeoptions);

Error:

Exception in thread "main" software.amazon.jsii.JsiiException: Could not find symbol @aws-cdk/aws-eks.NodeType
Error: Could not find symbol @aws-cdk/aws-eks.NodeType
    at t.Kernel._findSymbol (/private/var/folders/rl/gyf_2slx0c73w8r6vphqz1r40000gn/T/jsii-java-runtime2444077442436397791/jsii-runtime.js:1:90794)
    at t.Kernel._addAssembly (/private/var/folders/rl/gyf_2slx0c73w8r6vphqz1r40000gn/T/jsii-java-runtime2444077442436397791/jsii-runtime.js:1:86336)
    at t.Kernel.load (/private/var/folders/rl/gyf_2slx0c73w8r6vphqz1r40000gn/T/jsii-java-runtime2444077442436397791/jsii-runtime.js:1:81628)
    at software.amazon.jsii.JsiiRuntime.processErrorResponse(JsiiRuntime.java:118)
    at software.amazon.jsii.JsiiRuntime.requestResponse(JsiiRuntime.java:90)
    at software.amazon.jsii.JsiiClient.loadModule(JsiiClient.java:64)
    at software.amazon.jsii.JsiiEngine.loadModule(JsiiEngine.java:107)
    at software.amazon.jsii.JsiiEngine.createNewObject(JsiiEngine.java:442)
    at software.amazon.awscdk.services.eks.Cluster.<init>(Cluster.java:22)
    at src.com.amazonaws.services.cloudformation.hellocdk.src.main.java.com.myorg.HelloStack4.<init>(HelloStack4.java:419)
    at src.com.amazonaws.services.cloudformation.hellocdk.src.main.java.com.myorg.HelloStack4.<init>(HelloStack4.java:149)
    at src.com.amazonaws.services.cloudformation.hellocdk.src.main.java.com.myorg.HelloApp.main(HelloApp.java:14)
@rix0rrr rix0rrr added bug This issue is a bug. language/java Related to Java bindings @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service labels Mar 7, 2019
rix0rrr pushed a commit to aws/jsii that referenced this issue Mar 7, 2019
'const enums' are inlined at the usage site by TypeScript and so the
generated type will not be in the JavaScript source code in the
assembly, even though the declaration will be there.

This leads to "symbol not found" errors upon trying to load it.

https://www.typescriptlang.org/docs/handbook/enums.html#const-enums

Fixes aws/aws-cdk#1969
rix0rrr pushed a commit that referenced this issue Mar 7, 2019
'const enums' are inlined at the usage site by TypeScript and so the
generated type will not be in the JavaScript source code in the
assembly, even though the declaration will be there.

This leads to "symbol not found" errors upon trying to load it.

https://www.typescriptlang.org/docs/handbook/enums.html#const-enums

Fixes #1969
RomainMuller pushed a commit that referenced this issue Mar 7, 2019
'const enums' are inlined at the usage site by TypeScript and so the
generated type will not be in the JavaScript source code in the
assembly, even though the declaration will be there.

This leads to "symbol not found" errors upon trying to load it.

https://www.typescriptlang.org/docs/handbook/enums.html#const-enums

Fixes #1969
RomainMuller pushed a commit to aws/jsii that referenced this issue Mar 7, 2019
'const enums' are inlined at the usage site by TypeScript and so the
generated type will not be in the JavaScript source code in the
assembly, even though the declaration will be there.

This leads to "symbol not found" errors upon trying to load it.

Ref: https://www.typescriptlang.org/docs/handbook/enums.html#const-enums
Related: aws/aws-cdk#1969
@iliapolo iliapolo changed the title Java: could not find symbol [aws-eks] Java: could not find symbol Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. language/java Related to Java bindings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants