Bug 55664 - [websocket] NPE in Util$DecoderMatch during application start
[websocket] NPE in Util$DecoderMatch during application start
Product: Tomcat 8
Classification: Unclassified
Component: Catalina
PC All
: P2 normal (vote)
: ----
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2013-10-17 19:01 UTC by Niki Dokovski
Modified: 2013-10-18 07:45 UTC (History)
0 users

TestEncodingDecoding.patch (6.62 KB, patch)
2013-10-17 19:01 UTC, Niki Dokovski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Niki Dokovski 2013-10-17 19:01:26 UTC
Created attachment 30934 [details]

NPE is thrown when WS endpoint has associated encoder or decoder with type using generics. Example: Decoder.Text<List<String>>

Here I attach patch of org.apache.tomcat.websocket.pojo.TestEncodingDecoding illustrating the case.
Comment 1 Mark Thomas 2013-10-18 07:45:26 UTC
Thanks for the report and the test case.

I have fixed this in 8.0.x for 8.0.0-RC6 onwards and in 7.0.x for 7.0.48 onwards.