Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The "ErrorMessagesInNutch2" page has been changed by LewisJohnMcgibbney:
http://wiki.apache.org/nutch/ErrorMessagesInNutch2?action=diff&rev1=5&rev2=6

  = Error Messages in Nutch 2.0 =
  
- This page acts as a repository for potential error messages you might 
experience whilst using Nutch 2.0. It will most likely be dynamic in nature due 
to the variety of additional software projects which can be combined with Nutch 
2.0 and the potential for errors which this presents.
+ This page acts as a repository for potential error messages you might 
experience whilst using Nutch 2.0. It will most likely be dynamic and fairly 
general in nature due to the variety of additional software projects which can 
be combined with Nutch 2.0 and the potential for errors which this presents 
both for Nutch and which need to be considered when working with other software 
projects in combination.
  
  <<TableOfContents(3)>>
  
@@ -82, +82 @@

  
  Although this is a real nasty workaround it does work.
  
+ == java.lang.RuntimeException compile failure with Gora trunk (1153872) ==
+ 
+ Although this problem is not specifically related to Nutch 2.0, it still 
prevents us from compiling the complete Gora infrastructure required to 
facilitate Nutch activities.
+ 
+ Upon checking out Gora trunk (1153872) and compiling the code you may get the 
rather nasty runtime exception as follows:
+ {{{
+ BUILD FAILED
+ /home/lewis/ASF/gora/build.xml:272: The following error occurred while 
executing this line:
+ /home/lewis/ASF/gora/build-common.xml:350: impossible to ivy retrieve: 
java.lang.RuntimeException: problem during retrieve of 
org.apache.gora#gora-cassandra: java.lang.RuntimeException: Multiple artifacts 
of the module org.apache.cassandra#cassandra-thrift;0.8.1 are retrieved to the 
same file! Update the retrieve pattern  to fix this error.
+     at 
org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEngine.java:206)
+     at org.apache.ivy.Ivy.retrieve(Ivy.java:540)
+     at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:59)
+     at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
+     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
+     at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
+     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+     at java.lang.reflect.Method.invoke(Method.java:616)
+     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
+     at org.apache.tools.ant.Task.perform(Task.java:348)
+     at org.apache.tools.ant.Target.execute(Target.java:390)
+     at org.apache.tools.ant.Target.performTasks(Target.java:411)
+     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
+     at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
+     at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
+     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
+     at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302)
+     at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
+     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
+     at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
+     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+     at java.lang.reflect.Method.invoke(Method.java:616)
+     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
+     at org.apache.tools.ant.Task.perform(Task.java:348)
+     at org.apache.tools.ant.Target.execute(Target.java:390)
+     at org.apache.tools.ant.Target.performTasks(Target.java:411)
+     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
+     at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
+     at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
+     at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
+     at org.apache.tools.ant.Main.runBuild(Main.java:801)
+     at org.apache.tools.ant.Main.startAnt(Main.java:218)
+     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
+     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
+ Caused by: java.lang.RuntimeException: Multiple artifacts of the module 
org.apache.cassandra#cassandra-thrift;0.8.1 are retrieved to the same file! 
Update the retrieve pattern  to fix this error.
+     at 
org.apache.ivy.core.retrieve.RetrieveEngine.determineArtifactsToCopy(RetrieveEngine.java:360)
+     at 
org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEngine.java:104)
+     ... 33 more
+ }}}
+ This may be due to one other project that has already written to the same 
file, but with a different revision. The ivy retrive directory and 
configuration is defined at build.xml as:
+ {{{
+  <property name="ivy.local.default.root"
+ value="${ivy.default.ivy.user.dir}/local" />
+  <property name="ivy.local.default.ivy.pattern"
+ value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
+  <property name="ivy.local.default.artifact.pattern"
+ value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
+ 
+  <property name="ivy.shared.default.root"
+ value="${ivy.default.ivy.user.dir}/shared" />
+  <property name="ivy.shared.default.ivy.pattern"
+ value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
+  <property name="ivy.shared.default.artifact.pattern"
+ value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
+ }}}
+ This means that Gora uses the shared default root directory which is
+ ~/.ivy2/
+ 
+ Therefore applying the following patch:
+ {{{
+ diff --git a/build.xml b/build.xml
+ index 5810db9..eaa0450 100644
+ --- a/build.xml
+ +++ b/build.xml
+ @@ -301,7 +301,7 @@
+   </target>
+ 
+   <!-- target: clean-cache
+ ================================================ -->
+ -  <target name="clean-cache" depends=""
+ +  <target name="clean-cache" depends="ivy-init"
+                        description="delete ivy cache">
+     <ivy:cleancache />
+   </target>
+ }}
+ and running
+ {{{
+ $ ant clean-cache.
+ $ ant
+ }}}
+ should hopefully solve the problem and result in a successful build.
+ 
+ ps. you can alternatively do
+ {{{
+ $rm -rf ~/ivy2/cache
+ }}}
+ 

Reply via email to