java.lang.IllegalStateException: Unable to perform operation: method inject on com.data.services.server.rest.api.TestResource


Solutions on the web

Solution icon of stackoverflow
Unable to perform operation: method inject on com.data.services.server.rest.api.TestResource

Stack trace

java.lang.IllegalStateException: Unable to perform operation: method inject on com.data.services.server.rest.api.TestResource
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[jersey-container-servlet-core-2.23.2.jar:na]
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[jersey-container-servlet-core-2.23.2.jar:na]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[jersey-container-servlet-core-2.23.2.jar:na]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[jersey-container-servlet-core-2.23.2.jar:na]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[jersey-container-servlet-core-2.23.2.jar:na]
	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)[guice-servlet-4.0.jar:na]
	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)[guice-servlet-4.0.jar:na]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.Server.handle(Server.java:499)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[jetty-io-9.2.13.v20150730.jar:9.2.13.v20150730]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[jetty-util-9.2.14.v20151106.jar:9.2.14.v20151106]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[jetty-util-9.2.14.v20151106.jar:9.2.14.v20151106]
	at java.lang.Thread.run(Thread.java:745)[na:1.8.0_77]

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, 1 year ago