I get the following fatal error starting my dropwizard service if I use the 
Java 8 LocalDate type for a parameter:

! 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 
com.bsitpa.jedan.service.product.rates.models.ProductPlanRate 
com.bsitpa.jedan.service.product.rates.resources.ProductResource.getPlanRate(java.lang.String,java.lang.String,java.time.LocalDate,java.lang.String,int)
 
at index 2.; source='ResourceMethod{httpMethod=GET, consumedTypes=[], 
producedTypes=[application/json], suspended=false, suspendTimeout=0, 
suspendTimeoutUnit=MILLISECONDS, 
invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class 
com.bsitpa.jedan.service.product.rates.resources.ProductResource, 
handlerConstructors=[]}, definitionMethod=public 
com.bsitpa.jedan.service.product.rates.models.ProductPlanRate 
com.bsitpa.jedan.service.product.rates.resources.ProductResource.getPlanRate(java.lang.String,java.lang.String,java.time.LocalDate,java.lang.String,int),
 
parameters=[Parameter [type=class java.lang.String, source=hiosId, 
defaultValue=null], Parameter [type=class java.lang.String, 
source=ratingArea, defaultValue=null], Parameter [type=class 
java.time.LocalDate, source=effectiveDate, defaultValue=null], Parameter 
[type=class java.lang.String, source=planId, defaultValue=null], Parameter 
[type=int, source=ageOnEffectiveDate, defaultValue=null]], 
responseType=class 
com.bsitpa.jedan.service.product.rates.models.ProductPlanRate}, 
nameBindings=[]}']
 ...

I don't have any issues serializing or marshaling LocalDates in any unit 
tests using Jackson.newObjectMapper() ...

Any Help is appreciated!


-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to