wood burning stoves 2.0*
The moose likes Web Services and the fly likes NOTFOUNDEXCEPTION issue for MIME type JSON!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "NOTFOUNDEXCEPTION issue for MIME type JSON!!!!" Watch "NOTFOUNDEXCEPTION issue for MIME type JSON!!!!" New topic
Author

NOTFOUNDEXCEPTION issue for MIME type JSON!!!!

sruti vijay
Greenhorn

Joined: Nov 18, 2012
Posts: 4
Hi,

Trying to handle an exception whereby when the response is null , a user friendly msg will be displayed... WE are using "NotFoundException" method to handle the exception whereby response is null it displays the exception msg.

This works fine for MIME type JSON but shows "WEB PAGE NOT AVAILABLE" for xml.....

PLEASE HELP...

THANKS AND REGARDS
Sruthi
 
Consider Paul's rocket mass heater.
 
subject: NOTFOUNDEXCEPTION issue for MIME type JSON!!!!
 
Similar Threads
java.lang.Class NotFoundException
setContentType
javax. naming.Name NotFoundException
ms-excel mime type
Configure spring controller to return json response