Skip to content

Mark similar series: gracefully handle error when value mismatches to type #1319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
0pdd opened this issue Apr 12, 2020 · 1 comment
Open

Comments

@0pdd
Copy link

0pdd commented Apr 12, 2020

The puzzle 1280-7ac54ef9 from #1280 has to be resolved:

// @todo #1280 Mark similar series: gracefully handle error when value mismatches to type

The puzzle was created by Slava Semushin on 12-Apr-20.

@php-coder
Copy link
Owner

When I type "test" as similar series ID, I got server error:

2020-04-12 14:38:29.056 [user:1 ] WARN 94742 --- [tp1417808454-33] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.lang.Integer from String "test": not a valid Integer value; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.lang.Integer from String "test": not a valid Integer value
at [Source: (PushbackInputStream); line: 1, column: 33] (through reference chain: ru.mystamps.web.feature.series.AddSimilarSeriesForm["similarSeriesId"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants