Agreed, I think adding a GUI dependency on Nutch fetcher would be a bad idea. My 2 cents ...
--Jagdeep -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Saturday, September 11, 2004 10:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Nutch-dev] [ nutch-Bugs-1020724 ] parser for RTF files Uh, the whole thing depends on X11 (due to swing). Nutch fetcher (parser) wouldn't be able to run (for rtf type) in bare batch mode, unless there is a way to set DISPLAY to virtual/dummy device. Considering nutch is largely text-mode, it maybe a bad idea to introduce such a gui dependency. I would like to know what others think. John On Sat, Sep 11, 2004 at 08:23:10PM -0700, [EMAIL PROTECTED] wrote: > Hi, Andy, > > The junit test fails if DISPLAY env variable is not set or set incorrectly > (see TEST-net.nutch.parse.rtf.TestRTFParser.txt attached). > Your patch otherwise looks oaky. > > I am not sure if sourceforge's nightly build system has DISPLAY set at all. > We need to find a way that lets the test pass even if DISPLAY is not set. > > John > > ------------------TEST-net.nutch.parse.rtf.TestRTFParser.txt------------------ > > Testsuite: net.nutch.parse.rtf.TestRTFParser > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.192 sec > ------------- Standard Error ----------------- > 040911 165554 loading > file:/home/doe/net.sf/nutch-cvs-20040911.xing/conf/nutch-default.xml > 040911 165555 loading > file:/home/doe/net.sf/nutch-cvs-20040911.xing/conf/nutch-site.xml > 040911 165555 Plugins: looking in: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/query-site/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-html/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-text/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-ext/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-mp3/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-pdf/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-rtf/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/query-basic/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/protocol-ftp/plugin.xml > 040911 165555 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/parse-msword/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/creativecommons/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/protocol-file/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/protocol-http/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/clustering-carrot2/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/language-identifier/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/query-url/plugin.xml > 040911 165556 parsing: > /home/doe/net.sf/nutch-cvs-20040911.xing/build/plugins/index-basic/plugin.xml > 040911 165556 found resource mime.types at > file:/home/doe/net.sf/nutch-cvs-20040911.xing/conf/mime.types > ------------- ---------------- --------------- > > Testcase: testIt took 2.184 sec > Caused an ERROR > Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. > java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the > value of the DISPLAY variable. > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) > at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at java.awt.Toolkit$2.run(Toolkit.java:748) > at java.security.AccessController.doPrivileged(Native Method) > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739) > at java.awt.Toolkit.getEventQueue(Toolkit.java:1519) > at java.awt.EventQueue.isDispatchThread(EventQueue.java:651) > at javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1238) > at javax.swing.text.StyleContext.reclaim(StyleContext.java:419) > at javax.swing.text.StyleContext.addAttribute(StyleContext.java:276) > at > javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1468) > at javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1278) > at javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:1226) > at javax.swing.text.StyleContext.addStyle(StyleContext.java:88) > at javax.swing.text.StyleContext.<init>(StyleContext.java:68) > at javax.swing.text.DefaultStyledDocument.<init>(DefaultStyledDocument.java:88) > at > javax.swing.text.StyledEditorKit.createDefaultDocument(StyledEditorKit.java:86) > at net.nutch.parse.rtf.RTFParser.getParse(RTFParser.java:35) > at net.nutch.parse.rtf.TestRTFParser.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) > > > On Fri, Sep 10, 2004 at 07:14:41PM +0100, Andy Hedges wrote: > > Just wondering if anyone has had a chance to look at this and maybe commit? > > > > Andy > > > > SourceForge.net wrote: > > > > >Bugs item #1020724, was opened at 2004-09-01 21:00 > > >Message generated for change (Tracker Item Submitted) made by Item > > >Submitter > > >You can respond by visiting: > > >https://sourceforge.net/tracker/?func=detail&atid=491356&aid=1020724&group_id=59548 > > > > > >Category: plugin: other > > >Group: None > > >Status: Open > > >Resolution: None > > >Priority: 5 > > >Submitted By: Andy Hedges (andyhedges) > > >Assigned to: Nobody/Anonymous (nobody) > > >Summary: parser for RTF files > > > > > >Initial Comment: > > >Archive contains a patch file and additional files for > > >an rtf parser. > > > > > >---------------------------------------------------------------------- > > > > > >You can respond by visiting: > > >https://sourceforge.net/tracker/?func=detail&atid=491356&aid=1020724&group_id=59548 > > > > > > > > >------------------------------------------------------- > > >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=5047&alloc_id=10808&op=click > > >_______________________________________________ > > >Nutch-developers mailing list > > >[EMAIL PROTECTED] > > >https://lists.sourceforge.net/lists/listinfo/nutch-developers > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > > Project Admins to receive an Apple iPod Mini FREE for your judgement on > > who ports your project to Linux PPC the best. Sponsored by IBM. > > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > > _______________________________________________ > > Nutch-developers mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/nutch-developers > > > __________________________________________ > http://www.neasys.com - A Good Place to Be > Come to visit us today! > __________________________________________ http://www.neasys.com - A Good Place to Be Come to visit us today! ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nutch-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nutch-developers ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nutch-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nutch-developers
