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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:44:36+00:00 2026-06-01T21:44:36+00:00

I have a java program that needs to tar/gz a large bit of data

  • 0

I have a java program that needs to tar/gz a large bit of data (14 gigs) and I am using commons-compress. This will be a re-occuring job every week and is automated.

When I attempt to compress something of this size I get:

java.lang.IllegalArgumentException: 13313903445=143144405525 will not fit in octal number buffer of length 11
    at org.apache.commons.compress.archivers.tar.TarUtils.formatUnsignedOctalString(TarUtils.java:212)
    at org.apache.commons.compress.archivers.tar.TarUtils.formatLongOctalBytes(TarUtils.java:265)
    at org.apache.commons.compress.archivers.tar.TarArchiveEntry.writeEntryHeader(TarArchiveEntry.java:749)
    at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:209)
    at com.broadridge.adc.core.commons.io.ADCFileUtils.addFilesToCompression(ADCFileUtils.java:144)
    at com.broadridge.adc.core.commons.io.ADCFileUtils.addFilesToCompression(ADCFileUtils.java:154)
    at com.broadridge.adc.core.commons.io.ADCFileUtils.compressFiles(ADCFileUtils.java:125)
    at com.broadridge.adc.core.commons.io.ADCFileUtils.compressFile(ADCFileUtils.java:106)

My code works fine for smaller amounts of information (around 600 megs). I’ve looked at the source code but it’s not clean to my why the error is occurring.

Does anyone have any idea why this is happening?

  • 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-01T21:44:37+00:00Added an answer on June 1, 2026 at 9:44 pm

    You’re exceeding some limit defined by TarConstants.SIZELEN which is 12.

    What Javadoc tells us about this:

    The length of the size field in a header buffer. Includes the trailing
    space or NUL.

    It is used by TarArchiveEntry.writeEntryHeader(byte[] outbuf) which is in your stacktrace. Later in the stack this limit is subtracted by 1 resulting in a limit of 11 which is part of your exception message.

    Later in the call stack TarUtils.formatUnsignedOctalString(final long value, byte[] buffer, final int offset, final int length) is called where the limit of 11 is exceeded.

    So you seem to exceed some maximum header field size.

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

Sidebar

Related Questions

We have a java program that requires a large amount of heap space -
I have a java program that will work with a variety of Java Beans.
I have a Java program that opens a file using the RandomAccessFile class. I'd
I have a Java program that connects to a webserver using SSL/TLS, and sends
I have a constantly-running Java program that needs to send an email whenever it
I made this small Java program using eclipse IDE. I have set the workspace
I Have a java program that does sort of this: It starts off with
I have a GUI program that, in this example, downloads an exe using wget
I have a Java program which needs to be a startup program that runs
I have a Java program that loads thirdparty class files (classes I did not

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.