Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1342

Non-json errors not displayed properly in logs

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.5.0, (Java) V4 4.6.0
    • (Java) V4 4.10.0
    • odata4-client
    • Patch

    Description

      When http client receives non-json encoded error message, for example when receiving this error message:

      <HEAD><TITLE>Tunnel Connection Failed</TITLE></HEAD>...

      In Spring logs following will be displayed:

      org.apache.olingo.client.api.serialization.ODataDeserializerException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
      at [Source: (ByteArrayInputStream); line: 1, column: 2]
      at org.apache.olingo.client.core.serialization.JsonDeserializer.toError(JsonDeserializer.java:444) ~[odata-client-core-4.5.0.jar:na]
      at org.apache.olingo.client.core.serialization.ClientODataDeserializerImpl.toError(ClientODataDeserializerImpl.java:105) ~[odata-client-core-4.5.0.jar:na]
      ...

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dw3105 Aleksandr Zaigraev

            Dates

              Created:
              Updated:

              Slack

                Issue deployment