hobama / text-mining

Automatically exported from code.google.com/p/text-mining
0 stars 0 forks source link

Issue while using tm-extractors-1.0.jar and poi-3.5-beta5-20090219.jar #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place a word document on desktop
2. Change the path in MyExtractor.java to point to the document (line 17)
3. Refer tm-extractors-1.0.jar and poi-3.5-beta5-20090219.jar in build path.
4. Run the main method in MyExtractor.java

What is the expected output? What do you see instead?
The expected behavior should give the proper text output of the word document.

Instead, its throwing error:
Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/f
ilesystem/Dire
ctoryEntry;
    at org.textmining.extraction.word.WordExtractorFactory.initWordHeader(Unknown Source)
    at org.textmining.extraction.word.WordTextExtractorFactory.textExtractor(Unknown Source)
    at TestWordExtraction.textExtractionTest(TestWordExtraction.java:19)
    at MyExtractor.testSimple(MyExtractor.java:19)
    at MyExtractor.main(MyExtractor.java:10)

What version of the product are you using? On what operating system?
Jars: tm-extractors-1.0.jar; poi-3.5-beta5-20090219.jar
OS: MAC OS-X

Please provide any additional information below.
When I remove the poi-3.5-beta5-20090219.jar and put poi-3.0.1-FINAL.jar in the 
build path, 
it gives proper output. But I am using poi-3.5-beta5-20090219.jar in my 
application so I 
cannot use any other version of the jar.

Original issue reported on code.google.com by dipanjan80 on 20 May 2009 at 5:50

Attachments:

GoogleCodeExporter commented 9 years ago
The same problem can be replicated also with the latest stable POI build 
(3.2-FINAL).

Original comment by aldo.bongio@gmail.com on 25 May 2009 at 8:04

GoogleCodeExporter commented 9 years ago
This is not a bug in TextMining. If you recompile the JAR it will work fine. 
The bug
is with POI, which broke binary compatibility. 

So if you add POI 3.1/3.2 (and assumedly 3.5) and recompile TextMining and 
rejar it,
you will be fine

Original comment by mikebel...@gmail.com on 16 Jun 2009 at 7:46