Bug 55664 - [websocket] NPE in Util$DecoderMatch during application start
Summary: [websocket] NPE in Util$DecoderMatch during application start
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.0.x-trunk
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 19:01 UTC by Niki Dokovski
Modified: 2013-10-18 07:45 UTC (History)
0 users



Attachments
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]
TestEncodingDecoding.patch

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.