stoicflame / enunciate

Build-time enhancement tool for Java-based Web services projects
http://enunciate.webcohesion.com/
Other
480 stars 200 forks source link

2.18.0 fails with InvocationTargetException #1208

Closed vghero closed 2 weeks ago

vghero commented 2 weeks ago

Hey, I just tried 2.18.0 on my project and it dies now with:


freemarker.core._TemplateModelException: An error has occurred when reading existing sub-variable "constraints"; see cause exception! The type of the containing value was: extended_hash+string (com.webcohesion.enunciate.modules.jackson.api.impl.PropertyImpl wrapped into f.e.b.StringModel)
[ERROR] 
[ERROR] ----
[ERROR] FTL stack trace ("~" means nesting-related):
[ERROR]     - Failed at: #assign metaValue = property[meta]!({...  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" in macro "printPropertyMetadata" at line 1165, column 3]
[ERROR]     - Reached through: @printPropertyMetadata property=prope...  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" in macro "processDataType" at line 1118, column 77]
[ERROR]     - Reached through: @file name=(type.slug + ".html")  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" in macro "processDataType" at line 1026, column 3]
[ERROR]     - Reached through: @processDataType type=type  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" in macro "processDataSyntax" at line 1005, column 13]
[ERROR]     - Reached through: @file name=(syntax.slug + ".html")  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" in macro "processDataSyntax" at line 983, column 3]
[ERROR]     - Reached through: @processDataSyntax syntax=syntax  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" at line 288, column 9]
[ERROR]     - Reached through: @file name=indexPageName  [in template "file:/home/....some-app/resources/enunciate/enunciate.fmt" at line 182, column 1]
[ERROR]     (Hidden 8 "~" lines for terseness)
[ERROR] 
[ERROR] ----: InvocationTargetException: Cannot invoke "jakarta.validation.constraints.Min.value()" because "min" is null

Note: the mentioned enunciate.fmt is bascially the docs.fmt. I customized it a bit on my end, but copied the docs.fmt over to it to be 100% sure it's not my modifications. So running with the original docs.fmt it fails the same way. Any clue what has changed with @Min(?)?. I came from 2.14.1.

stoicflame commented 2 weeks ago

Please try version 2.18.1.