You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by praful <pr...@gmail.com> on 2012/06/30 18:39:47 UTC

Nutch Exception

Hi
I am running Nutch in Eclipse.
I followed the steps using this site :
http://wiki.apache.org/nutch/RunNutchInEclipse 

I encountered a problem while running which that says

/Exception in thread "main" java.lang.Error: Unresolved compilation
problems: 
String cannot be resolved to a type
Exception cannot be resolved to a type
System cannot be resolved

at org.apache.nutch.crawl.Crawl.main(Crawl.java:53)
/
The build was successful.

I am using nutch 1.4.

Moreover, I would like to tell that i didnt understood the point 3 of
section *"Establish the Eclipse environment for Nutch"* and skipped it. I
guess the problem lies there only.
Can you please help me as the more I try to resolve it, the more i get
frustrated.Trying it from past 2 days.
It's a humble request please help

--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by Olga <ol...@gmail.com>.
Hi everyone,

I have another question.
I followed the guide and I have a problem in Create Eclipse launcher.
I did everything that is writen in the guide, but when I run it in Eclipse,
I receives the next exception:

java.lang.RuntimeException: Error in configuring object
	at
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93)
	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
	at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:432)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372)
	at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
	... 5 more
Caused by: java.lang.RuntimeException: Error in configuring object
	at
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93)
	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
	at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
	at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
	... 10 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
	... 13 more
Caused by: java.lang.RuntimeException: x point
org.apache.nutch.net.URLNormalizer not found.
	at org.apache.nutch.net.URLNormalizers.<init>(URLNormalizers.java:123)
	at org.apache.nutch.crawl.Injector$InjectMapper.configure(Injector.java:70)
	... 18 more

Any idea what is the problem?



--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3995563.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by Olga <ol...@gmail.com>.
Never mind :) 
I already understood!!!

--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3995490.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by Olga <ol...@gmail.com>.
Thanks again!

Can you please also explain "Add Folder > expand trunk/src and check
src/bin, src/java, src/test & src/testresources. " ?

And how to do this?





--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3995488.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by praful <pr...@gmail.com>.
On Tue, Jul 17, 2012 at 2:18 PM, Olga [via Lucene] <
ml-node+s472066n3995483h3@n3.nabble.com> wrote:

>
> Thanks for your explanations.
>
>  But I still do not understand what to do in line 2 in the instructions.
>

>  What needs to be removen and from where?
>
-----------right click on the trunk...select properties.....On the left
panel click "Java Build Path "..select Source tab...on the right hand side,
there must be a button named Remove, click it...and add then work according
to the tutorial.

Hope this may help

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3995483.html
>  To unsubscribe from Nutch Exception, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3992260&code=cHJhZnVsLmJhZ2FpMTk5MUBnbWFpbC5jb218Mzk5MjI2MHwtOTkxNjM5MjU=>
> .
> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3995484.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by Olga <ol...@gmail.com>.
Thanks for your explanations.

 But I still do not understand what to do in line 2 in the instructions.

 What needs to be removen and from where?

 Thank you,
 Olga

















--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3995483.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by Lewis John Mcgibbney <le...@gmail.com>.
- Right click on your project
- navigate to properties
- go to java build path (or class path) I think it's third of 4th
option on left hand navigation panel
- ensure that the source of every src/main/java and src/test/java is
on the project build path or else eclispe doesn't know where to find
the classes.

This should be done automatically when you make the initial code
import, however I cannot vouch for every Eclipse distribution to best
to always manually check

hth

Lewis


On Mon, Jul 2, 2012 at 9:12 AM, praful <pr...@gmail.com> wrote:
> This is the error that i am getting when i run the project.
>
> *     Exception in thread "main" java.lang.Error: Unresolved compilation **
> problems:
>     String cannot be resolved to a type
>     Exception cannot be resolved to a type
>     System cannot be resolved
>     at org.apache.nutch.crawl.Crawl.**main(Crawl.java:53)*
>
>
> As i didnt understood the point No 3 of section  *"Establish the Eclipse
> environment for Nutch "*, so i skipped that point which i guess was
> essential.
> Can you please help me understand that point which says "In additon, we
> must maunally add *EVERY* individual plugin src/java and src/test folder,
> although this takes some time it is absolutely essential that this is done."
>
> I guess the problem lies within this only.
> Please help me. I am stuck up with this from past 3-4 days which makes me
> more frustrating as the time goes by.
>
> Thanks
> Regards
> Praful Bagai
>
>
> On Mon, Jul 2, 2012 at 12:22 AM, Alexander Aristov [via Lucene] <
> ml-node+s472066n3992362h52@n3.nabble.com> wrote:
>
>> I would check build path if it has some issues.
>>
>> Then did you set up plugins folder according to the article? I use
>> absolute
>> path to get rid of possible mistaces.
>>
>> What about error messages? Do you have some? Sometimes I experienced
>> problem when eclispe didn't compile when I had errors in xml files.
>>
>> Where do your Eclipse compiled classes go to? THey should go to a separate
>> folder, not ant folder. e.g. classes
>>
>> Best Regards
>> Alexander Aristov
>>
>>
>> On 30 June 2012 20:39, praful <[hidden email]<http://user/SendEmail.jtp?type=node&node=3992362&i=0>>
>> wrote:
>>
>> > Hi
>> > I am running Nutch in Eclipse.
>> > I followed the steps using this site :
>> > http://wiki.apache.org/nutch/RunNutchInEclipse
>> >
>> > I encountered a problem while running which that says
>> >
>> > /Exception in thread "main" java.lang.Error: Unresolved compilation
>> > problems:
>> > String cannot be resolved to a type
>> > Exception cannot be resolved to a type
>> > System cannot be resolved
>> >
>> > at org.apache.nutch.crawl.Crawl.main(Crawl.java:53)
>> > /
>> > The build was successful.
>> >
>> > I am using nutch 1.4.
>> >
>> > Moreover, I would like to tell that i didnt understood the point 3 of
>> > section *"Establish the Eclipse environment for Nutch"* and skipped it.
>> I
>> > guess the problem lies there only.
>> > Can you please help me as the more I try to resolve it, the more i get
>> > frustrated.Trying it from past 2 days.
>> > It's a humble request please help
>> >
>> > --
>> > View this message in context:
>> > http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260.html
>> > Sent from the Nutch - User mailing list archive at Nabble.com.
>> >
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>> http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3992362.html
>>  To unsubscribe from Nutch Exception, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3992260&code=cHJhZnVsLmJhZ2FpMTk5MUBnbWFpbC5jb218Mzk5MjI2MHwtOTkxNjM5MjU=>
>> .
>> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3992457.html
> Sent from the Nutch - User mailing list archive at Nabble.com.



-- 
Lewis

Re: Nutch Exception

Posted by praful <pr...@gmail.com>.
This is the error that i am getting when i run the project.

*     Exception in thread "main" java.lang.Error: Unresolved compilation **
problems:
     String cannot be resolved to a type
     Exception cannot be resolved to a type
     System cannot be resolved
     at org.apache.nutch.crawl.Crawl.**main(Crawl.java:53)*


As i didnt understood the point No 3 of section  *"Establish the Eclipse
environment for Nutch "*, so i skipped that point which i guess was
essential.
Can you please help me understand that point which says "In additon, we
must maunally add *EVERY* individual plugin src/java and src/test folder,
although this takes some time it is absolutely essential that this is done."

I guess the problem lies within this only.
Please help me. I am stuck up with this from past 3-4 days which makes me
more frustrating as the time goes by.

Thanks
Regards
Praful Bagai


On Mon, Jul 2, 2012 at 12:22 AM, Alexander Aristov [via Lucene] <
ml-node+s472066n3992362h52@n3.nabble.com> wrote:

> I would check build path if it has some issues.
>
> Then did you set up plugins folder according to the article? I use
> absolute
> path to get rid of possible mistaces.
>
> What about error messages? Do you have some? Sometimes I experienced
> problem when eclispe didn't compile when I had errors in xml files.
>
> Where do your Eclipse compiled classes go to? THey should go to a separate
> folder, not ant folder. e.g. classes
>
> Best Regards
> Alexander Aristov
>
>
> On 30 June 2012 20:39, praful <[hidden email]<http://user/SendEmail.jtp?type=node&node=3992362&i=0>>
> wrote:
>
> > Hi
> > I am running Nutch in Eclipse.
> > I followed the steps using this site :
> > http://wiki.apache.org/nutch/RunNutchInEclipse
> >
> > I encountered a problem while running which that says
> >
> > /Exception in thread "main" java.lang.Error: Unresolved compilation
> > problems:
> > String cannot be resolved to a type
> > Exception cannot be resolved to a type
> > System cannot be resolved
> >
> > at org.apache.nutch.crawl.Crawl.main(Crawl.java:53)
> > /
> > The build was successful.
> >
> > I am using nutch 1.4.
> >
> > Moreover, I would like to tell that i didnt understood the point 3 of
> > section *"Establish the Eclipse environment for Nutch"* and skipped it.
> I
> > guess the problem lies there only.
> > Can you please help me as the more I try to resolve it, the more i get
> > frustrated.Trying it from past 2 days.
> > It's a humble request please help
> >
> > --
> > View this message in context:
> > http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260.html
> > Sent from the Nutch - User mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3992362.html
>  To unsubscribe from Nutch Exception, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3992260&code=cHJhZnVsLmJhZ2FpMTk5MUBnbWFpbC5jb218Mzk5MjI2MHwtOTkxNjM5MjU=>
> .
> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260p3992457.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch Exception

Posted by Alexander Aristov <al...@gmail.com>.
I would check build path if it has some issues.

Then did you set up plugins folder according to the article? I use absolute
path to get rid of possible mistaces.

What about error messages? Do you have some? Sometimes I experienced
problem when eclispe didn't compile when I had errors in xml files.

Where do your Eclipse compiled classes go to? THey should go to a separate
folder, not ant folder. e.g. classes

Best Regards
Alexander Aristov


On 30 June 2012 20:39, praful <pr...@gmail.com> wrote:

> Hi
> I am running Nutch in Eclipse.
> I followed the steps using this site :
> http://wiki.apache.org/nutch/RunNutchInEclipse
>
> I encountered a problem while running which that says
>
> /Exception in thread "main" java.lang.Error: Unresolved compilation
> problems:
> String cannot be resolved to a type
> Exception cannot be resolved to a type
> System cannot be resolved
>
> at org.apache.nutch.crawl.Crawl.main(Crawl.java:53)
> /
> The build was successful.
>
> I am using nutch 1.4.
>
> Moreover, I would like to tell that i didnt understood the point 3 of
> section *"Establish the Eclipse environment for Nutch"* and skipped it. I
> guess the problem lies there only.
> Can you please help me as the more I try to resolve it, the more i get
> frustrated.Trying it from past 2 days.
> It's a humble request please help
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Nutch-Exception-tp3992260.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>