Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9034449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:28:43+00:00 2026-06-16T08:28:43+00:00

I am using RestEasy to build up my Restful web services. I have implemented

  • 0

I am using RestEasy to build up my Restful web services. I have implemented ExceptionMappers to prepare specific exception responses.

I have also implemented MessageBodyWriterInterceptors and a couple of PostProcessorInterceptors.

Issue: All works fine when any resource does not throw any exception. My implementation works as expected. All the post processor interceptors and the message body writer interceptors are called.

But when an exception is thrown from any of the resource methods, the registered ExceptionMappers are called and it is creating the response. But in this case the post processor interceptor chain is not traversed. They are not getting called.

What should I do in this case. Write that interceptor logic in my exception mapper or is there is solution available?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:28:45+00:00Added an answer on June 16, 2026 at 8:28 am

    Post processors do not get called if an exception is thrown. They are on different, parallel resolution paths:

               / 'Normal' JAX-RS response -> Post Processors -> Message Body Writers
    Processing
               \  Exception -> Exception Mappers
    

    If you have logic that needs to be run in both your post processors and exception mappers then you will need to incorporate it in both (preferably through a common, utility class).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Restful web-service implemented using Apache CXF. Since I am going to use
I am using the RestEasy library to do JAX-RS web services. I am not
I deploy a web-services component to JBoss Application Server 7 using the RESTEasy JAX-RS
I want make RESTful services using embedded jetty with JAX-RS (either resteasy or jersey).
I'm working on developing some web services using RESTeasy and Seam. One of the
I'm developing a REST-ful web service using RESTEasy deployed on Tomcat. I've configured an
We're using the LightweightBrowserCache provided by RESTEasy 2.2.3.GA but have noticed that when the
I have a RestEasy web service that is deployed to JBoss 7.1.1. The web
I am using restEasy(Restful implementation for jboss) ejb3.0, Jboss5.1.1 AS I did restful service
I want to integrate paypal in my web application. I am using RESTEasy API

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.