You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Henrik Ă˜sterlund Gram <he...@datek.no> on 2006/07/12 16:43:31 UTC

TransportType.getEnvelopeType() -> java.lang.NoSuchMethodError ?

I'm puzzled by the error below.  I simply called iosession.write(<some bytebuffer>) - there are no filters in the chain by the way.

 

Took me forever to find this too by the way; I think it's a terribly bad idea to not propagate exceptions back up the callstack.

 

(using mina 0.9.4)

 

java.lang.NoSuchMethodError: org.apache.mina.common.TransportType.getEnvelopeType()Ljava/lang/Class;

       at org.apache.mina.common.support.AbstractIoFilterChain$1.filterWrite(AbstractIoFilterChain.java:122)

       at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:583)

       at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:51)

       at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filterWrite(AbstractIoFilterChain.java:799)

       at org.apache.mina.filter.ThreadPoolFilter.filterWrite(ThreadPoolFilter.java:746)

       at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:583)

       at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:51)

       at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filterWrite(AbstractIoFilterChain.java:799)

       at org.apache.mina.common.support.AbstractIoFilterChain$2.filterWrite(AbstractIoFilterChain.java:212)

       at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:583)

       at org.apache.mina.common.support.AbstractIoFilterChain.filterWrite(AbstractIoFilterChain.java:574)

       at org.apache.mina.transport.socket.nio.SocketSessionImpl.write0(SocketSessionImpl.java:176)

       at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java:136)

 

 


Re: TransportType.getEnvelopeType() -> java.lang.NoSuchMethodError ?

Posted by peter royal <pr...@apache.org>.
On Jul 12, 2006, at 10:43 AM, Henrik Ă˜sterlund Gram wrote:
> Took me forever to find this too by the way; I think it's a  
> terribly bad idea to not propagate exceptions back up the callstack.

In this case, I agree. Exceptions that occur synchronously should be  
propagated. There's also a good argument for the unified place to  
receive all exceptions though :)

> java.lang.NoSuchMethodError:  
> org.apache.mina.common.TransportType.getEnvelopeType()Ljava/lang/ 
> Class;
>
>        at org.apache.mina.common.support.AbstractIoFilterChain 
> $1.filterWrite(AbstractIoFilterChain.java:122)
>
>        at  
> org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilte 
> rWrite(AbstractIoFilterChain.java:583)

Do you have an older MINA version on your classpath?

-pete


-- 
proyal@apache.org - http://fotap.org/~osi