Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call to webservice returning with a response status 500 throws UniformInterfaceException

Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I created a small webservice using Jersey framework. I added couple of methods in the service. Below is the code:

I try to access the service using following client code:

The first method succeeds and gives list of users but second call fails with following exception:

I am not able to understand what is wrong here. I tried changing the path also users/8 and users/8/ both fail.
Can someone please give any clues?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic