You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Tasneem Yusuf <ta...@gmail.com> on 2008/12/11 13:41:41 UTC

Mina write problem.

Hi,
    I am using Mina 1.1.0 for developing a server using Java 1.5. I'm facing
a problem with writing data back on the network. I receive some data and do
some processing and then send some response by writing to the IOSession .
But , the data for some reason is not being written to the session. pasted
is a log of a successful and and unsuccessful transaction.

*SUCCESSFUL :

*ClockServer : Tue Dec 09 12:10:53 CST 2008 : server started
CREATED
ClockServer : Tue Dec 09 12:10:53 CST 2008 : OPENED
ClockServer : Tue Dec 09 12:10:53 CST 2008 : Session Connected is : true
ClockServer : Tue Dec 09 12:10:53 CST 2008 : RECEIVED: HeapBuffer[pos=0
lim=76 cap=2048: E0 00 00 80 44 00 00 00 10 00 D2 FF A3 DE E8 CC A0 AD E5 1C
02 00 0E 00 00 00 32 30 30 38 31 32 30 39 31 32 31 30 31 31 4C 00 01 00 00
00 FA 03 00 05 00 00 00 44 65 76 30 31 04 00 05 00 00 00 42 65 6E 63 68 27
00 01 00 00 00 01]
ClockServer : Tue Dec 09 12:10:53 CST 2008 : DeviceAlive : Creating BAC
Object
ClockServer : Tue Dec 09 12:10:53 CST 2008 : DeviceAlive : BAC Object
created
ClockServer : Tue Dec 09 12:10:53 CST 2008 : SENT: HeapBuffer[pos=0 lim=20
cap=32: E0 00 00 80 0C 00 00 00 10 00 00 00 A3 DE E8 CC A0 AD E5 1C]
ClockServer : Tue Dec 09 12:10:53 CST 2008 : Message SENT
ClockServer : Tue Dec 09 12:11:05 CST 2008 :  *********************** CLOSED


*UNSUCCESSFUL : *

CREATED
ClockServer : Wed Dec 10 20:27:20 CST 2008 : OPENED
ClockServer : Wed Dec 10 20:27:20 CST 2008 : Session Connected is : true
ClockServer : Wed Dec 10 20:27:20 CST 2008 : RECEIVED: HeapBuffer[pos=0
lim=76 cap=2048: E0 00 00 80 44 00 00 00 10 00 D2 FF 0F 26 40 49 E1 C4 AF 2F
02 00 0E 00 00 00 32 30 30 38 31 32 31 30 32 30 32 36 35 35 4C 00 01 00 00
00 FA 03 00 05 00 00 00 44 65 76 30 31 04 00 05 00 00 00 42 65 6E 63 68 27
00 01 00 00 00 01]
ClockServer : Wed Dec 10 20:27:21 CST 2008 : DeviceAlive : Creating BAC
Object
ClockServer : Wed Dec 10 20:27:21 CST 2008 : DeviceAlive : BAC Object
created
ClockServer : Wed Dec 10 20:27:21 CST 2008 :  *********************** CLOSED


Could anyone please help me figuring out why this could be happening ?

Thanks,
-- 
Tasneem Yusuf

Face the sun and the shadow will fall behind u.

Re: Mina write problem.

Posted by Ashish <pa...@gmail.com>.
Is it possible for you to provide the sample snippet and can you try
this again with MINA 2.0 M4



On Thu, Dec 11, 2008 at 6:11 PM, Tasneem Yusuf <ta...@gmail.com> wrote:
> Hi,
>    I am using Mina 1.1.0 for developing a server using Java 1.5. I'm facing
> a problem with writing data back on the network. I receive some data and do
> some processing and then send some response by writing to the IOSession .
> But , the data for some reason is not being written to the session. pasted
> is a log of a successful and and unsuccessful transaction.
>
> *SUCCESSFUL :
>
> *ClockServer : Tue Dec 09 12:10:53 CST 2008 : server started
> CREATED
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : OPENED
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : Session Connected is : true
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : RECEIVED: HeapBuffer[pos=0
> lim=76 cap=2048: E0 00 00 80 44 00 00 00 10 00 D2 FF A3 DE E8 CC A0 AD E5 1C
> 02 00 0E 00 00 00 32 30 30 38 31 32 30 39 31 32 31 30 31 31 4C 00 01 00 00
> 00 FA 03 00 05 00 00 00 44 65 76 30 31 04 00 05 00 00 00 42 65 6E 63 68 27
> 00 01 00 00 00 01]
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : DeviceAlive : Creating BAC
> Object
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : DeviceAlive : BAC Object
> created
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : SENT: HeapBuffer[pos=0 lim=20
> cap=32: E0 00 00 80 0C 00 00 00 10 00 00 00 A3 DE E8 CC A0 AD E5 1C]
> ClockServer : Tue Dec 09 12:10:53 CST 2008 : Message SENT
> ClockServer : Tue Dec 09 12:11:05 CST 2008 :  *********************** CLOSED
>
>
> *UNSUCCESSFUL : *
>
> CREATED
> ClockServer : Wed Dec 10 20:27:20 CST 2008 : OPENED
> ClockServer : Wed Dec 10 20:27:20 CST 2008 : Session Connected is : true
> ClockServer : Wed Dec 10 20:27:20 CST 2008 : RECEIVED: HeapBuffer[pos=0
> lim=76 cap=2048: E0 00 00 80 44 00 00 00 10 00 D2 FF 0F 26 40 49 E1 C4 AF 2F
> 02 00 0E 00 00 00 32 30 30 38 31 32 31 30 32 30 32 36 35 35 4C 00 01 00 00
> 00 FA 03 00 05 00 00 00 44 65 76 30 31 04 00 05 00 00 00 42 65 6E 63 68 27
> 00 01 00 00 00 01]
> ClockServer : Wed Dec 10 20:27:21 CST 2008 : DeviceAlive : Creating BAC
> Object
> ClockServer : Wed Dec 10 20:27:21 CST 2008 : DeviceAlive : BAC Object
> created
> ClockServer : Wed Dec 10 20:27:21 CST 2008 :  *********************** CLOSED
>
>
> Could anyone please help me figuring out why this could be happening ?
>
> Thanks,
> --
> Tasneem Yusuf
>
> Face the sun and the shadow will fall behind u.
>



-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog

My Photo Galleries: http://www.pbase.com/ashishpaliwal