Crawl error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Crawl error

AJ Chen-2
I checked out the 0.8 code from trunk and tried to set it up in eclipse.
When trying to run Crawl from Eclipse using args "urls -dir crawl -depth 3
-topN 50", I got the following error, which started from LogFactory.getLog(
Crawl.class). Any idea what file was not found?  There is a url file under
directory urls. Thanks,

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: \ (The system cannot find the path specified)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
    at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
    at org.apache.log4j.DailyRollingFileAppender.activateOptions(
DailyRollingFileAppender.java:215)
    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java
:256)
    at org.apache.log4j.config.PropertySetter.setProperties(
PropertySetter.java:132)
    at org.apache.log4j.config.PropertySetter.setProperties(
PropertySetter.java:96)
    at org.apache.log4j.PropertyConfigurator.parseAppender(
PropertyConfigurator.java:654)
    at org.apache.log4j.PropertyConfigurator.parseCategory(
PropertyConfigurator.java:612)
    at org.apache.log4j.PropertyConfigurator.configureRootCategory(
PropertyConfigurator.java:509)
    at org.apache.log4j.PropertyConfigurator.doConfigure(
PropertyConfigurator.java:415)
    at org.apache.log4j.PropertyConfigurator.doConfigure(
PropertyConfigurator.java:441)
    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
OptionConverter.java:468)
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
    at org.apache.log4j.Logger.getLogger(Logger.java:104)
    at org.apache.commons.logging.impl.Log4JLogger.getLogger(
Log4JLogger.java:229)
    at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java
:65)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
LogFactoryImpl.java:529)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
LogFactoryImpl.java:235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
LogFactoryImpl.java:209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at org.apache.nutch.crawl.Crawl.<clinit>(Crawl.java:38)
log4j:ERROR Either File or DatePattern options are not set for appender
[DRFA].

-AJ
Reply | Threaded
Open this post in threaded view
|

Re: [Nutch-dev] Crawl error

Stefan Groschupf-2
Try to put the "conf" folder to your classpath in eclipse and set the  
environemnt variables that are setted in  bin/nutch.

Btw, please do not crosspost.
Thanks.
Stefan

Am 09.07.2006 um 21:47 schrieb AJ Chen:

> I checked out the 0.8 code from trunk and tried to set it up in  
> eclipse.
> When trying to run Crawl from Eclipse using args "urls -dir crawl -
> depth 3
> -topN 50", I got the following error, which started from  
> LogFactory.getLog(
> Crawl.class). Any idea what file was not found?  There is a url  
> file under
> directory urls. Thanks,
>
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: \ (The system cannot find the path  
> specified)
>    at java.io.FileOutputStream.openAppend(Native Method)
>    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>    at org.apache.log4j.FileAppender.activateOptions
> (FileAppender.java:163)
>    at org.apache.log4j.DailyRollingFileAppender.activateOptions(
> DailyRollingFileAppender.java:215)
>    at org.apache.log4j.config.PropertySetter.activate
> (PropertySetter.java
> :256)
>    at org.apache.log4j.config.PropertySetter.setProperties(
> PropertySetter.java:132)
>    at org.apache.log4j.config.PropertySetter.setProperties(
> PropertySetter.java:96)
>    at org.apache.log4j.PropertyConfigurator.parseAppender(
> PropertyConfigurator.java:654)
>    at org.apache.log4j.PropertyConfigurator.parseCategory(
> PropertyConfigurator.java:612)
>    at org.apache.log4j.PropertyConfigurator.configureRootCategory(
> PropertyConfigurator.java:509)
>    at org.apache.log4j.PropertyConfigurator.doConfigure(
> PropertyConfigurator.java:415)
>    at org.apache.log4j.PropertyConfigurator.doConfigure(
> PropertyConfigurator.java:441)
>    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
> OptionConverter.java:468)
>    at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
>    at org.apache.log4j.Logger.getLogger(Logger.java:104)
>    at org.apache.commons.logging.impl.Log4JLogger.getLogger(
> Log4JLogger.java:229)
>    at org.apache.commons.logging.impl.Log4JLogger.<init>
> (Log4JLogger.java
> :65)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
> Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
> LogFactoryImpl.java:529)
>    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
> LogFactoryImpl.java:235)
>    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
> LogFactoryImpl.java:209)
>    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
> 351)
>    at org.apache.nutch.crawl.Crawl.<clinit>(Crawl.java:38)
> log4j:ERROR Either File or DatePattern options are not set for  
> appender
> [DRFA].
>
> -AJ
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nutch-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply | Threaded
Open this post in threaded view
|

Re: [Nutch-dev] Crawl error

AJ Chen-2
My classpath has "conf" folder. NUTCH_JAVA_HOME is set. In fact, nutch
0.71is working well from my eclipse. I suspect the error comes from
changes in
verions 0.8. The problem is the log message does not say what file is not
found. So, it's hard to debug.  Any idea?
Thanks,
AJ

On 7/9/06, Stefan Groschupf <[hidden email]> wrote:

>
> Try to put the "conf" folder to your classpath in eclipse and set the
> environemnt variables that are setted in  bin/nutch.
>
> Btw, please do not crosspost.
> Thanks.
> Stefan
>
> Am 09.07.2006 um 21:47 schrieb AJ Chen:
>
> > I checked out the 0.8 code from trunk and tried to set it up in
> > eclipse.
> > When trying to run Crawl from Eclipse using args "urls -dir crawl -
> > depth 3
> > -topN 50", I got the following error, which started from
> > LogFactory.getLog(
> > Crawl.class). Any idea what file was not found?  There is a url
> > file under
> > directory urls. Thanks,
> >
> > log4j:ERROR setFile(null,true) call failed.
> > java.io.FileNotFoundException: \ (The system cannot find the path
> > specified)
> >    at java.io.FileOutputStream.openAppend(Native Method)
> >    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> >    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> >    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
> >    at org.apache.log4j.FileAppender.activateOptions
> > (FileAppender.java:163)
> >    at org.apache.log4j.DailyRollingFileAppender.activateOptions(
> > DailyRollingFileAppender.java:215)
> >    at org.apache.log4j.config.PropertySetter.activate
> > (PropertySetter.java
> > :256)
> >    at org.apache.log4j.config.PropertySetter.setProperties(
> > PropertySetter.java:132)
> >    at org.apache.log4j.config.PropertySetter.setProperties(
> > PropertySetter.java:96)
> >    at org.apache.log4j.PropertyConfigurator.parseAppender(
> > PropertyConfigurator.java:654)
> >    at org.apache.log4j.PropertyConfigurator.parseCategory(
> > PropertyConfigurator.java:612)
> >    at org.apache.log4j.PropertyConfigurator.configureRootCategory(
> > PropertyConfigurator.java:509)
> >    at org.apache.log4j.PropertyConfigurator.doConfigure(
> > PropertyConfigurator.java:415)
> >    at org.apache.log4j.PropertyConfigurator.doConfigure(
> > PropertyConfigurator.java:441)
> >    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
> > OptionConverter.java:468)
> >    at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
> >    at org.apache.log4j.Logger.getLogger(Logger.java:104)
> >    at org.apache.commons.logging.impl.Log4JLogger.getLogger(
> > Log4JLogger.java:229)
> >    at org.apache.commons.logging.impl.Log4JLogger.<init>
> > (Log4JLogger.java
> > :65)
> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> > NativeConstructorAccessorImpl.java:39)
> >    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> > DelegatingConstructorAccessorImpl.java:27)
> >    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> >    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
> > LogFactoryImpl.java:529)
> >    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
> > LogFactoryImpl.java:235)
> >    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
> > LogFactoryImpl.java:209)
> >    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
> > 351)
> >    at org.apache.nutch.crawl.Crawl.<clinit>(Crawl.java:38)
> > log4j:ERROR Either File or DatePattern options are not set for
> > appender
> > [DRFA].
> >
> > -AJ
> >
> > ----------------------------------------------------------------------
> > ---
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your
> > job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?
> > cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Nutch-developers mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/nutch-developers
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [Nutch-dev] Crawl error

Stefan Groschupf-2
As mentioned, set the environment variable bin/nutch set also for  
eclipse, especially logging related variables!


Am 10.07.2006 um 00:05 schrieb AJ Chen:

> My classpath has "conf" folder. NUTCH_JAVA_HOME is set. In fact, nutch
> 0.71is working well from my eclipse. I suspect the error comes from
> changes in
> verions 0.8. The problem is the log message does not say what file  
> is not
> found. So, it's hard to debug.  Any idea?
> Thanks,
> AJ
>
> On 7/9/06, Stefan Groschupf <[hidden email]> wrote:
>>
>> Try to put the "conf" folder to your classpath in eclipse and set the
>> environemnt variables that are setted in  bin/nutch.
>>
>> Btw, please do not crosspost.
>> Thanks.
>> Stefan
>>
>> Am 09.07.2006 um 21:47 schrieb AJ Chen:
>>
>> > I checked out the 0.8 code from trunk and tried to set it up in
>> > eclipse.
>> > When trying to run Crawl from Eclipse using args "urls -dir crawl -
>> > depth 3
>> > -topN 50", I got the following error, which started from
>> > LogFactory.getLog(
>> > Crawl.class). Any idea what file was not found?  There is a url
>> > file under
>> > directory urls. Thanks,
>> >
>> > log4j:ERROR setFile(null,true) call failed.
>> > java.io.FileNotFoundException: \ (The system cannot find the path
>> > specified)
>> >    at java.io.FileOutputStream.openAppend(Native Method)
>> >    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>> >    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>> >    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>> >    at org.apache.log4j.FileAppender.activateOptions
>> > (FileAppender.java:163)
>> >    at org.apache.log4j.DailyRollingFileAppender.activateOptions(
>> > DailyRollingFileAppender.java:215)
>> >    at org.apache.log4j.config.PropertySetter.activate
>> > (PropertySetter.java
>> > :256)
>> >    at org.apache.log4j.config.PropertySetter.setProperties(
>> > PropertySetter.java:132)
>> >    at org.apache.log4j.config.PropertySetter.setProperties(
>> > PropertySetter.java:96)
>> >    at org.apache.log4j.PropertyConfigurator.parseAppender(
>> > PropertyConfigurator.java:654)
>> >    at org.apache.log4j.PropertyConfigurator.parseCategory(
>> > PropertyConfigurator.java:612)
>> >    at org.apache.log4j.PropertyConfigurator.configureRootCategory(
>> > PropertyConfigurator.java:509)
>> >    at org.apache.log4j.PropertyConfigurator.doConfigure(
>> > PropertyConfigurator.java:415)
>> >    at org.apache.log4j.PropertyConfigurator.doConfigure(
>> > PropertyConfigurator.java:441)
>> >    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
>> > OptionConverter.java:468)
>> >    at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
>> >    at org.apache.log4j.Logger.getLogger(Logger.java:104)
>> >    at org.apache.commons.logging.impl.Log4JLogger.getLogger(
>> > Log4JLogger.java:229)
>> >    at org.apache.commons.logging.impl.Log4JLogger.<init>
>> > (Log4JLogger.java
>> > :65)
>> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> > Method)
>> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
>> > NativeConstructorAccessorImpl.java:39)
>> >    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
>> > DelegatingConstructorAccessorImpl.java:27)
>> >    at java.lang.reflect.Constructor.newInstance(Constructor.java:
>> 494)
>> >    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
>> > LogFactoryImpl.java:529)
>> >    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
>> > LogFactoryImpl.java:235)
>> >    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
>> > LogFactoryImpl.java:209)
>> >    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
>> > 351)
>> >    at org.apache.nutch.crawl.Crawl.<clinit>(Crawl.java:38)
>> > log4j:ERROR Either File or DatePattern options are not set for
>> > appender
>> > [DRFA].
>> >
>> > -AJ
>> >
>> >  
>> ---------------------------------------------------------------------
>> -
>> > ---
>> > Using Tomcat but need to do more? Need to support web services,
>> > security?
>> > Get stuff done quickly with pre-integrated technology to make your
>> > job easier
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> > Geronimo
>> > http://sel.as-us.falkag.net/sel?
>> > cmd=lnk&kid=120709&bid=263057&dat=121642
>> > _______________________________________________
>> > Nutch-developers mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/nutch-developers
>>
>>