question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java - "Malformed enum value"

See original GitHub issue

Using version “0.8.0”, creating VPC stack does not work:

VpcNetwork vpc = new VpcNetwork(this,
            "MyCdkVpc",
            VpcNetworkProps.builder()
                           .withCidr("10.0.0.0/16")
                           .withMaxAZs(3)
                           .withSubnetConfiguration(Arrays.asList(
                                   SubnetConfiguration.builder()
                                                      .withSubnetType(SubnetType.Private)
                                                      .withName("my-private-subnet-1")
                                                      .withCidrMask(24)
                                                      .build()))    
                           .withNatGateways(1)
                           .build());

Results in following error:

Malformed enum value: @aws-cdk/aws-ec2.SubnetType/Private
Error: Malformed enum value: @aws-cdk/aws-ec2.SubnetType/Private

when executing cdk deploy.

Same applies to other enums like DefaultInstanceTenancy.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
eladbcommented, Aug 3, 2018

Apologies for the unpleasant experience!

2reactions
eladbcommented, Aug 3, 2018

Thanks for reporting. We understand why this happens and will hopefully include a fix in our next release, probably early next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Malformed JSON" from http get request - Stack Overflow
I've tried a lot of stuff to parse theses datas into a HashMap ([category, category_color] for each element) like this : StringBuilder sb...
Read more >
Attaching Values to Java Enum - Baeldung
Java provides a valueOf(String) method for all enum types. Thus, we can always get an enum value based on the declared name: assertSame(Element....
Read more >
XML Security - OWASP Cheat Sheet Series
This cheat sheet exposes how to exploit the different possibilities in libraries and software divided in two sections: Malformed XML Documents: vulnerabilities ...
Read more >
RFC 7950: The YANG 1.1 Data Modeling Language
1. The leaf's Default Value The default value of a leaf is the value that the server uses if the leaf does not...
Read more >
JavaScript data types and data structures - MDN Web Docs
For symbols and BigInts, JavaScript has intentionally disallowed certain implicit type conversions. Primitive values. All types except Object ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found