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 564741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:47:56+00:00 2026-05-13T12:47:56+00:00

I am using JBoss 4.2. Long stack traces are useless to me most of

  • 0

I am using JBoss 4.2.

Long stack traces are useless to me most of the time. Is there a way to only show the error message? Can stack traces be disabled or trimmed for normal java programs also?

  • 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-05-13T12:47:56+00:00Added an answer on May 13, 2026 at 12:47 pm

    You may want to just log myException.getMessage(), instead of using myException.printStackTrace() or something similar.

    In web servlets, often the whole stack trace isn’t that useful because the error is in your own code, i.e. the top several calls, and the rest of the stack is almost always the same servlet framework calls. Given the rest of the request data, it may not be very useful.

    But, there is still occasionally value in the full stack trace. For instance, if you ever suspect that a bug in JBoss is causing your application to fail, you will probably need the full trace to track it down. So, rather than just reading logs directly, consider using a log-viewing application that can show and hide details. Log viewers typically let you filter by error level or search terms too. Google App Engine has a good one. I suggest you see what JBoss has to offer (if you don’t know already — I have no idea personally) and then check for third-party alternatives.

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

Sidebar

Related Questions

I am using JBoss 5.1.0.GA on Red Hat Linux 4. We have only webservices
I am using JBoss 5.1 and I get the same error either with MySQL
Ok... so here's my actual status: Been a PHP Scripter for way too long,
I'm using JBoss 5.1.0.GA, I notticed the tmp folder at: server/default/tmp is mora than
is it possible to create something like static object using EJB3 in Jboss. in
As per the Q&A here , I'd like to implement a similar auto-versioning system
I'm trying to get current Executing Job with the method scheduler.getCurrentlyExecutingJobs(); but I really
I am planning a URL rewriter/encoder (maybe rewriter is a better term). The main
for security reasons, we want to block users by IP adress in our application,
Following is our environment setup: IIS 7 receives Http (.jsp) request from client (browser).

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.