我已经尝试了几个教程/已解决的问题,但电子邮件连接器似乎对我不起作用。有人建议吗?我添加了一个新的运行时变量_JPI_VM_OPTIONS = Djava.net.preferIPv4Stack=true
,但似乎没有任何工作,我从未收到邮件。我正在尝试向我的个人电子邮件发送邮件,当我打开我的收件箱时,什么都没有。当我以管理员身份登录时,我在失败的任务中找到了电子邮件连接器。所以我的问题是我做的,我的电子邮件连接器不起作用。正如我所说,我已经尝试了几个网络教程/ youtube教程,似乎没有什么对我有用。我在安装bonita时配置了代理。我也试过我的公司smtp(除了gmail smtp)并且它不起作用。
这是我的bonita引擎日志:
13 avr. 2015 15:43:00 org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=57 | HOSTNAME=G3127 | TENANT_ID=1 | The user has executed the task [name = , display name = , id = <20002>, parent process instance = <1001>, root process instance = <1001>, process definition = <5266138508294277224>]
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: charset UTF-8
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: message test test denial
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: html true
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: subject test
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: bcc null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: cc null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: to anwarbenkassou90@gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: from anwarbenkassou90@gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: userName anwarbenkassou90@gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: starttlsSupport false
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: sslSupport false
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: smtpPort 465
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: smtpHost smtp.gmail.com
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: replyTo null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameters
INFO: password ******
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameters
INFO: Headers null
13 avr. 2015 15:43:00 org.bonitasoft.connectors.email.EmailConnector logInputParameter
INFO: headers []
13 avr. 2015 15:43:03 org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
GRAVE: THREAD_ID=97 | HOSTNAME=G3127 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 20004, connectorDefinitionName = EmailDenial] failed. The failure will be handled.
13 avr. 2015 15:43:03 org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
GRAVE: THREAD_ID=97 | HOSTNAME=G3127 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=5266138508294277224 | PROCESS_NAME=RMA | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1001 | ROOT_PROCESS_INSTANCE_ID=1001 | FLOW_NODE_DEFINITION_ID=-7928415675851615386 | FLOW_NODE_INSTANCE_ID=20004 | FLOW_NODE_NAME=Email Denial | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=EmailDenial | CONNECTOR_INSTANCE_ID=20001 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com"
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=5266138508294277224 | PROCESS_NAME=RMA | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1001 | ROOT_PROCESS_INSTANCE_ID=1001 | FLOW_NODE_DEFINITION_ID=-7928415675851615386 | FLOW_NODE_INSTANCE_ID=20004 | FLOW_NODE_NAME=Email Denial | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=EmailDenial | CONNECTOR_INSTANCE_ID=20001 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:332)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:150)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:111)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:125)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:127)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:324)
... 14 more
Caused by: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:151)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:121)
... 15 more
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:72)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:203)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:178)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more
Caused by: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at org.bonitasoft.connectors.email.EmailConnector.executeBusinessLogic(EmailConnector.java:473)
at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77)
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:70)
... 7 more
Caused by: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1970)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at org.bonitasoft.connectors.email.EmailConnector.executeBusinessLogic(EmailConnector.java:471)
... 9 more
Caused by: java.net.UnknownHostException: smtp.gmail.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
... 16 more
谢谢你:)
答案 0 :(得分:1)
如果您在使用代理的公司工作,则该代理很可能阻止该电子邮件。 如果这是问题,您需要使用公司的smtp或向代理的管理员询问。
答案 1 :(得分:1)
正如您在下面的日志条目中所看到的,Bonita XP(或Portal,取决于您的Bonita版本)无法访问主机Package gawk-3.1.7-10.10.amzn1.x86_64 already installed and latest version
。可能的原因是缺少代理配置或禁止访问的防火墙规则。
$1 = <49a266cb12a607172a6adc1e468782f644b56ec22e3202cb735601b4e5524c08>
$2 = <BUCKET>
$3 = <[10/Apr/2015:19:56:22>
$4 = <+0000]>
$5 = <111.11.1111.11>
$6 = <->
$7 = <xxx>
$8 = <REST.GET.OBJECT>
$9 = <something.mp4>
$10 = <"GET>
$11 = </something.mp4>
$12 = <HTTP/1.1">
$13 = <403>
$14 = <AccessDenied>
$15 = <243>
...