在 wso2 工作室中添加 gmail 连接器时出错“提取 Synapse 库时出错:gmail-connector-3.0.8.zip" [英] Getting error while adding gmail connector in wso2 studio "Error while extracting Synapse Library : gmail-connector-3.0.8.zip"

查看:34
本文介绍了在 wso2 工作室中添加 gmail 连接器时出错“提取 Synapse 库时出错:gmail-connector-3.0.8.zip"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现用例 https://docs.wso2.com/display/EI650/Using+the+Gmail+Connector 但在我的情况下,我正在按顺序应用 gmail 连接器,但是在导出 .car 文件时它失败并出现错误提取 Synapse 时出错"库:gmail-connector-3.0.8.zip"

I am trying to implement the use case https://docs.wso2.com/display/EI650/Using+the+Gmail+Connector but in my case I am applying the gmail connector in out sequence but while exporting the .car file it is failing with error "error while extracting Synapse Library : gmail-connector-3.0.8.zip"

我已尝试在控制台中添加 gmail 连接器,但它尚未反映,还尝试重新启动服务器并重新部署几次,但这里没有运气.

I have tried adding the gmail connector in console but it is not reflecting yet, also tried restarting the server and redeploying several times but no luck here.

这是我的项目的完整图片.点击这里查看图片

Here is the full image of my project. click here to see the image

下面是我得到的日志和错误.

Below is the log and error I am getting.

[2019-09-23 18:16:36,147] [EI-Core]  INFO - EventPublisherDeployer Event Publisher deployment held back and in inactive state :MessageFlowConfigurationPublisher.xml, Stream validation exception : Stream org.wso2.esb.analytics.stream.ConfigEntry:1.0.0 does not exist
[2019-09-23 18:16:36,148] [EI-Core]  INFO - EventPublisherDeployer Event Publisher deployment held back and in inactive state :MessageFlowStatisticsPublisher.xml, Stream validation exception : Stream org.wso2.esb.analytics.stream.FlowEntry:1.0.0 does not exist
[2019-09-23 18:16:36,151] [EI-Core] ERROR - LibraryArtifactDeployer Deployment of synapse artifact failed for synapse libray at : C:Program FilesWSO2Enterprise Integrator6.5.0
epositorydeploymentserversynapse-libsgmail-connector-3.0.8.zip : Error while extracting Synapse Library : gmail-connector-3.0.8.zip
org.apache.synapse.SynapseException: Error while extracting Synapse Library : gmail-connector-3.0.8.zip
    at org.apache.synapse.libraries.util.LibDeployerUtils.extractSynapseLib(LibDeployerUtils.java:426)
    at org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:65)
    at org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
    at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
    at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
    at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
    at org.apache.synapse.Axis2SynapseController.deployMediatorExtensions(Axis2SynapseController.java:746)
    at org.apache.synapse.Axis2SynapseController.createSynapseEnvironment(Axis2SynapseController.java:388)
    at org.apache.synapse.ServerManager.start(ServerManager.java:183)
    at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.initESB(ServiceBusInitializer.java:468)
    at org.wso2.carbon.mediation.initializer.ServiceBusInitializer.activate(ServiceBusInitializer.java:206)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
    at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
    at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
    at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
    at org.wso2.carbon.inbound.endpoint.persistence.service.InboundEndpointPersistenceServiceDSComponent.activate(InboundEndpointPersistenceServiceDSComponent.java:49)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
    at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
    at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
    at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
    at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:515)
    at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:291)
    at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.io.FileNotFoundException: C:Program%20FilesWSO2Enterprise%20Integrator6.5.0
epositorydeploymentserversynapse-libsgmail-connector-3.0.8.zip (The system cannot find the path specified)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:225)
    at java.util.zip.ZipFile.<init>(ZipFile.java:155)
    at java.util.zip.ZipFile.<init>(ZipFile.java:126)
    at org.apache.synapse.libraries.util.LibDeployerUtils.extract(LibDeployerUtils.java:448)
    at org.apache.synapse.libraries.util.LibDeployerUtils.extractSynapseLib(LibDeployerUtils.java:424)
    ... 61 more

推荐答案

对于仍有此问题的任何人:

For anyone who still have this problem:

Caused by: java.io.FileNotFoundException: C:Program%20FilesWSO2Enterprise%20Integrator6.5.0
epositorydeploymentserversynapse-libsgmail-connector-3.0.8.zip (The system cannot find the path specified)

是因为名称路径中的空格.我已将我的安装移至 root,所以现在是:

Is because of the spaces in the name path. I've moved my instalation to root, so now it is:

C:WSO2EnterpriseIntegrator6.5.0
epositorydeploymentserversynapse-libs

这解决了那个问题.不要忘记更新所有环境变量以及集成工作室内部服务器上的类路径.

And that solved THAT problem. Don't forget to update all the environmental variables and also the classpath on the server inside integrator studio.

是否解决了由于以下原因导致项目无法运行的问题?

Did this solve the problem of the project not being able to run due to the below?

Unknown mediator referenced by configuration element : {http://ws.apache.org/ns/synapse}gmail

不,它没有.发生这种情况是因为在该 carbon web 管理控制台中未启用连接器.

No it did not..That one happens because the connector is not enabled in that carbon web management console.

一旦您部署连接器,或将连接器复制到 epositorydeploymentserversynapse-libs,它将部署在管理控制台中,如果您单击连接器下的列表,您将在那里看到 gmail 连接器和状态将被禁用,只需单击它以更改为启用并在工作室上重新部署应用程序.

As soon as you deploy the connector, or copy the connector to epositorydeploymentserversynapse-libs it will be deployed in the management console, if you click List under Connectors you will see the gmail connector there and the Status will be Disabled, just click it to change to enabled and redeploy the application on the studio.

这篇关于在 wso2 工作室中添加 gmail 连接器时出错“提取 Synapse 库时出错:gmail-connector-3.0.8.zip"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆