Dear Trustin,
You're exectly right. I've pointed source codes for imported JAR files of
MINA core. I've seen that getMessageTypes() methode is returning null, i
added messagetypes such as;
private static final Set TYPES;
static
{
Set types = new HashSet();
types.add( AcknowledgeMessage.class );
TYPES = Collections.unmodifiableSet( types );
}
public Set getMessageTypes()
{
return TYPES;
}
But, this time i'm searching why put methode is not filling the ByteBuffer
buff. Buff is sending to peer as all zeros. Maybe you have an advice.
Thanks for your interest have a good time.
Murat
-----Original Message-----
From: Trustin Lee [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:22 AM
To: [email protected]
Subject: Re: Exception at ExecutorFilter$ProcessEventsRunnable.run() line:
306
On 12/20/06, Murat OZDEMIR <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
> i'm trying to send an acknowledge message when received a message from
> client. after receiving message messageReceived methode is executed
> successfully, but before calling encode method (in MessageEncoder)
> something causes an exception. The details are given below. Any help
> will be appriciated. Thank you...
>
> Murat OZDEMiR
>
>
>
> EXECEPTION MESSAGE:
> 505758 [AnonymousIoService-2] INFO
> tr.com.mobiliz.commserver.blo.GprsMessageHandler - [/127.0.0.1:2093]
> EXCEPTION:
> java.lang.NullPointerException
> at
>
> org.apache.mina.filter.codec.demux.DemuxingProtocolCodecFactory$Protoc
> olEnco
> derImpl.<init>(DemuxingProtocolCodecFactory.java:181)
Assuming that you are using the latest stable release of MINA (1.0.1)...
What do your MessageEncoder implementations return when getMessageTypes() is
invoked? It seems like one of your implementation is returning null.
Please let me know if I am correct.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6