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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:51:54+00:00 2026-06-03T16:51:54+00:00

I am trying to upgrade Apache commons lang from 2.4 to 3.1 in my

  • 0

I am trying to upgrade Apache commons lang from 2.4 to 3.1 in my project. My implementation has a reference to ExceptionUtil.getFullExceptionTrace(e) which does not exist anymore in 3.1.
The reason of removal was listed as

“Removing isThrowableNested, isNestedThrowable and getFullStackTrace
as they were all types of no-op once you got to JDK 1.4. LANG-491”

.
Few questions around this change:

  1. I am confused if this means we need to explore some other way to retrieve full stack trace or we can simply replace with ExceptionUtils.getStackTrace(e) instead.

  2. Any idea on what changed after jdk 1.4 to make the method redundant?

  3. Can’t we simply do e.toString() where e is my Exception instance?

Thanks

  • 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-03T16:51:55+00:00Added an answer on June 3, 2026 at 4:51 pm

    Java 1.4 introduced getCause() method on Throwable class which is a parent for all Exception classes. If you need to get a stack trace as a String, you can use ExceptionUtils.getStackTrace(e) or something like this:

      Exception e = ...
      StringWriter sw = new StringWriter();
      e.printStackTrace(new PrintWriter(sw));
      String stack Trace = sw.toString();
    

    See additional discussion about removing methods from ExceptionUtil on JIRA issue LANG-491.

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

Sidebar

Related Questions

I'm trying to upgrade my project from using Maven 1 to Maven 2, but
I'm trying to upgrade a Coldfusion8/MySQL site. The site has a complex search which,
Context: I am trying to upgrade a Grails project from 1.0.3 to 1.3.7 and
I'm trying to upgrade cxf from version 2.3.1 to version 2.6.1 in my project.
I trying to upgrade from OrbeonForms version 3.8 to 3.9. I'm using PriorityResourceManagerFactory as
I'm trying to upgrade my Node application from 0.4 to 0.6 along with all
I'm trying to upgrade from Hibernate 3.6.5 to 4.0 (and from Spring 3.0.5 to
I am trying to upgrade the tapestry version from 5.1.0.5 to 5.2.6. I have
I'm currently trying to upgrade our build server at work, going from having no
I’m trying to upgrade our solution from VS2005 .NET 2.0 to VS2008 .NET 3.5.

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.