Closed adamkorynta closed 1 year ago
@perrymanmd Thoughts? Glancing at it it looks like something is expecting some base64 encoding within the rating factory.
at hec.util.Base64.decode(Base64.java:49)
at hec.util.TextUtil.uncompress(TextUtil.java:422)
at mil.army.usace.hec.cwms.rating.io.xml.RatingXmlFactory.ratingSet(RatingXmlFactory.java:289)
... 57 more
The XML parsing tries to parse as uncompressed first, but then if that fails it tries to uncompress and then parse. The uncompress exception is the suppressed one, while the original gets reported as the direct cause.
The issue here is the the ratings XML we are storing doesn't include the rating spec or template information so a full RatingSet object cannot be created. Since we are parsing the XML just to store it back to the db as XML I figured we might as well skip the step.
Ah okay, so it's doing the bad "um here let me try this other thing for you." Which you've just changed.
Error storing a single rating curve to the database:
The rating xml sent to CDA is the following: