Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Error message running: ant clean test

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


colm_rice at hotmail

Jul 19, 2012, 6:26 AM

Post #1 of 7 (442 views)
Permalink
Error message running: ant clean test

Hi,

I have downloaded the Solr and Lucene source code. I'm running the
command: "ant clean test" from C:\trunk and am getting hte following error
message:


BUILD FAILED
C:\trunk\build.xml:55: The following error occurred while executing this
line:
C:\trunk\lucene\build.xml:180: java.lang.NoSuchMethodError:
org.objectweb.asm.tree.ClassNode.<init>(I)V
at
org.apache.lucene.validation.ForbiddenApisCheckTask.addSignature(ForbiddenApisCheckTask.java:128)
at
org.apache.lucene.validation.ForbiddenApisCheckTask.parseApiFile(ForbiddenApisCheckTask.java:175)
at
org.apache.lucene.validation.ForbiddenApisCheckTask.execute(ForbiddenApisCheckTask.java:301)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 2 minutes 7 seconds


I have checked the the file is there as the method (though it is private,
should that matter?).

Does anyone have any ideas/suggestions/ideas to help me fix this? Would
greatly appreciate any comments.

Struggling,
jellyman


--
View this message in context: http://lucene.472066.n3.nabble.com/Error-message-running-ant-clean-test-tp3995956.html
Sent from the Lucene - General mailing list archive at Nabble.com.


uwe at thetaphi

Jul 19, 2012, 6:32 AM

Post #2 of 7 (428 views)
Permalink
RE: Error message running: ant clean test [In reply to]

You should update your SVN, this class is no longer used in trunk! There
seems to be some classpath + source checkout confusion.

If you still get those errors, please check if you ~/.ant/lib folder contain
outdated and old ASM versions. Maybe you installed some ANT plugin in your
classpath that ships with outdated ASM.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe [at] thetaphi


> -----Original Message-----
> From: jellyman [mailto:colm_rice [at] hotmail]
> Sent: Thursday, July 19, 2012 3:26 PM
> To: general [at] lucene
> Subject: Error message running: ant clean test
>
> Hi,
>
> I have downloaded the Solr and Lucene source code. I'm running the
> command: "ant clean test" from C:\trunk and am getting hte following error
> message:
>
>
> BUILD FAILED
> C:\trunk\build.xml:55: The following error occurred while executing this
> line:
> C:\trunk\lucene\build.xml:180: java.lang.NoSuchMethodError:
> org.objectweb.asm.tree.ClassNode.<init>(I)V
> at
> org.apache.lucene.validation.ForbiddenApisCheckTask.addSignature(Forbidden
> ApisCheckTask.java:128)
> at
>
org.apache.lucene.validation.ForbiddenApisCheckTask.parseApiFile(ForbiddenA
> pisCheckTask.java:175)
> at
> org.apache.lucene.validation.ForbiddenApisCheckTask.execute(ForbiddenApisC
> heckTask.java:301)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at
>
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckE
> xecutor.java:38)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
> at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
> at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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.taskdefs.Sequential.execute(Sequential.java:68)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j
a
> va:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.Main.runBuild(Main.java:811)
> at org.apache.tools.ant.Main.startAnt(Main.java:217)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>
> Total time: 2 minutes 7 seconds
>
>
> I have checked the the file is there as the method (though it is private,
should
> that matter?).
>
> Does anyone have any ideas/suggestions/ideas to help me fix this? Would
> greatly appreciate any comments.
>
> Struggling,
> jellyman
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Error-
> message-running-ant-clean-test-tp3995956.html
> Sent from the Lucene - General mailing list archive at Nabble.com.


colm_rice at hotmail

Jul 19, 2012, 7:16 AM

Post #3 of 7 (430 views)
Permalink
RE: Error message running: ant clean test [In reply to]

Thanks Uwe,

I got latest version and rebuilt. That changed the error message a bit
(included below). Can you please explain your second point in a bit more
detail please. I'm very new to ASM (in fact I don't even know what this
means).
For example how do I know that the ~/.ant/lib folder contains an outdated
and old ASM versions? This is not immediately obvious to me due to my
ignorance of Java tech. Can you hand hold me a for a bit?



BUILD FAILED
C:\trunk\build.xml:55: The following error occurred while executing this
line:
C:\trunk\lucene\build.xml:176: java.lang.IncompatibleClassChangeError: class
org.apache.lucene.validation.ForbiddenApisCheckTask$ClassSignatureLookup$1
has interface org.objectweb.asm.ClassVisitor as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128)
at
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299)
at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.apache.lucene.validation.ForbiddenApisCheckTask$ClassSignatureLookup.<init>(ForbiddenApisCheckTask.java:457)
at
org.apache.lucene.validation.ForbiddenApisCheckTask.getClassFromClassLoader(ForbiddenApisCheckTask.java:92)
at
org.apache.lucene.validation.ForbiddenApisCheckTask.addSignature(ForbiddenApisCheckTask.java:133)
at
org.apache.lucene.validation.ForbiddenApisCheckTask.parseApiFile(ForbiddenApisCheckTask.java:170)
at
org.apache.lucene.validation.ForbiddenApisCheckTask.execute(ForbiddenApisCheckTask.java:353)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 2 minutes 44 seconds



--
View this message in context: http://lucene.472066.n3.nabble.com/Error-message-running-ant-clean-test-tp3995956p3995969.html
Sent from the Lucene - General mailing list archive at Nabble.com.


uwe at thetaphi

Jul 19, 2012, 7:32 AM

Post #4 of 7 (431 views)
Permalink
RE: Error message running: ant clean test [In reply to]

Hi,

> I got latest version and rebuilt. That changed the error message a bit
> (included below). Can you please explain your second point in a bit more
detail
> please. I'm very new to ASM (in fact I don't even know what this means).
> For example how do I know that the ~/.ant/lib folder contains an
outdated
> and old ASM versions? This is not immediately obvious to me due to my
> ignorance of Java tech. Can you hand hold me a for a bit?

That is obvious from the exception messages. ASM 4.0 completely changed the
API in a backwards-incompatible way. The only chance that this can hit you
is when you have customized your ANT installation with extension modules (I
have no idea which).

Those modules could be installed in:
~/.ant/lib
$ANT_HOME/lib

I cannot say more, look into those directories and look for asm-xxx.jar
files. If there is any version < 4.0, you cannot build Lucene with this
configuration. I would recommend to uninstall ANT, reinstall a new ANT
version (downloaded from APACHE) and clean up you ~/.ant folder.

> BUILD FAILED
> C:\trunk\build.xml:55: The following error occurred while executing this
> line:
> C:\trunk\lucene\build.xml:176: java.lang.IncompatibleClassChangeError:
class
> org.apache.lucene.validation.ForbiddenApisCheckTask$ClassSignatureLookup$1
> has interface org.objectweb.asm.ClassVisitor as super class
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at
>
org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java
> :1128)
> at
>
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:
> 1299)
> at
>
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.ja
> va:1355)
> at
> org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
> at
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.apache.lucene.validation.ForbiddenApisCheckTask$ClassSignatureLookup.<i
> nit>(ForbiddenApisCheckTask.java:457)
> at
> org.apache.lucene.validation.ForbiddenApisCheckTask.getClassFromClassLoade
> r(ForbiddenApisCheckTask.java:92)
> at
> org.apache.lucene.validation.ForbiddenApisCheckTask.addSignature(Forbidden
> ApisCheckTask.java:133)
> at
>
org.apache.lucene.validation.ForbiddenApisCheckTask.parseApiFile(ForbiddenA
> pisCheckTask.java:170)
> at
> org.apache.lucene.validation.ForbiddenApisCheckTask.execute(ForbiddenApisC
> heckTask.java:353)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at
>
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckE
> xecutor.java:38)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
> at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
> at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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.taskdefs.Sequential.execute(Sequential.java:68)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j
a
> va:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at org.apache.tools.ant.Main.runBuild(Main.java:811)
> at org.apache.tools.ant.Main.startAnt(Main.java:217)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>
> Total time: 2 minutes 44 seconds
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Error-
> message-running-ant-clean-test-tp3995956p3995969.html
> Sent from the Lucene - General mailing list archive at Nabble.com.


colm_rice at hotmail

Jul 19, 2012, 7:50 AM

Post #5 of 7 (427 views)
Permalink
RE: Error message running: ant clean test [In reply to]

Hey Uwe,

Thanks. I found that I'm asm running version 2.2.3! I'll uninstall and
download something 4.0.0+

I'm working on a windows box btw. I guess I can install ant anywhere...

Thanks
jellym

--
View this message in context: http://lucene.472066.n3.nabble.com/Error-message-running-ant-clean-test-tp3995956p3995981.html
Sent from the Lucene - General mailing list archive at Nabble.com.


uwe at thetaphi

Jul 19, 2012, 10:27 AM

Post #6 of 7 (421 views)
Permalink
RE: Error message running: ant clean test [In reply to]

You don't need to download asm at all. Just use a plain default ANT
installation as extracted from ANT's zip file. Also Nuke your user's ~/.ant
directory if possible. ANT does that automatiucally when building
Lucene/Solr. The problem you had was a preexisting version in a global lib
folder that should not be there. ANT always prefers global lib folders over
local ones. So it did not respect Lucene's requirements.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe [at] thetaphi

> -----Original Message-----
> From: jellyman [mailto:colm_rice [at] hotmail]
> Sent: Thursday, July 19, 2012 4:51 PM
> To: general [at] lucene
> Subject: RE: Error message running: ant clean test
>
> Hey Uwe,
>
> Thanks. I found that I'm asm running version 2.2.3! I'll uninstall and
download
> something 4.0.0+
>
> I'm working on a windows box btw. I guess I can install ant anywhere...
>
> Thanks
> jellym
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Error-
> message-running-ant-clean-test-tp3995956p3995981.html
> Sent from the Lucene - General mailing list archive at Nabble.com.


colm_rice at hotmail

Jul 23, 2012, 5:25 AM

Post #7 of 7 (418 views)
Permalink
RE: Error message running: ant clean test [In reply to]

Hi Uwe,

It's built successfully. Eureka! Thanks for your assist. I have just 1
fina lerror inside Eclipse when i open the project. It's looking for
"lib/zookeeper-3.3.4.zip"
Do you know where this is in the Lucene binaries?

Thanks,
jellyman




--
View this message in context: http://lucene.472066.n3.nabble.com/Error-message-running-ant-clean-test-tp3995956p3996713.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.