При попытке отправить электронную почту с помощью коннектора Gmail возникает FileNotFoundException - PullRequest
1 голос
/ 10 июля 2020

Я использую WSO2-Integration-Studio-7.0.2- linux -gtk-x86_64.

Я пробовал шаги в https://ei.docs.wso2.com/en/latest/micro-integrator/use-cases/tutorials/using-the-gmail-connector/

Когда я выполняю запрос POST в учебнике от Micro Integrator, я получаю следующее:

[2020-07-11 00:38:22,317] ERROR {org.wso2.micro.integrator.registry.MicroIntegratorRegistry} - Metadata file cannot be found at /data/wso2-products/WSO2-Integration-Studio-7.0.2-linux-gtk-x86_64/IntegrationStudio/runtime/microesb/registry/governance/connectors/Gmail/.metadata/accessToken.meta java.io.FileNotFoundException: /data/wso2-products/WSO2-Integration-Studio-7.0.2-linux-gtk-x86_64/IntegrationStudio/runtime/microesb/registry/governance/connectors/Gmail/.metadata/accessToken.meta (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileReader.<init>(FileReader.java:72)
    at org.wso2.micro.integrator.registry.MicroIntegratorRegistry.getMetadata(MicroIntegratorRegistry.java:1027)
    at org.wso2.micro.integrator.registry.MicroIntegratorRegistry.readNonXML(MicroIntegratorRegistry.java:877)
    at org.wso2.micro.integrator.registry.MicroIntegratorRegistry.lookup(MicroIntegratorRegistry.java:206)
    at org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegistry.java:66)
    at org.apache.synapse.mediators.GetPropertyFunction.evaluate(GetPropertyFunction.java:326)
    at org.apache.synapse.mediators.GetPropertyFunction.call(GetPropertyFunction.java:115)
    at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:181)
    at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102)
    at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:675)
    at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:215)
    at org.jaxen.BaseXPath.evaluate(BaseXPath.java:175)
    at org.apache.synapse.util.xpath.SynapseXPath.stringValueOf(SynapseXPath.java:405)
    at org.apache.synapse.mediators.builtin.PropertyMediator.getResultValue(PropertyMediator.java:371)
    at org.apache.synapse.mediators.builtin.PropertyMediator.mediate(PropertyMediator.java:110)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:109)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
    at org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:169)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:109)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
    at org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:133)
    at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:148)
    at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:84)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:109)
    at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:260)
    at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:805)
    at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:303)
    at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:578)
    at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:195)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
    at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:284)
    at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

Когда я проверил каталог «/data/wso2-products/WSO2-Integration-Studio-7.0. 2- linux -gtk-x86_64 / IntegrationStudio / runtime / microesb / registry / Governance / Connectors / Gmail / ", нет папки .metadata. Есть ли в документе пропущенный шаг?

1 Ответ

0 голосов
/ 22 августа 2020

Работало с Micro Integrator 1.2.0. Лучший способ - загрузить Integration Studio 7.1.0 со встроенной версией 1.2.0. Откройте существующее рабочее пространство с помощью новой Studio. Не забудьте скопировать существующие конфигурации из файла deployment.toml.

...