glassfish
  1. glassfish
  2. GLASSFISH-18836

[osgi/cdi] Regression: An OSGi Service cannot be injected into a JAX-RS resource

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b41
    • Fix Version/s: None
    • Component/s: jax-rs, OSGi-JavaEE
    • Labels:
      None

      Description

      This is a regression caused by integration of Jersey 2.0. We have a test that injects an OSGi service into a JAX-RS resource and that's broken. It works fine with 4.0-b41. The steps to reproduce are:

      1. Start gf in foreground so that you can monitor the log messages
        0. asadmin start-domain -v

      1. # Copy the attached 3 jars to autodpeloy/bundles/ & wait for a few seconds to deploy.
      cp sample.uas.api.jar sample.uas.simpleservice.jar sample.uas.simplejaxrs.jar domain1/autodeploy/bundles/

      2. Run the following command which requests the JAX-RS resource:
      wget -O - "http://localhost:8080/simplejaxrs/register?name=admin&password=admin"

      You will see the following exception in server.log:

      [#|2012-06-25T07:37:25.772+0530|SEVERE|44.0|org.glassfish.jersey.server.ApplicationHandler|_ThreadID=14;_ThreadName=http-listener-1(1);|injection failed on org.glassfish.fighterfish.sample.uas.simplejaxrs.Register.uas with interface org.glassfish.fighterfish.sample.uas.api.UserAuthService
      org.jvnet.hk2.component.UnsatisfiedDependencyException: injection failed on org.glassfish.fighterfish.sample.uas.simplejaxrs.Register.uas with interface org.glassfish.fighterfish.sample.uas.api.UserAuthService
      at org.jvnet.hk2.component.InjectionManager.syncDoInject(InjectionManager.java:210)
      at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:103)
      at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:127)
      at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:117)
      at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:84)
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:135)
      at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1390)
      at org.jvnet.hk2.component.Habitat.inject(Habitat.java:1199)
      at org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:170)
      at org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:101)
      at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:116)
      at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:119)
      at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:119)
      at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:119)
      at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:105)
      at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:65)
      at org.glassfish.jersey.process.internal.RequestInvoker$AcceptingInvoker.apply(RequestInvoker.java:272)
      at org.glassfish.jersey.process.internal.AsyncInflectorAdapter.apply(AsyncInflectorAdapter.java:150)
      at org.glassfish.jersey.process.internal.RequestInvoker$2.run(RequestInvoker.java:234)
      at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:237)
      at org.glassfish.jersey.process.internal.RequestInvoker$3.run(RequestInvoker.java:245)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
      at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:44)
      at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:41)
      at org.glassfish.jersey.process.internal.RequestInvoker.apply(RequestInvoker.java:241)
      at org.glassfish.jersey.server.ApplicationHandler$6.run(ApplicationHandler.java:618)
      at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:260)
      at org.glassfish.jersey.server.ApplicationHandler.apply(ApplicationHandler.java:610)
      at org.glassfish.jersey.server.ApplicationHandler.apply(ApplicationHandler.java:583)
      at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:261)
      at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:338)
      at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:304)
      at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:190)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1593)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:285)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:660)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:600)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:337)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:240)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:172)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:169)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:78)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:815)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:567)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:547)
      at java.lang.Thread.run(Thread.java:662)

      #]

        Issue Links

          Activity

          Sanjeeb Sahoo created issue -
          Hide
          Sanjeeb Sahoo added a comment - - edited

          Test jars. For source code, please check out:
          https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/sample/uas

          Show
          Sanjeeb Sahoo added a comment - - edited Test jars. For source code, please check out: https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/sample/uas
          Sanjeeb Sahoo made changes -
          Field Original Value New Value
          Attachment sample.uas.api.jar [ 50415 ]
          Attachment sample.uas.simplejaxrs.war [ 50416 ]
          Attachment sample.uas.simpleservice.jar [ 50417 ]
          Jakub Podlesak made changes -
          Link This issue depends on JERSEY-1024 [ JERSEY-1024 ]
          Hide
          TangYong added a comment -

          Now, the problem is not still fixed. Based on current gf trunk snapshot, once running "http://localhost:8080/simplejaxrs/register?name=admin&password=admin", the sample can not work normally and the following exception[1] happened on server.log (similar to reporter). As a whole, It should result from "JERSEY Integration with CDI".

          In addition, the bundles which I used contained the following bundles[2]

          [1] pl. see the attachment(server.log)
          [2] bundles on another test case
          (1) sample.uas.entities.jar
          (2) sample.uas.api.jar
          (3) sample.uas.ejbservice2.jar
          (4) sample.uas.simplejaxrs.war

          I think that firstly we need to ask the status of JERSEY-1024.

          Show
          TangYong added a comment - Now, the problem is not still fixed. Based on current gf trunk snapshot, once running "http://localhost:8080/simplejaxrs/register?name=admin&password=admin", the sample can not work normally and the following exception [1] happened on server.log (similar to reporter). As a whole, It should result from "JERSEY Integration with CDI". In addition, the bundles which I used contained the following bundles [2] [1] pl. see the attachment(server.log) [2] bundles on another test case (1) sample.uas.entities.jar (2) sample.uas.api.jar (3) sample.uas.ejbservice2.jar (4) sample.uas.simplejaxrs.war I think that firstly we need to ask the status of JERSEY-1024 .
          TangYong made changes -
          Attachment server.log [ 51075 ]
          Hide
          Sanjeeb Sahoo added a comment -

          No, the bug is not fixed and that's why it is still open. Jersey team will fix it before 4.0 gets released.

          Show
          Sanjeeb Sahoo added a comment - No, the bug is not fixed and that's why it is still open. Jersey team will fix it before 4.0 gets released.
          Hide
          Sanjeeb Sahoo added a comment -

          I stil see the issue using 4.0-b81

          Show
          Sanjeeb Sahoo added a comment - I stil see the issue using 4.0-b81
          Hide
          Sanjeeb Sahoo added a comment -

          Jakub,

          I tried using glassfish.zip from your area[1], but it still does not work for me. Here is how you can build the test cases whose binaries have been attached in this issue:

          svn co https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/sample/uas

          mvn clean install

          cp api/target/sample.uas.api.jar simplejaxrs/target/sample.uas.simplejaxrs.war simpleservice/target/sample.uas.simpleservice.jar .../domain1/autodeploy/bundles/

          Start glassfish

          Open http://localhost:8080/simplejaxrs/register?name=admin&password=admin in your browser. You will see following exception:

          [#|2013-03-23T23:25:28.294-0700|SEVERE|glassfish 4.0|org.glassfish.jersey.server.ServerRuntime$Responder|_ThreadID=26;_ThreadName=http-listener-1(1);_TimeMillis=1364106328294;_LevelValue=1000;|
          An exception mapping did not successfully produce and processed a response. Logging the original error.
          org.glassfish.jersey.server.internal.process.MappableException: A MultiException has 1 exceptions. They are:
          1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=UserAuthService,parent=Register,qualifiers=

          {@org.glassfish.osgicdi.OSGiService(dynamic=true, waitTimeout=-1, serviceCriteria=)}),position=-1,optional=false,self=false,unqualified=null,798083002)

          at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:138)
          at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
          at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:91)
          at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:346)
          at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:341)
          at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:101)
          at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:217)
          at org.glassfish.jersey.internal.Errors$1.call(Errors.java:231)
          at org.glassfish.jersey.internal.Errors$1.call(Errors.java:227)
          at org.glassfish.jersey.internal.Errors.process(Errors.java:275)
          at org.glassfish.jersey.internal.Errors.process(Errors.java:257)
          at org.glassfish.jersey.internal.Errors.process(Errors.java:227)
          at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
          at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:191)
          at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:819)
          at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:311)
          at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372)
          at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
          at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218)
          at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175)
          at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
          at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
          at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
          at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
          at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
          at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
          at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
          at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
          at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
          at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
          at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
          at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
          at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
          at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
          at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
          at java.lang.Thread.run(Thread.java:722)
          Caused by: A MultiException has 1 exceptions. They are:
          1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=UserAuthService,parent=Register,qualifiers={@org.glassfish.osgicdi.OSGiService(dynamic=true, waitTimeout=-1, serviceCriteria=)}

          ),position=-1,optional=false,self=false,unqualified=null,798083002)

          at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:74)
          at org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:771)
          at org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:780)
          at org.glassfish.jersey.gf.cdi.CdiComponentProvider$1.inject(CdiComponentProvider.java:256)
          at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)
          at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)
          at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:93)
          at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:82)
          at org.glassfish.fighterfish.sample.uas.simplejaxrs.Register$Proxy$_$$_WeldClientProxy.getLogin(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
          at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)
          ... 44 more
          Caused by: org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=UserAuthService,parent=Register,qualifiers=

          {@org.glassfish.osgicdi.OSGiService(dynamic=true, waitTimeout=-1, serviceCriteria=)}

          ),position=-1,optional=false,self=false,unqualified=null,798083002)
          ... 59 more

          #]

          Sahoo

          [1] http://sysifos-sol.cz.oracle.com/hudson/view/Jersey%202/view/GF%20Integration/job/jersey2-gf4-integration/lastSuccessfulBuild/artifact/gf-main/appserver/distributions/glassfish/target/glassfish.zip

          Show
          Sanjeeb Sahoo added a comment - Jakub, I tried using glassfish.zip from your area [1] , but it still does not work for me. Here is how you can build the test cases whose binaries have been attached in this issue: svn co https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/sample/uas mvn clean install cp api/target/sample.uas.api.jar simplejaxrs/target/sample.uas.simplejaxrs.war simpleservice/target/sample.uas.simpleservice.jar .../domain1/autodeploy/bundles/ Start glassfish Open http://localhost:8080/simplejaxrs/register?name=admin&password=admin in your browser. You will see following exception: [#|2013-03-23T23:25:28.294-0700|SEVERE|glassfish 4.0|org.glassfish.jersey.server.ServerRuntime$Responder|_ThreadID=26;_ThreadName=http-listener-1(1);_TimeMillis=1364106328294;_LevelValue=1000;| An exception mapping did not successfully produce and processed a response. Logging the original error. org.glassfish.jersey.server.internal.process.MappableException: A MultiException has 1 exceptions. They are: 1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=UserAuthService,parent=Register,qualifiers= {@org.glassfish.osgicdi.OSGiService(dynamic=true, waitTimeout=-1, serviceCriteria=)}),position=-1,optional=false,self=false,unqualified=null,798083002) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:138) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:91) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:346) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:341) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:101) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:217) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:231) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:227) at org.glassfish.jersey.internal.Errors.process(Errors.java:275) at org.glassfish.jersey.internal.Errors.process(Errors.java:257) at org.glassfish.jersey.internal.Errors.process(Errors.java:227) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:191) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:819) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:311) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544) at java.lang.Thread.run(Thread.java:722) Caused by: A MultiException has 1 exceptions. They are: 1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=UserAuthService,parent=Register,qualifiers={@org.glassfish.osgicdi.OSGiService(dynamic=true, waitTimeout=-1, serviceCriteria=)} ),position=-1,optional=false,self=false,unqualified=null,798083002) at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:74) at org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:771) at org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:780) at org.glassfish.jersey.gf.cdi.CdiComponentProvider$1.inject(CdiComponentProvider.java:256) at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:93) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:82) at org.glassfish.fighterfish.sample.uas.simplejaxrs.Register$Proxy$_$$_WeldClientProxy.getLogin(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125) ... 44 more Caused by: org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=UserAuthService,parent=Register,qualifiers= {@org.glassfish.osgicdi.OSGiService(dynamic=true, waitTimeout=-1, serviceCriteria=)} ),position=-1,optional=false,self=false,unqualified=null,798083002) ... 59 more #] Sahoo [1] http://sysifos-sol.cz.oracle.com/hudson/view/Jersey%202/view/GF%20Integration/job/jersey2-gf4-integration/lastSuccessfulBuild/artifact/gf-main/appserver/distributions/glassfish/target/glassfish.zip
          Hide
          Jakub Podlesak added a comment -

          Should be fixed in [1] now, will be integrated with jersey 2.0-rc1 into the gf main trunk

          Show
          Jakub Podlesak added a comment - Should be fixed in [1] now, will be integrated with jersey 2.0-rc1 into the gf main trunk
          Hide
          TangYong added a comment -

          Sahoo,

          The issue indeed has been fixed using recent trunk.

          Show
          TangYong added a comment - Sahoo, The issue indeed has been fixed using recent trunk.

            People

            • Assignee:
              Jakub Podlesak
              Reporter:
              Sanjeeb Sahoo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: