i know that flash player something download the first frame of the video to
show on the webpage.. maybe it's that..
I'll try that later this week anyway
2009/2/16 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>
> Salut,
>
> Richard Corsale wrote:
>
>> Hi All!
>>
>> I'm running some tests here and I had the notion to try embeding an flv
>> (Flash video) in a web page served by a GrizzlyAdapter.
>> the video plays, but this error is thrown when it starts
>> --------------------
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.realWriteBytes(GrizzlyOutputBuffer.java:475)
>> at
>> com.sun.grizzly.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
>> at com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:303)
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.writeByte(GrizzlyOutputBuffer.java:533)
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyOutputStream.write(GrizzlyOutputStream.java:114)
>> at
>> API.ServerAdapters.HtmlServerAdapter$1.service(HtmlServerAdapter.java:76)
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:165)
>> at
>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:649)
>> at
>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:567)
>> at
>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:824)
>> at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:153)
>> at
>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>> at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>> at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>> at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.io.IOException: Connection reset by peer
>> at sun.nio.ch.FileDispatcher.write0(Native Method)
>> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
>> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
>> at sun.nio.ch.IOUtil.write(IOUtil.java:75)
>> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
>> at
>> com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:106)
>> at
>> com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:73)
>> at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:309)
>> at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:374)
>> at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.flush(SocketChannelOutputBuffer.java:352)
>> at
>> com.sun.grizzly.http.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:278)
>> at
>> com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:865)
>> at
>> com.sun.grizzly.tcp.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:163)
>> at
>> com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:621)
>> at com.sun.grizzly.tcp.Response.doWrite(Response.java:655)
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.realWriteBytes(GrizzlyOutputBuffer.java:470)
>> ... 21 more
>>
>
> It seems the client is closing the connection before the server has a
> chance to write the complete response. Would you be able to share a test
> case?
>
> A+
>
> - Jeanfrancois
>
>
>
>> ---------------------------
>>
>> is this a bug or am I missing something ? Unless its obvious, I hate
>> submitting bugs that are actually features :)
>> --Richard
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>