java.lang.IllegalArgumentException: trying to create the same field twice: additionalProperties

GitHub | ctrimble | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 608#239608389

    GitHub | 7 months ago | ctrimble
    java.lang.IllegalArgumentException: trying to create the same field twice: additionalProperties
  2. 0

    generate-api , needs to report the path to the field for failure.

    GitHub | 7 months ago | chabhishek123
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.24:generate (generate-api) on project xyz-spec: Execution generate-api of goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.24:generate failed: trying to create the same field twice: additionalProperties
  3. 0

    trying to create the same field twice: instance_

    GitHub | 3 years ago | wintersandroid
    java.lang.IllegalArgumentException: trying to create the same field twice: instance_ int textColourStd; ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [jwsc] error: Response wrapper bean names must be unique ?

    Oracle Community | 10 years ago | 666705
    java.lang.IllegalArgumentException: trying to create thesame field twice: config [jwsc]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      trying to create the same field twice: additionalProperties

      at com.sun.codemodel.JDefinedClass.field()
    2. Old JAXB XJC
      JDefinedClass.field
      1. com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:425)
      2. com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:396)
      2 frames
    3. org.jsonschema2pojo.rules
      SchemaRule.apply
      1. org.jsonschema2pojo.rules.AdditionalPropertiesRule.addAdditionalPropertiesField(AdditionalPropertiesRule.java:128)
      2. org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:108)
      3. org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:43)
      4. org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:137)
      5. org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:72)
      6. org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:89)
      7. org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:39)
      8. org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
      9. org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66)
      10. org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
      10 frames
    4. org.jsonschema2pojo
      Jsonschema2Pojo.generate
      1. org.jsonschema2pojo.SchemaMapper.generate(SchemaMapper.java:88)
      2. org.jsonschema2pojo.Jsonschema2Pojo.generate(Jsonschema2Pojo.java:75)
      2 frames
    5. org.jsonschema2pojo.maven
      Jsonschema2PojoMojo.execute
      1. org.jsonschema2pojo.maven.Jsonschema2PojoMojo.execute(Jsonschema2PojoMojo.java:594)
      1 frame