users@grizzly.java.net

Re: BUFFER_UNDERFLOW problem with SSL

From: John ROM <snake-john_at_gmx.de>
Date: Wed, 05 Nov 2008 07:37:51 +0100

Hi Amy,
could you set log level to ALL?
just to make sure, your Filter is not using
com.sun.grizzly.filter.ParserProtocolFilter but you have written a custom ProtocolFilter?

could you share your code?

Many Greetings
John

-------- Original-Nachricht --------
> Datum: Tue, 04 Nov 2008 17:45:55 -0800
> Von: Amy Kang <Amy.Kang_at_Sun.COM>
> An: users_at_grizzly.dev.java.net
> Betreff: BUFFER_UNDERFLOW problem with SSL

> Hi,
>
> Have anyone seen similar problem using SSL ? My server uses
> SSLReadFilter at front of my own protocol parser and filter. However
> my parser and filter were not get called and the client does not get
> a reply after sent its first application data packet. I'm using
> self-signed
> certificate on server side and client uses a trust all default
> TrustManager,
> Grizzly 1.8.6.3
>
> Nov 4, 2008 2:57:43 AM com.sun.grizzly.Controller doSelect
> FINE: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_716cb7
> Nov 4, 2008 2:57:43 AM com.sun.grizzly.Controller doSelect
> FINE: OP_READ on sun.nio.ch.SelectionKeyImpl_at_1a61172
> Nov 4, 2008 2:57:43 AM com.sun.grizzly.Controller pollContext
> FINE: pollContext(..) Context : com.sun.grizzly.Context_at_6ed322
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> FINE: start unwrap. buffer: java.nio.HeapByteBuffer[pos=0 lim=16384
> cap=16384] secured: java.nio.HeapByteBuffer[pos=100 lim=20480 cap=20480]
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> FINE: after unwrap. buffer: java.nio.HeapByteBuffer[pos=0 lim=16384
> cap=16384] secured: java.nio.HeapByteBuffer[pos=0 lim=20480 cap=20480]
> consumed: 100 produced: 0 status: OK
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> FINE: start unwrap. buffer: java.nio.HeapByteBuffer[pos=0 lim=16384
> cap=16384] secured: java.nio.HeapByteBuffer[pos=139 lim=20480 cap=20480]
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> FINE: after unwrap. buffer: java.nio.HeapByteBuffer[pos=0 lim=16384
> cap=16384] secured: java.nio.HeapByteBuffer[pos=0 lim=20480 cap=20480]
> consumed: 139 produced: 0 status: OK
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> FINE: start unwrap. buffer: java.nio.HeapByteBuffer[pos=0 lim=16384
> cap=16384] secured: java.nio.HeapByteBuffer[pos=0 lim=20480 cap=20480]
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> FINE: after unwrap. buffer: java.nio.HeapByteBuffer[pos=0 lim=16384
> cap=16384] secured: java.nio.HeapByteBuffer[pos=0 lim=20480 cap=20480]
> consumed: 0 p roduced: 0 status: BUFFER_UNDERFLOW
> Nov 4, 2008 2:57:45 AM com.sun.grizzly.util.SSLUtils unwrap
> .....
>
> Thanks,
> Amy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail