org.glassfish.jersey.server.model.ModelValidationException

Validation of the application resource model has failed during application initialization. [[WARNING] The (sub)resource method createUser in net.hackr.japiSB.services.v1.UsersResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UsersResource.createUser(net.hackr.japiSB.services.v1.User)', [WARNING] The (sub)resource method getUser in net.hackr.japiSB.services.v1.UsersResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UsersResource.getUser()', [FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UploadFileService.uploadFile(java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition) at index 0.; source='ResourceMethod{httpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class net.hackr.japiSB.services.v1.UploadFileService, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@b2ef33e]}, definitionMethod=public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UploadFileService.uploadFile(java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition), parameters=[Parameter [type=class java.io.InputStream, source=file, defaultValue=null], Parameter [type=class org.glassfish.jersey.media.multipart.FormDataContentDisposition, source=file, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}', [WARNING] The (sub)resource method getModel in net.hackr.japiSB.services.v1.ModelsResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.ModelsResource.getModel()', [WARNING] The (sub)resource method createModel in net.hackr.japiSB.services.v1.ModelsResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.ModelsResource.createModel(net.hackr.japiSB.services.v1.Model)']


Solutions on the web36

Solution icon of stackoverflow
Validation of the application resource model has failed during application initialization. [[WARNING] The (sub)resource method createUser in net.hackr.japiSB.services.v1.UsersResource contains empty path annotation.; source='public

Solution icon of stackoverflow
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.jerser.service.UploadFileService.uploadFile

Solution icon of stackoverflow
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

Solution icon of stackoverflow
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.car.resource.AdminResource.removeUser(com.car.core.User

Solution icon of stackoverflow
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

Solution icon of stackoverflow
Validation of the application resource model has failed during application initialization. [[WARNING] The (sub)resource method createToken in gisportal.rest.token.TokenResource contains empty path annotation.; source='public

Solution icon of github
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 io.example.resource.CollectResource.consumeEvent

Solution icon of stackoverflow
via Stack Overflow by plemay
, 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 void com.fs.ss.communication.jersey.FileUploader.uploadFile(java.io.InputStream

Solution icon of stackoverflow
multiple parameters with no annotation. Unable to resolve the injection source.; source='ResourceMethod{httpMethod=POST, consumedTypes=[application/xml], producedTypes=[text/plain], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS

Solution icon of stackoverflow
Validation of the application resource model has failed during application initialization. [[FATAL] No injection source found for a parameter of type public void org.idnsrules.engine.system.handler.SystemSiteHandler.uploadSystemSiteFile

Stack trace

  • org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. [[WARNING] The (sub)resource method createUser in net.hackr.japiSB.services.v1.UsersResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UsersResource.createUser(net.hackr.japiSB.services.v1.User)', [WARNING] The (sub)resource method getUser in net.hackr.japiSB.services.v1.UsersResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UsersResource.getUser()', [FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UploadFileService.uploadFile(java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition) at index 0.; source='ResourceMethod{httpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class net.hackr.japiSB.services.v1.UploadFileService, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@b2ef33e]}, definitionMethod=public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.UploadFileService.uploadFile(java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition), parameters=[Parameter [type=class java.io.InputStream, source=file, defaultValue=null], Parameter [type=class org.glassfish.jersey.media.multipart.FormDataContentDisposition, source=file, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}', [WARNING] The (sub)resource method getModel in net.hackr.japiSB.services.v1.ModelsResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.ModelsResource.getModel()', [WARNING] The (sub)resource method createModel in net.hackr.japiSB.services.v1.ModelsResource contains empty path annotation.; source='public javax.ws.rs.core.Response net.hackr.japiSB.services.v1.ModelsResource.createModel(net.hackr.japiSB.services.v1.Model)'] at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:528) at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:166) at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:327) 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.internal.Errors.processWithException(Errors.java:286) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:324) at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:338) at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:171) at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:363) at javax.servlet.GenericServlet.init(GenericServlet.java:158) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:779) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1452) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months 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, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
25 more bugmates