Files
jackson3-by-example/exceptions/output/02-triggers.txt
T
2026-12-03 23:45:39 +05:30

75 lines
3.7 KiB
Plaintext

== reading: the text is not valid JSON ==
-- syntax error
tools.jackson.core.exc.StreamReadException
Unexpected character ('}' (code 125)): expected a value
-- truncated input
tools.jackson.core.exc.UnexpectedEndOfInputException
Unexpected end-of-input: expected close marker for Array (start marker at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); ...
-- number too big for int
tools.jackson.core.exc.InputCoercionException
Numeric value (99999999999) out of range of `int` (-2147483648 - 2147483647)
-- nesting 1000 deep
tools.jackson.core.exc.StreamConstraintsException
Document nesting depth (501) exceeds the maximum allowed (500, from `StreamReadConstraints.getMaxNestingDepth()`)
-- duplicate key (strict on)
tools.jackson.core.exc.StreamReadException
Duplicate Object property "id"
== reading: valid JSON, wrong shape ==
-- string where int expected
tools.jackson.databind.exc.InvalidFormatException
Cannot deserialize value of type `long` from String "abc": not a valid `long` value
-- object where array expected
tools.jackson.databind.exc.MismatchedInputException
Cannot deserialize value of type `java.util.ArrayList<com.ankurm.exceptions.Order$Line>` from Object value (token `JsonToken.START_OBJECT`)
-- null for a primitive
tools.jackson.databind.exc.MismatchedInputException
Cannot map `null` into type `long` (set `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` to 'false' to allow)
-- primitive left out of a record
no exception, result = Order[id=1, quantity=0, lines=null]
-- unknown property (strict on)
tools.jackson.databind.exc.UnrecognizedPropertyException
Unrecognized property "colour" (class com.ankurm.exceptions.Order), not marked as ignorable
-- trailing token
tools.jackson.databind.exc.MismatchedInputException
Trailing token (`JsonToken.START_OBJECT`) found after value (bound as `com.ankurm.exceptions.Order`): not allowed as per `DeserializationFeature.FAIL_ ...
-- empty input
tools.jackson.databind.exc.MismatchedInputException
No content to map due to end-of-input
-- unknown type id
tools.jackson.databind.exc.InvalidTypeIdException
Could not resolve type id 'square' as a subtype of `com.ankurm.exceptions.E02Triggers$Figure`: known type ids = [circle]
-- interface with no type info
tools.jackson.databind.exc.InvalidDefinitionException
Cannot construct instance of `com.ankurm.exceptions.E02Triggers$Shape` (no Creators, like default constructor, exist): abstract types either need to b ...
-- record constructor rejects
tools.jackson.databind.exc.ValueInstantiationException
cause: java.lang.IllegalArgumentException
Cannot construct instance of `com.ankurm.exceptions.E02Triggers$Positive`, problem: n must be positive, got -1
-- tree: asInt() on text
tools.jackson.databind.exc.JsonNodeException
'StringNode' method `asInt()` cannot coerce value "abc" to `int`: value not a valid String representation of `int`
== writing ==
-- getter throws
tools.jackson.databind.DatabindException
cause: java.lang.IllegalStateException
lazy collection not initialised
-- generator misuse
tools.jackson.core.exc.StreamWriteException
Cannot write a string, expecting a property name (context: Object)
== real I/O ==
-- file does not exist
tools.jackson.core.exc.JacksonIOException
cause: java.nio.file.NoSuchFileException
no-such-file.json
-- stream breaks mid-read
tools.jackson.core.exc.JacksonIOException
cause: java.io.IOException
Connection reset
== calls that do not parse text ==
-- null String
java.lang.IllegalArgumentException
argument "content" is null
-- convertValue with bad data
tools.jackson.databind.exc.InvalidFormatException
Cannot deserialize value of type `long` from String "abc": not a valid `long` value