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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by ctrimble
, 1 year ago
trying to create the same field twice: additionalProperties
via Oracle Community by 666705, 1 year ago
trying to create thesame field twice: config [jwsc]
via GitHub by wintersandroid
, 2 years ago
trying to create the same field twice: instance_ int textColourStd; ^
via Java.net JIRA by wargoth, 1 year ago
trying to create the same field twice: ts1EnbDirectInfoTransferTrir
via GitHub by glassfishrobot
, 4 months ago
trying to create the same field twice: HELLOSERVICE
via GitHub by glassfishrobot
, 5 months ago
java.lang.IllegalArgumentException: trying to create the same field twice: additionalProperties
at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:425)
at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:396)
at org.jsonschema2pojo.rules.AdditionalPropertiesRule.addAdditionalPropertiesField(AdditionalPropertiesRule.java:128)
at org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:108)
at org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:43)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:137)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:72)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:89)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:39)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.SchemaMapper.generate(SchemaMapper.java:88)
at org.jsonschema2pojo.Jsonschema2Pojo.generate(Jsonschema2Pojo.java:75)
at org.jsonschema2pojo.maven.Jsonschema2PojoMojo.execute(Jsonschema2PojoMojo.java:594)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.