custom error messsage not showing on dispatcher | Community
Skip to main content
anelem1760873
Level 4
Jan 27, 2021 7:45 AM UTC
Solved

custom error messsage not showing on dispatcher

Hi There,

 

The following code works if I hit directly on the Author instance it works but i doesn't work on the dispatcher side. the message is not shown. any advice what i could be doing wrong here.

response.getWriter().write(String.format("<div><p id='Status'>400</p><p id='Message'>%s</p></div>", msg));
response.setContentType(ContentType.TEXT_HTML.getMimeType());
response.setStatus(400);

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
anelem1760873
anelem1760873Accepted solution
Level 4
Jan 27, 2021 12:03 PM UTC

DispatcherPassError 0 Solved the issue.

4 replies

anelem1760873
anelem1760873AuthorAccepted solution
Level 4
Jan 27, 2021 12:03 PM UTC

DispatcherPassError 0 Solved the issue.

Translate
kautuk_sahni
Employee
Jan 28, 2021 1:58 PM UTC
Thank you for sharing the solution with community.
Translate
Kautuk Sahni
ChitraMadan
New Participant
Jan 27, 2021 9:55 AM UTC

Hi @anelem1760873 ,

 

Please make sure that publisher has the same code as well.

What do you get if you try to access with the dispatcher? Can you see any error in the logs?

Translate
anelem1760873
Level 4
Jan 27, 2021 10:51 AM UTC
Nothing on the logs, this is only author on localhost:4502 it's working but on the domain it's not.
Translate