tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54807] New: [jsr356] java.lang.ClassCastException: org.apache.tomcat.websocket.server.WsServerContainer$TemplatePathMatch
Date Fri, 05 Apr 2013 15:38:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54807

            Bug ID: 54807
           Summary: [jsr356] java.lang.ClassCastException:
                    org.apache.tomcat.websocket.server.WsServerContainer$T
                    emplatePathMatch
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: jfarcand@apache.org
    Classification: Unclassified

Caused by: java.lang.ClassCastException:
org.apache.tomcat.websocket.server.WsServerContainer$TemplatePathMatch cannot
be cast to java.lang.Comparable
    at java.util.TreeMap.compare(TreeMap.java:1188)
    at java.util.TreeMap.put(TreeMap.java:531)
    at java.util.TreeSet.add(TreeSet.java:255)
    at
org.apache.tomcat.websocket.server.WsServerContainer.addEndpoint(WsServerContainer.java:144)
    at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:118)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5195)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 11 more

Reproducible when a path is defined as {path}. For example:

    @Override
    public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends
Endpoint>> endpointClasses) {
        logger.debug("{} detected",
JSR356ServerEndpointConfig.class.getName());
        return new HashSet<ServerEndpointConfig>() {{
            add(ServerEndpointConfig.Builder.create(JSR356Endpoint.class,
"/{path}").configurator(c).build());
        }};
    }

-- 
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


Mime
View raw message