gpt4 book ai didi

java - Virgo 的应用程序部署程序 API 在取消部署时崩溃

转载 作者:行者123 更新时间:2023-11-30 09:47:07 26 4
gpt4 key购买 nike

我正在尝试让一个包部署其他包并使用 org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer 启动它们,主要就像管理应用程序 (org.eclipse.virgo.apps.admin) 正在做的那样.我从管理控制台代码中获得灵感并执行以下操作:deploymentIdentity = applicationDeployer(bundleFile.getURI(), new DeploymentOptions(false,false,true));

和:

applicationDeployer.undeploy(deploymentIdentity);

它可以工作,但偶尔会崩溃,但出现以下异常:

    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]

我首先使用服务引用连接 applicationDeployer,然后使用 osgi:listener。在这两种实现中,applicationDeployer 引用永远不会回来,但在 virgo 的管理 webapp 中仍然可以正常工作。我做错了什么?

最佳答案

感谢 Glym Normington 在 Eclipse 论坛上为我提供答案:http://www.eclipse.org/forums/index.php/t/225554/

关于java - Virgo 的应用程序部署程序 API 在取消部署时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6849906/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com