title: MultiException when custom jersey param throws exception
body: <p>NOTE: All code to reproduce this problem is available at <a href="https://gist.github.com/SrikanthRao/c9fc35e6fe22a74ab40c">https://gist.github.com/SrikanthRao/c9fc35e6fe22a74ab40c</a></p>
  
  <p><a href="http://localhost:8080/date/bean?date=2014-13-23">http://localhost:8080/date/bean?date=2014-13-23</a>  (using BeanParam) produces
   "{"code":500,"message":"There was an error processing your request. It has been logged (ID 48be9aa43bd49547)."}" without adding MultiExceptionMapper to jersey. </p>
  
  <p>If I add MultiExceptionMapper to jersey, the above url results in </p>
  
  <p>"Date is either not in YYYY-MM-DD format or is invalid"</p>
  
  <p><a href="http://localhost:8080/date?date=2014-13-23">http://localhost:8080/date?date=2014-13-23</a> (direct @QueryParam parameter) produces
  "Date is either not in YYYY-MM-DD format or is invalid"</p>
  
  <p>Couple of questions:</p>
  
  <ol>
  <li>Is this the right way to handle input validation in a cleaner way?</li>
  <li>I expected this to work without needing to add my own MultiExceptionMapper. Doesn't Jersey support custom *Params inside a POJO that is injected as @BeanParam in resource methods?</li>
  </ol>
  
  <p>Here is the stack trace produced when requesting  (without adding MultiExceptionMapper to jersey). Ofcourse removed long traces. Let me know if you need complete stack trace.</p>
  
  <pre><code>    ERROR [2015-05-04 18:48:33,366] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 0f23e4de758653d6
      ! javax.ws.rs.WebApplicationException: HTTP 400 Bad Request
      ! at io.dropwizard.jersey.params.AbstractParam.&lt;init&gt;(AbstractParam.java:28) ~[dropwizard-jersey-0.8.1.jar:0.8.1]
      ! at com.fun.myapp.LocalDateTimeParam.&lt;init&gt;(LocalDateTimeParam.java:20) ~[classes/:na]
      ! at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_45]
  ...
  ...
  Causing: org.glassfish.hk2.api.MultiException: A MultiException has 3 exceptions.  They are:
  ! 1. javax.ws.rs.WebApplicationException: HTTP 400 Bad Request
  ! 2. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.fun.myapp.PaginationFilters errors were found
  ! 3. java.lang.IllegalStateException: Unable to perform operation: resolve on com.fun.myapp.PaginationFilters
  ! 
  ! at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:88) ~[hk2-locator-2.4.0-b10.jar:na]
  ! at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:252) ~[hk2-locator-2.4.0-b10.jar:na]
  ! at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) ~[hk2-locator-2.4.0-b10.jar:na]
  ! at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471) ~[hk2-locator-2.4.0-b10.jar:na]
  ....
  ....
  WARN  [2015-05-04 18:48:33,401] org.glassfish.jersey.internal.Errors: The following warnings have been detected: WARNING: Unknown HK2 failure detected:
  MultiException stack 1 of 3
  javax.ws.rs.WebApplicationException: HTTP 400 Bad Request
      at io.dropwizard.jersey.params.AbstractParam.&lt;init&gt;(AbstractParam.java:28)
      at com.fun.myapp.LocalDateTimeParam.&lt;init&gt;(LocalDateTimeParam.java:20)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  ...
  ...
  MultiException stack 2 of 3
  java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.fun.myapp.PaginationFilters errors were found
      at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:249)
      at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360)
      at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
  ...
  ...
  MultiException stack 3 of 3
  java.lang.IllegalStateException: Unable to perform operation: resolve on com.fun.myapp.PaginationFilters
      at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:389)
      at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162)
  </code></pre>
  
  <p>I've asked this question on dropwizard-user google group - <a href="https://groups.google.com/forum/#!topic/dropwizard-user/yW-RXSSlspY">https://groups.google.com/forum/#!topic/dropwizard-user/yW-RXSSlspY</a></p>