After an update I got the same error. There are two issues. The first is
that in the Event class the cast is to an Exception rather than a
Throwable, so Errors cause a cast failure that masks the underlying
problem. I've checked in a trivial fix to that.
The underlying issue is the use of _log.isTraceEnabled() in AMQChannel,
introduced in the last revision. The problem here is that there are two
versions of log4j:
management/core/lib/log4j/log4j-1.2.9.jar
common/lib/logging-log4j/log4j-1.2.13.jar
I think the older one (in management) is being picked up first from the
classpath used for the 'ant test'. Removing that version seems still to
allow build to complete successfully, so perhaps that would be the best
approach?
Martin Ritchie wrote:
On 24/10/06, Kodichath, Suresh <[EMAIL PROTECTED]> wrote:
Hi,
I am seeing the following failure in the Java tests (checked-out the new
trunk this morning), and the test hangs there for a long time after
this. Anybody know why this is happening?.
[junit] 4103 [pool-9-thread-1] WARN
org.apache.qpid.server.protocol.AMQPFastProtocolHandler -
[anonymous(16290468)] Unexpected exception from exceptionCaught handler.
[junit] java.lang.ClassCastException: java.lang.NoSuchMethodError
[junit] at org.apache.qpid.pool.Event.<init>(Event.java:48)
[junit] at
org.apache.qpid.pool.PoolingFilter.exceptionCaught(PoolingFilter.java:12
8)
[junit] at
org.apache.mina.filter.ReferenceCountingIoFilter.exceptionCaught(Referen
ceCountingIoFilter.java:80)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.callNextExceptionCa
ught(AbstractIoFilterChain.java:551)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.access$900(Abstract
IoFilterChain.java:52)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.excepti
onCaught(AbstractIoFilterChain.java:771)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain$1.exceptionCaught(A
bstractIoFilterChain.java:105)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.callNextExceptionCa
ught(AbstractIoFilterChain.java:551)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.fireExceptionCaught
(AbstractIoFilterChain.java:542)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageRece
ived(AbstractIoFilterChain.java:506)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Abstrac
tIoFilterChain.java:52)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.message
Received(AbstractIoFilterChain.java:777)
[junit] at
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(S
impleProtocolDecoderOutput.java:60)
[junit] at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Protoco
lCodecFilter.java:185)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageRece
ived(AbstractIoFilterChain.java:502)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Abstrac
tIoFilterChain.java:52)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.message
Received(AbstractIoFilterChain.java:777)
[junit] at org.apache.qpid.pool.Event.process(Event.java:77)
[junit] at
org.apache.qpid.pool.PoolingFilter.fireEvent(PoolingFilter.java:65)
[junit] at
org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:13
5)
[junit] at
org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(Referen
ceCountingIoFilter.java:96)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageRece
ived(AbstractIoFilterChain.java:502)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Abstrac
tIoFilterChain.java:52)
[junit] at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.message
Received(AbstractIoFilterChain.java:777)
[junit] at org.apache.qpid.pool.Event.process(Event.java:77)
[junit] at org.apache.qpid.pool.Job.processAll(Job.java:78)
[junit] at org.apache.qpid.pool.Job.run(Job.java:100)
[junit] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
r.java:650)
[junit] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
va:675)
[junit] at java.lang.Thread.run(Thread.java:595)
Thanks!,
Suresh
I just did a fresh checkout and all compiled well on java 1.5.0_07-b03