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 Custom2Resource RootResource.getCustom2(Custom2) at index 0.; source='ResourceMethod{httpMethod=null, consumedTypes=[], producedTypes=[], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class RootResource, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@5d0a1059]}, definitionMethod=public Custom2Resource RootResource.getCustom2(Custom2), parameters=[Parameter [type=class Custom2, source=name, defaultValue=null]], responseType=class Custom2Resource}, nameBindings=[]}']

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via java.net by Unknown author, 1 year ago
Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found a parameter of type Custom2Resource RootResource.getCustom2(Custom2) at index 0.; source='ResourceMethod{httpMethod
via Java.net JIRA by nobeh5, 1 year ago
Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public Custom2Resource RootResource.getCustom2(Custom2) at index 0.; source='ResourceMethod
via Java.net JIRA by nobeh5, 1 year ago
Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public Custom2Resource RootResource.getCustom2(Custom2) at index 0.; source='ResourceMethod
via Stack Overflow by Saumadip Mazumder
, 2 years ago
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 com.app.cloud.share.Share.shareit(java.lang.String,java.util.Map
via Stack Overflow by MorpheusZero
, 2 years ago
Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public static void com.dylanlegendre.dbhelper.FilePaths.uploadNewFile(java.io.InputStream
via Stack Overflow by Sami
, 1 year ago
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 com.insame.service.UploadFileService.uploadFile
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 Custom2Resource RootResource.getCustom2(Custom2) at index 0.; source='ResourceMethod{httpMethod=null, consumedTypes=[], producedTypes=[], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class RootResource, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@5d0a1059]}, definitionMethod=public Custom2Resource RootResource.getCustom2(Custom2), parameters=[Parameter [type=class Custom2, source=name, defaultValue=null]], responseType=class Custom2Resource}, nameBindings=[]}']
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:467)
at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:163)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:320)
at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:285)
at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
26 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.