By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,806 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,806 IT Pros & Developers. It's quick & easy.

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: filesystem

P: 1
Expand|Select|Wrap|Line Numbers
  1. run:
  2. Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: filesystem
  3.     at org.apache.poi.hwpf.HWPFDocument.<init>(
  4.     at org.apache.poi.hwpf.HWPFDocument.<init>(
  5.     at org.apache.poi.hwpf.HWPFDocument.<init>(
  6.     at examples.FileConversions.btnWETransActionPerformed(
  7.     at examples.FileConversions.access$100(
  8.     at examples.FileConversions$2.actionPerformed(
  9.     at javax.swing.AbstractButton.fireActionPerformed(
  10.     at javax.swing.AbstractButton$Handler.actionPerformed(
  11.     at javax.swing.DefaultButtonModel.fireActionPerformed(
  12.     at javax.swing.DefaultButtonModel.setPressed(
  13.     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
  14.     at java.awt.Component.processMouseEvent(
  15.     at javax.swing.JComponent.processMouseEvent(
  16.     at java.awt.Component.processEvent(
  17.     at java.awt.Container.processEvent(
  18.     at java.awt.Component.dispatchEventImpl(
  19.     at java.awt.Container.dispatchEventImpl(
  20.     at java.awt.Component.dispatchEvent(
  21.     at java.awt.LightweightDispatcher.retargetMouseEvent(
  22.     at java.awt.LightweightDispatcher.processMouseEvent(
  23.     at java.awt.LightweightDispatcher.dispatchEvent(
  24.     at java.awt.Container.dispatchEventImpl(
  25.     at java.awt.Window.dispatchEventImpl(
  26.     at java.awt.Component.dispatchEvent(
  27.     at java.awt.EventQueue.dispatchEventImpl(
  28.     at java.awt.EventQueue.access$000(
  29.     at java.awt.EventQueue$
  30.     at java.awt.EventQueue$
  31.     at Method)
  32.     at$1.doIntersectionPrivilege(
  33.     at$1.doIntersectionPrivilege(
  34.     at java.awt.EventQueue$
  35.     at java.awt.EventQueue$
  36.     at Method)
  37.     at$1.doIntersectionPrivilege(
  38.     at java.awt.EventQueue.dispatchEvent(
  39.     at java.awt.EventDispatchThread.pumpOneEventForFilters(
  40.     at java.awt.EventDispatchThread.pumpEventsForFilter(
  41.     at java.awt.EventDispatchThread.pumpEventsForHierarchy(
  42.     at java.awt.EventDispatchThread.pumpEvents(
  43.     at java.awt.EventDispatchThread.pumpEvents(
  44.     at
I am trying to read a doc file in java, but getting the above exception. please can anybody help to resolve above exception?
May 29 '13 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 3,112
Hi marqueeali and welcome to!
According to the java api doc, this means that the field "filesystem" doesn't exist. To solve the problem, the lines
Expand|Select|Wrap|Line Numbers
  1.     at examples.FileConversions.btnWETransActionPerformed(
  2.     at examples.FileConversions.access$100(
  3.     at examples.FileConversions$2.actionPerformed(
of that error message seem most promissing. What does your code look like there?
May 29 '13 #2

Expert 100+
P: 983

Look up the exception/error that caused failure, which is java.lang.NoSuchFieldError, which reads as follows:
Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
Which indicates to me that your program unloaded a class and re-loaded it with a different one for some reason.

I do not believe that is your root cause. The "smell" is not right.

Let us follow the stack trace a little farther...

Go up one group of frames and see what class might be the problem child, in this case org.apache.poi.hwpf.HWPFDocument.

Since I don't expect that you wrote the HWPFDocument class, let's table this for the moment, and look a little higher in the call stack.

We see three frames in one class file,
  1. examples.FileConversions.btnWETransActionPerformed (
  2. examples.FileConversions.access$100(FileConversion
  3. examples.FileConversions$2.actionPerformed(FileCon
Given the non-standard name of the package, and the anonymous inner class (examples.FileConversions$2), I would suspect that this is the code which is having issues.

You might try looking at the three lines referenced (79, 22, and 267) and their surrounding code for an error on your part.

Also, look for the word "filesystem", as that is listed as the cause of failure in the origional error.

I am not sure I can help you any further than that, given the information you've got here.

Good Luck!
May 29 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.