0 Replies Latest reply on Oct 26, 2009 6:46 AM by Marcin Troscianczyk

    Problem with service proxy

    Marcin Troscianczyk Newbie

      Hi

       

      I tried to use fuse servicemix and I encountered a problem with service proxy. I have a bundle exporting a service to OSGi registry (bundle A) and second bundle importing that service (bundle B, this bundle uses webservice). Both of them are deployed in fuse servicemix and works fine. But if bundle B are uninstalled and installed once again I obtain exception:

       

      Exception in thread "pool-9-thread-4" org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed

              at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$1.doWithRetry(ServiceDynamicInterceptor.java:419)

              at org.springframework.osgi.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:86)

              at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$EventSenderRetryTemplate.execute(ServiceDynamicIntercep

      tor.java:94)

              at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.lookupService(ServiceDynamicInterceptor.java:414)

              at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:399)

              at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:78)

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

              at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

              at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

              at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:57)

              at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:40)

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

              at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

              at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

              at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

              at $Proxy93.getAllIndexAsXML(Unknown Source)

              at pl.com.agora.services.element.generate.ElementGenerateEventFactory$1.run(ElementGenerateEventFactory.java:58)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:619)

       

      After restart servicemix it works fine.

       

      How can I resolve this problem?

       

      Thanks,

      Marcin