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 2013/04/05 17:38:39 UTC
[Bug 54807] New: [jsr356] java.lang.ClassCastException:
org.apache.tomcat.websocket.server.WsServerContainer$TemplatePathMatch
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
[Bug 54807] [jsr356] java.lang.ClassCastException:
org.apache.tomcat.websocket.server.WsServerContainer$TemplatePathMatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54807
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This has been fixed in trunk.
--
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