[TYRUS-80] org.glassfish.tyrus.server.Server doesn't report a deployment error when changing the optional @WebSocketOpen String to Integer. Created: 02/Feb/13  Updated: 04/Feb/13  Resolved: 04/Feb/13

Status: Resolved
Project: tyrus
Component/s: None
Affects Version/s: 1.0-b10
Fix Version/s: 1.0-b11

Type: Bug Priority: Major
Reporter: Mohamed Taman Assignee: Pavel Bucek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Maven pom.xml dependency version


Tags: adoptajsr


As Per the specification section 4.4.@WebSocketOpen.

.... The decorated method can only have an optional Session parameter, an optional EndpointConfiguration parameter and zero to n String parameters annotated with a @WebSocketPathParam annotation as parameters.
Any Java class using this annotation on a method that does not follow these rules may not be deployed by the implementation and the
error reported to the deployer.

When Deploying and endpoint with method annotated with @WebSocketOpen that has wrong parameter type (String to Integer) it dosen't report that, And when sending a wrong URI template value (String) to this method which has integer value, the engine calls the following method:

   public void onError(Throwable error){
      System.out.println("Error: "+ (error == null ? "Undefined ":error.getMessage()));            

But it always prints "Undefined".

Generated at Wed Feb 10 02:35:58 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.