Hi

Thanks again for your replies.  It seems as though the text mininng
dependency was the culprit.  I removed the dependency and it started
working.  This is still strange as I explicitly set an exclusion of poi in
text mining.

Anyway it's working correctly so thanks again!


Cheers

Amin

Brett Randall wrote:
> 
> I Googled that stack trace for you and it pointed me straight to the POI
> FAQ
> here: http://poi.apache.org/faq.html#faq-N10006 .  Classpath debugging
> advice there - you might need to check if you have an overlapping
> dependency, so dependency:analyze and dependency:tree are probably good
> starts.
> 
> Best
> Brett
> 
> On Tue, Jan 27, 2009 at 6:24 AM, aminm <ami...@gmail.com> wrote:
> 
>>
>>
>>
>> Dave Newton wrote:
>> >
>> > Geoffrey Wiseman wrote:
>> >> On Sun, Jan 25, 2009 at 7:21 PM, Dave Newton <newton.d...@yahoo.com>
>> >> wrote:
>> >>> Does 4.5 not work?
>> >> I was just responding to Amin's comment about JUnit 4.4 [...]
>> >
>> > Ah, missed that--never mind :)
>> >
>> > Dave
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> > For additional commands, e-mail: users-h...@maven.apache.org
>> >
>> >
>> >
>>
>> Hi
>>
>> Thanks for the replies!  I managed to get the surefire plugin to use
>> junit
>> 4.  However I am getting some strange behaviour, in that some of my tests
>> fail, while they all run fine in eclipse.  I am using text mining as a
>> dependency and exclude the version of poi that comes with it.   The
>> exception that I get is
>>
>>
>> testCanCreateLuceneDocumentForMSWordDocument(com.amin.app.lucene.index.handler.ms.MSWordHandlerTest)
>> Time elapsed: 0.038 sec  <<< ERROR!
>> java.lang.NoSuchMethodError:
>>
>> org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/filesystem/DirectoryNode;
>>        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:158)
>>        at
>> org.apache.poi.hwpf.extractor.WordExtractor.<init>(WordExtractor.java:59)
>>        at
>>
>> com.amin.app.lucene.index.handler.ms.MSWordHandler.extractText(MSWordHandler.java:16)
>>
>>
>> I know that this exception occurs if I am using an old version of poi
>> (2.5),
>> even though I have excluded the version that comes with text mining.  I
>> have
>> added
>>
>>        <dependency>
>>                        <groupId>org.apache.poi</groupId>
>>                        <artifactId>poi</artifactId>
>>                        <version>3.5-beta4</version>
>>                        <scope>compile</scope>
>>                </dependency>
>>
>> This is very strange and I can't understand why the tests won't run.
>>
>> Any help again would be appreciated.
>>
>>
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Maven-2.0.9-NullpointerException-when-running-tests-tp2209372p2220012.html
>> Sent from the maven users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Maven-2.0.9-NullpointerException-when-running-tests-tp2209372p2222945.html
Sent from the maven users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to