Details
Description
Sometimes the JSON parsing throws exceptions similar to this:
Caused by: java.lang.IllegalStateException: Unexpected '0' while seeking one of ',}'
or
Caused by: java.lang.IllegalStateException: Unexpected 'P' while seeking one of ',}'
and others exception of similar type as well.
It would be useful to know what is the full input to be able to debug what is going on.
Added "jsonDebug" init param to the CometD servlet configuration, so that the input is fully read into a string, and if an error occurs it is fully printed in the exception message.