473,322 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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>(HWPFDocument.java:216)
  4.     at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:157)
  5.     at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:145)
  6.     at examples.FileConversions.btnWETransActionPerformed(FileConversions.java:267)
  7.     at examples.FileConversions.access$100(FileConversions.java:22)
  8.     at examples.FileConversions$2.actionPerformed(FileConversions.java:79)
  9.     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
  10.     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
  11.     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
  12.     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
  13.     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
  14.     at java.awt.Component.processMouseEvent(Component.java:6505)
  15.     at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
  16.     at java.awt.Component.processEvent(Component.java:6270)
  17.     at java.awt.Container.processEvent(Container.java:2229)
  18.     at java.awt.Component.dispatchEventImpl(Component.java:4861)
  19.     at java.awt.Container.dispatchEventImpl(Container.java:2287)
  20.     at java.awt.Component.dispatchEvent(Component.java:4687)
  21.     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
  22.     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
  23.     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
  24.     at java.awt.Container.dispatchEventImpl(Container.java:2273)
  25.     at java.awt.Window.dispatchEventImpl(Window.java:2719)
  26.     at java.awt.Component.dispatchEvent(Component.java:4687)
  27.     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
  28.     at java.awt.EventQueue.access$000(EventQueue.java:102)
  29.     at java.awt.EventQueue$3.run(EventQueue.java:662)
  30.     at java.awt.EventQueue$3.run(EventQueue.java:660)
  31.     at java.security.AccessController.doPrivileged(Native Method)
  32.     at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  33.     at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
  34.     at java.awt.EventQueue$4.run(EventQueue.java:676)
  35.     at java.awt.EventQueue$4.run(EventQueue.java:674)
  36.     at java.security.AccessController.doPrivileged(Native Method)
  37.     at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  38.     at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
  39.     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
  40.     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
  41.     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
  42.     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
  43.     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
  44.     at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
  45.  
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
2 5910
Nepomuk
3,112 Expert 2GB
Hi marqueeali and welcome to bytes.com!
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(FileConversions.java:267)
  2.     at examples.FileConversions.access$100(FileConversions.java:22)
  3.     at examples.FileConversions$2.actionPerformed(FileConversions.java:79)
of that error message seem most promissing. What does your code look like there?
May 29 '13 #2
Oralloy
985 Expert 512MB
marqueeali,

FIRST THING:
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...

SECONDLY:
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.

THIRD:
We see three frames in one class file, FileConversions.java:
  1. examples.FileConversions.btnWETransActionPerformed (FileConversions.java:267)
  2. examples.FileConversions.access$100(FileConversion s.java:22)
  3. examples.FileConversions$2.actionPerformed(FileCon versions.java:79)
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!
Oralloy
May 29 '13 #3

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

Similar topics

1
by: Old Wolf | last post by:
1. What is the difference between #include <stdexcept> and #include <exception> ? 2. Is there a list somewhere of what each standard exception is used for? either to throw them, or throw...
11
by: Master of C++ | last post by:
Hi, I am writing a simulation package in C++, and so far I've written about 8000 lines of code and have about 30 classes. I haven't used C++ exceptions so far (for various reasons). The only two...
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
6
by: Vadivel Kumar | last post by:
I've a problem in handling a custom exception The following is my custom exception class: public class AppException : public Exception { public AppException (string message, Exception...
11
by: chopsnsauce | last post by:
Here's the example: Dim frm As New FORM1 Try frm.show Catch ex As Exception msgbox ex.message
3
by: JohnDeHope3 | last post by:
First let me say that I understand that Asp.Net wraps my exception in an HttpUnhandledException. I have found a lot of discussion about that on the web, which was informative, but not helpful. Let...
2
by: Darko Miletic | last post by:
Recently I wrote a dll in c++ and to simplify the distribution I decided to link with multithreaded static library (/MT or /MTd option). In debug everything works fine but in release I get this: ...
8
by: Nayna | last post by:
how to rethrown an exception in java?
10
by: dinopc | last post by:
Hello, i am italian, I apologize for my English. I would like to extend the class std::exception: #include <iostream.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.