| Application Deployer crashing on undeploy [message #703626] |
Wed, 27 July 2011 15:05  |
Julien Chouinard Messages: 6 Registered: July 2011 |
Junior Member |
|
|
Hi!
I'm trying to have a bundle deploy other bundles and start them using the org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer mostly like the admin app (org.eclipse.virgo.apps.admin) is doing. I've inspired myself from the admin console code and do :
deploymentIdentity = applicationDeployer(bundleFile.getURI(), new DeploymentOptions(false,false,true));
and :
applicationDeployer.undeploy(deploymentIdentity);
It works, but once in a while, it crash with the exception :
service proxy has been destroyed
org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed
at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:105) ~[na:na]
at org.springframework.osgi.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:83) ~[na:na]
at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.lookupService(ServiceDynamicInterceptor.java:430) ~[na:na]
at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:415) ~[na:na]
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) ~[na:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na]
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) ~[na:na]
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) ~[na:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na]
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) ~[na:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na]
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) ~[na:na]
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) ~[na:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[na:na]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[na:na]
I've wired the applicationDeployer at first with a service ref, then with a osgi:listener. In both implementations, the applicationDeployer reference never come back, but still works fine in the virgo's admin webapp.
What am I doing wrong?
|
|
|
|
|
|
| Re: Application Deployer crashing on undeploy [message #705335 is a reply to message #704272] |
Fri, 29 July 2011 14:43   |
Julien Chouinard Messages: 6 Registered: July 2011 |
Junior Member |
|
|
I worked on untangling my dependencies and finally found that I wasn't cleaning my timedTasks, and it still lived while the bundle rebooted. So now, with the fixed dependencies, it does not reboot it anymore on my developer machine. But when I deploy it on my "production" server, it still reboots while undeploying a fragment. The difference between theses environments is that on my local machine, I deploy in pickup and on my server, I deploy a plan with the bundles in the user repository. In my plan I start every bundles that I need in order. Is it possible that when a bundle of a plan reboot everything else gets rebooted? Is there a better way to deploy my app other then having all my bundles in a plan? I really need to learn more on that.
[Updated on: Fri, 29 July 2011 14:43] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01792 seconds