dev@grizzly.java.net

Re: ClassCastException when using atmosphere-chat-0.6.5 on Glassfish Server open sources 3.0.1 with SSL

From: jfarcand <jfarcand.oss_at_gmail.com>
Date: Mon, 14 Feb 2011 08:14:58 -0500

Salut,

this is a bug in Grizzly that I think has been fixed in 3.1. Alexey?

A+

-- Jeanfrancois

On 11-02-11 10:16 PM, Toan Ng. wrote:
> Dear!
>
> I have exception when using atmosphere-chat-0.6.5 on Glassfish Server
> open sources 3.0.1 with SSL (https)
>
> SEVERE: ProtocolChain exception
> java.lang.ClassCastException:
> org.apache.catalina.connector.Request$RequestAttachment cannot be cast
> to com.sun.grizzly.util.ThreadAttachment
> at
> com.sun.grizzly.filter.SSLReadFilter.saveSecuredBufferRemainders(SSLReadFilter.java:608)
> at com.sun.grizzly.filter.SSLReadFilter.postExecute(SSLReadFilter.java:214)
> at
> com.sun.grizzly.DefaultProtocolChain.postExecuteProtocolFilter(DefaultProtocolChain.java:164)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>
> Thank you and best regards!
> ----------------------------------
> Nguyen Dinh Toan
>
> Mobile: +84 972 384 348
> Email: toan.nd_at_iesvn.com
>
> Phòng Nghiên cứu và Phát triển - Research and Development Department
> Công ty Giải pháp Tích hợp Vi tính Viễn thông Việt Nam - Integrated
> e-Solutions Vietnam JSC
> Thành viên nhóm Integrated e-Solutions - A company of Integrated
> e-Solutions Group
> 53/10 Tran Khanh Du, District 1, Hochiminh City, Vietnam
> Website: http://www.iesvn.com
>
> Công việc của chúng tôi là tạo nên giá trị gia tăng cho bạn!
> Our work is to add to your value!
>
>
> Thank you and best regards!
> ----------------------------------
> Nguyen Dinh Toan
>
> Mobile: +84 972 384 348
> Email: toan.nd_at_iesvn.com
>
> Phòng Nghiên cứu và Phát triển - Research and Development Department
> Công ty Giải pháp Tích hợp Vi tính Viễn thông Việt Nam - Integrated
> e-Solutions Vietnam JSC
> Thành viên nhóm Integrated e-Solutions - A company of Integrated
> e-Solutions Group
> 53/10 Tran Khanh Du, District 1, Hochiminh City, Vietnam
> Website: http://www.iesvn.com
>
> Công việc của chúng tôi là tạo nên giá trị gia tăng cho bạn!
> Our work is to add to your value!