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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:15:31+00:00 2026-06-11T20:15:31+00:00

I run into a weird (for me at least) case. When i’m running my

  • 0

I run into a weird (for me at least) case.
When i’m running my project from Eclipse everything is fine. But when I export the project to a jar file it fails with InvocationTargetException. I’m using other external libs and everything runs fine (program runtime is about 5 min) and it creates a docx at the end.

try {
  WordprocessingMLPackage wordMLPackage;
  wordMLPackage = WordprocessingMLPackage.createPackage(); // this is Line 1320
  // more lines here
} catch (Exception e) {
  e.printStackTrace();
}

I’m running in cmd and it prints:

Exception in thread "main" java.lang.reflect.InvocationTargetException

Caused by: java.lang.ExceptionInInitializerError

at com.lesswire.wita.Wita.CreateReport(Wita.java:1320)

How could i make it work in my jar ?

Thanks, roncsak

  • 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-11T20:15:32+00:00Added an answer on June 11, 2026 at 8:15 pm

    After all, the main reason of this bug was related Log4jConfigurator as @alexei-kaigorodov guessed. But! log4j was configured but not well for docx4j!
    I’ve searched logj.xml files on the net, and tried some.

    Here is how its done:

    In eclipse, make sure log4j.xml is in a class folder (often referenced this as CLASS PATH). If you don’t want to put there, you can create and set one. Open Java Build Path in Eclipse and navigate to the Libraries tab. Then choose “Add Class Folder” and select the newly created folder.

    For some reason when I do a Clean Build the log4j.xml is overwritten. Make sure your logj4.xml is right after Clean.

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

Sidebar

Related Questions

I've run into a weird error with a Qt program running on Windows. The
I've run into a weird issue with a site running ASP.NET MVC on IIS7.
I was just making a simple registration form but suddenly run into a weird
I'm fairly new to using MSSQL and have run into a weird problem. Given
Hi I have run into a very weird problem. I have a basic chrome
I have run into a problem with Eclipse Indigo, attempting to start up my
I'm continuing to run into really weird behaviour coding php. Here is an example:
I've run into a weird problem. Frame 1 contains a small preloader, and when
I have run into a rather weird little problem. In the following code I
I've run into a weird IE7 problem.. I have some standard CSS styled buttons

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.