You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/08/15 18:37:46 UTC

[Bug 56860] New: SpdyAprNpnHandler class cast exception

https://issues.apache.org/bugzilla/show_bug.cgi?id=56860

            Bug ID: 56860
           Summary: SpdyAprNpnHandler class cast exception
           Product: Tomcat 8
           Version: 8.0.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: jmnarloch@gmail.com

I've tried to experiment with the SPDY within Tomcat, but unfortunetly without
much luck.

I've installed the APR in the lib modules
Configured the SpdyAprNpnHandler:

    <Connector port="9443"
               npnHandler="org.apache.coyote.spdy.SpdyAprNpnHandler"
               protocol="HTTP/1.1"
               SSLEnabled="true"
               maxThreads="150"
               scheme="https"
               secure="true"
               sslProtocol="TLS"
               keystoreFile="{user.home}/.keystore" keystorePass="changeit" />

Although finding sample configuration is some hard, any chance that you could
document this somewhere?

And run the server, the SSL nogatition starts as I recieve the warning from the
browser regarding untrusted certificate but afterward the connection is being
reset.

>From logs I was able to find this error:
15-Aug-2014 17:46:46.447 SEVERE [http-nio-9443-exec-9]
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun 
 java.lang.ClassCastException: org.apache.tomcat.util.net.SecureNioChannel
cannot be cast to java.lang.Long
    at
org.apache.coyote.spdy.SpdyAprNpnHandler.process(SpdyAprNpnHandler.java:96)
    at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:217)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)

Do you thing that this is permament, or I might be missing some additional
configuration?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 56860] SpdyAprNpnHandler class cast exception

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56860

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum. Please ask you questions on the users mailing
list.

Regarding the documentation, patches welcome.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org