On Wed, Jul 14, 2004 at 05:19:29PM -0700, Doug Cutting wrote:
> [EMAIL PROTECTED] wrote:
> >test:
> >     [echo] Testing plugin: parse-pdf
> >    [junit] Running net.nutch.parse.pdf.TestPdfParser
> >    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.201 sec
> >
> >
> >    [junit] TEST net.nutch.parse.pdf.TestPdfParser FAILED
> 
> This test works for me on my machines running FedoraCore1 and Windows 
> XP, but fails on shell.sourceforge.net, running the nightly build.
> 
> The detailed error log is included below.
> 
> Does anyone have an idea what the problem is?
> 
> Doug
> 
> Testsuite: net.nutch.parse.pdf.TestPdfParser
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.201 sec
> ------------- Standard Error -----------------
> 040714 163834 loading 
> file:/home/groups/n/nu/nutch/build/nutch/conf/nutch-default.xml
> 040714 163835 loading 
> file:/home/groups/n/nu/nutch/build/nutch/conf/nutch-site.xml
> 040714 163835 looking for plugins in: build/plugins
> 040714 163835 looking for plugins in: plugins
> ------------- ---------------- ---------------
> 
> Testcase: testIt took 1.185 sec
>         Caused an ERROR
> null
> java.lang.ExceptionInInitializerError
>         at net.nutch.parse.pdf.TestPdfParser.testIt(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> Caused by: java.lang.RuntimeException: x-point 
> net.nutch.protocol.Protocol not found.
>         at 
> net.nutch.protocol.ProtocolFactory.<clinit>(ProtocolFactory.java:28)
>         ... 15 more
> 

Hi, Doug,

Just checked out todays' cvs and tested it on my linux. Here is what I see
in ./build/parse-pdf/test/TEST-net.nutch.parse.pdf.TestPdfParser.txt:

Testsuite: net.nutch.parse.pdf.TestPdfParser
Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.386 sec
------------- Standard Error -----------------
040714 231853 loading file:/home/xing/net.sf/cvs-20040712/nutch/conf/nutch-default.xml
040714 231854 loading file:/home/xing/net.sf/cvs-20040712/nutch/conf/nutch-site.xml
040714 231854 looking for plugins in: build/plugins
040714 231854 parsing: 
/home/xing/net.sf/cvs-20040712/nutch/build/plugins/protocol-file/plugin.xml
........... lines removed ............
........... lines removed ............
040714 231854 parsing: 
/home/xing/net.sf/cvs-20040712/nutch/build/plugins/language-identifier/plugin.xml
040714 231854 parsing: 
/home/xing/net.sf/cvs-20040712/nutch/build/plugins/DummyPlugin0/plugin.xml
040714 231854 org.dom4j.DocumentException: 
/home/xing/net.sf/cvs-20040712/nutch/build/plugins/DummyPlugin0/plugin.xml (No such 
file or directory) Nested exception: 
/home/xing/net.sf/cvs-20040712/nutch/build/plugins/DummyPlugin0/plugin.xml (No such 
file or directory)
........... lines removed ............
........... lines removed ............

The org.dom4j.DocumentException does not get caught as Failures or Errors
on my linux, probably yours too. So the test passes. I use junit-3.8.1.jar
in nutch. My guess: cvs.sf.net reports it differently.

org.dom4j.DocumentException above is due to empty dirs
./build/plugins/DummyPlugin?
left by TestPluginSystem.java (new today?)
You may want to have them deleted in TestPluginSystem.java.

John


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to