ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Junit Task, VerifyError, Log4J LogManager
Date Wed, 14 Aug 2002 17:36:15 GMT
One other perhaps related note.  I have activation.jar and mail.jar in 
my IDEA lib directory as well. Maybe, just maybe, that is the key?!

James Krygowski wrote:
> Erik-
> 
> The exception is thrown as soon as I invoke a target from the Ant launcher
> in IDEA.  I don't use the EmailTask at all.  That's why it's so perplexing.
> And now that I think about the error message, it really seems like the
> verifyerror is coming from the Project class (which is part of ant).
> 
> Here's a thought (from onjava.com):
> 
> Pop quiz: When is class A that implements interface B not an instance of
> interface B? When A and B are loaded by two different class loaders.
> 
> 
> This is actually true for plain old classes as well.  In our scenario, Ant
> is being loaded by the IDEA class loader.  Is the EmailTask being loaded by
> a custom class loader?  If so, could this be the problem?
> 
> 
> 
> 
> James Krygowski wrote:
> 
>>I checked the IDEA classpath and there are no other optional jars on it.
> 
> I
> 
>>also did a scan of the hard drive checking all jar files for occurences of
>>EmailTask.  None were to be found.  This is the complete error message
> 
> from
> 
>>the IDEA message tab:
>>
>>Detected Java version: 1.3 in: C:\java\javasoft\jdk1.3.1_02\jre
>>Detected OS: Windows 2000
>>java.lang.VerifyError: (class:
>>org/apache/tools/ant/taskdefs/email/EmailTask, method: execute signature:
>>()V) Incompatible object argument for function call
>>      at java.lang.Class.forName0(Native Method)
>>      at java.lang.Class.forName(Class.java:120)
>>      at org.apache.tools.ant.Project.init(Project.java:178)
>>      at com.intellij.ant.AntMain.a(AntMain.java:315)
>>      at com.intellij.ant.AntMain.a(AntMain.java:277)
>>      at com.intellij.ant.AntMain.main(AntMain.java:139)
>>java.lang.VerifyError: (class:
>>org/apache/tools/ant/taskdefs/email/EmailTask, method: execute signature:
>>()V) Incompatible object argument for function call
>>      at java.lang.Class.forName0(Native Method)
>>      at java.lang.Class.forName(Class.java:120)
>>      at org.apache.tools.ant.Project.init(Project.java:178)
>>      at com.intellij.ant.AntMain.a(AntMain.java:315)
>>      at com.intellij.ant.AntMain.a(AntMain.java:277)
>>      at com.intellij.ant.AntMain.main(AntMain.java:139)
>>
>>Build completed with 2 errors
> 
> 
> I'm at a loss on this one.
> 
> 
> 
>>Could one of these items be causing the problem?  Given the error message
> 
> it
> 
>>appears that there are pieces of IDEA that have been built against earlier
>>versions of the EmailTask.  Erik, are you running with a current
> 
> options.jar
> 
>>or are you using an older one?
> 
> 
> I'm running with a hot-off-the-press home-built version of Ant from CVS
> HEAD (so 1.6alpha).  I upgrade it fairly frequently, and will again do
> so this afternoon after I add a 'file' attribute to <fileset>  :)
> 
> Is the crash happening when you try to run a <mail> task?  Or just when
> you try any build file?  Or when IDEA starts up?
> 
>         Erik
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message