lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Error message running: ant clean test
Date Thu, 19 Jul 2012 14:32:23 GMT
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.


Mime
View raw message