Announcement Announcement Module
Collapse
No announcement yet.
Spring for Android Rest Template HttpClientErrorException threw NullPointerException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring for Android Rest Template HttpClientErrorException threw NullPointerException

    Hi all,
    I'm using Android RestTemplate object to implement client-server interaction.
    When the server returns me a 4xx o 5xx a HttpClientErrorException is thrown.
    (Do not tested with the HttpServerErrorException )
    But, the instantieted object in the catch block is null.
    I'm using the last release, already checked in the pom.xml.
    Ideas? I'd like to distinguish what kind of error I get by the server to show opportune notification messages.
    And no, I'd not like to receive always a 200 status code, handling the response via a specific json field in the response.

    My problem is also posted in the link below but there are no answers.

    Cheers,
    Francesco Bruni
Working...
X