title: Jersey ModelValidationException - No Injection source found
body: <p>I got a weird problem, that I absolutely doesn't understand, with <strong>Jersey 2.6.</strong></p>
  
  <p>I can't explain why, but <strong>one of the query parameter</strong> make jersey throw a <strong>ModelValidationException</strong></p>
  
  <pre><code>    @ApiOperation("Save")
      @PUT
      public Response save(
              @HeaderParam("token") final String token,
              @QueryParam("someValue") final SomeValueDTO someValue,
              @QueryParam("anotherParam") final int anotherParam) throws TechnicalException {
  
          return Response.ok().build();
      }
  </code></pre>
  
  <p>the queryParam 'someValue' make jersey throw:</p>
  
  <pre><code>org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization.|[[FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response ch.rodano.studies.api.resources.PagesResource.save(java.lang.String,ch.rodano.studies.api.dto.JSONValueDTO,int) throws ch.rodano.studies.exceptions.RightException,ch.rodano.studies.configuration.exceptions.NoNodeException at index 1.; source='ResourceMethod{httpMethod=PUT, consumedTypes=[], producedTypes=[application/json], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class ch.rodano.studies.api.resources.PagesResource, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@41ed3918]}, definitionMethod=public javax.ws.rs.core.Response ch.rodano.studies.api.resources.PagesResource.save(java.lang.String,ch.rodano.studies.api.dto.JSONValueDTO,int) throws ch.rodano.studies.exceptions.RightException,ch.rodano.studies.configuration.exceptions.NoNodeException, parameters=[Parameter [type=class java.lang.String, source=token, defaultValue=null], Parameter [type=class ch.rodano.studies.api.dto.JSONValueDTO, source=valuesASD, defaultValue=null], Parameter [type=int, source=visitPk, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}']
  </code></pre>
  
  <p>If I use String instead of SomeValueDTO everything's okay.
  SomeValueDTO is a quite classic POJO with an empty constructor and getters/setters. </p>
  
  <p>If someone has an idiea !!</p>