Skip to content

Small example demonstrating issues with the default exception handling of Jersey validations in sda-commons-server-jackson when nested model classes are involved.

Notifications You must be signed in to change notification settings

rschwedasi/sda-exception-fail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

  1. Run via Gradle run task
  2. curl --location --request POST 'http://localhost:8080/api/ok' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "payload" : {
             "someString" : "test"
        }
    }'
    
    👍 - Worked
  3. curl --location --request POST 'http://localhost:8080/api/fail' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "nested" : {
            "payload" : {
    
            }
        }
    }'
    
    💣 - Watch it die

org.sdase.commons.server.jackson.errors.JerseyValidationExceptionMapper seems to die at Line 114 trying to instantiate a new Type-Object of null 😥

About

Small example demonstrating issues with the default exception handling of Jersey validations in sda-commons-server-jackson when nested model classes are involved.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published