[Users] Problem with Incoming Mail

Ludovic Brule ludovic.brule at gmail.com
Mon Jul 22 11:06:55 CEST 2013


Bonjour

Des news?

Cordialement
Ludovic Brulé

Le 19 juil. 2013 à 11:58, Ludovic.BRULE at akka.eu a écrit :

> Bonjour
> 
> Je souhaiterais réaliser la mise en place de l'invocation de service suite à la réception d'un mail dans ma messagerie IMAP.
> 
> J'ai configuré mon provider et mon consumer comme si dessous :
> 
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <jbi:jbi xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:cdk5="http://petals.ow2.org/components/extensions/version-5" xmlns:generatedNs="http://test.akka" xmlns:mail="http://petals.ow2.org/components/mail/version-3" version="1.0">
>     <jbi:services binding-component="true">
>         <jbi:provides endpoint-name="MailServiceEndpoint" interface-name="mail:Mail" service-name="mail:MailService">
> 
>             <!--CDK Properties-->
>             <cdk5:timeout>30000</cdk5:timeout>
>             <cdk5:validate-wsdl>true</cdk5:validate-wsdl>
>             <cdk5:forward-security-subject>false</cdk5:forward-security-subject>
>             <cdk5:forward-message-properties>false</cdk5:forward-message-properties>
>             <cdk5:forward-attachments>false</cdk5:forward-attachments>
>             <cdk5:wsdl>MailService.wsdl</cdk5:wsdl>
> 
>             <!--Component's Specific Properties-->
>             <mail:scheme>smtp</mail:scheme>
>             <mail:host>********</mail:host>
>             <mail:port>25</mail:port>
>             <mail:from>ludovic.brule at akka.eu</mail:from>
>             <mail:reply/>
>             <mail:to>ludovic.brule at akka.eu</mail:to>
>             <mail:subject>Mail  du BUS Petals</mail:subject>
>             <mail:send-mode>content-and-attachments</mail:send-mode>
>             <mail:content-type>text/plain</mail:content-type>
>         </jbi:provides>
>         <jbi:consumes endpoint-name="HelloLudoPort" interface-name="generatedNs:HelloLudo" service-name="generatedNs:HelloLudo">
> 
>             <!--CDK Properties-->
>             <cdk5:timeout>30000</cdk5:timeout>
>             <cdk5:operation>generatedNs:helloWorld</cdk5:operation>
>             <cdk5:mep>InOut</cdk5:mep>
> 
>             <!--Component's Specific Properties-->
>             <mail:scheme>imap</mail:scheme>
>             <mail:host>********</mail:host>
>             <mail:port>143</mail:port>
>             <mail:user>ludovic.brule</mail:user>
>             <mail:password>********</mail:password>
>             <mail:folder>TEST</mail:folder>
>             <mail:period>60000</mail:period>
>         </jbi:consumes>
>     </jbi:services>
> </jbi:jbi>
> 
> toutefois lorsque je poste un mail dans le répertoire  TEST, j'obtiens l'erreur suivante : 
> 
> 
> 
> 0 2013/07/19 11:54:38,124 GMT+0200 MONIT [Petals.Container.Components.petals-bc-mail] : traceCode = 'consumeFlowStepBegin', flowInstanceId = '3974aec0-f059-11e2-9804-4437e6c0d6e3', flowStepId = '3974aec1-f059-11e2-9804-4437e6c0d6e3', flowInterfaceName = '{http://test.akka}HelloLudo', flowServiceName = '{http://test.akka}HelloLudo', flowEndpointName = 'HelloLudoPort',  flowOperationName = '{http://test.akka}helloWorld', scheme = 'imap', host = 'imap.akka.eu', port = '143', user = 'ludovic.brule', folder = 'TEST'
> 0 2013/07/19 11:54:38,128 GMT+0200 INFO [Petals.Container.Components.petals-bc-mail] : process an incoming email
> 0 2013/07/19 11:54:38,174 GMT+0200 INFO [Petals.Container.Components.petals-bc-mail] : A text part is set to JBI Exchange content (wrap in <body> element)
> 0 2013/07/19 11:54:38,254 GMT+0200 WARNING [Petals.Container.Components.petals-bc-mail] : Error when sending JBI request
> javax.mail.MessagingException: A20 BAD Invalid Fetch argument RFC822.HEADER.LINES;
>   nested exception is:
>     com.sun.mail.iap.BadCommandException: A20 BAD Invalid Fetch argument RFC822.HEADER.LINES
>     at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:744)
>     at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:769)
>     at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:531)
>     at com.sun.mail.imap.IMAPMessage.getRecipients(IMAPMessage.java:292)
>     at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:550)
>     at org.ow2.petals.bc.mail.listeners.ExternalListener.setProperties(ExternalListener.java:174)
>     at org.ow2.petals.bc.mail.listeners.ExternalListener.process(ExternalListener.java:89)
>     at org.ow2.petals.bc.mail.service.consume.ExternalEventPoller.run(ExternalEventPoller.java:155)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
> Caused by: com.sun.mail.iap.BadCommandException: A20 BAD Invalid Fetch argument RFC822.HEADER.LINES
>     at com.sun.mail.iap.Protocol.handleResult(Protocol.java:346)
>     at com.sun.mail.imap.protocol.IMAPProtocol.fetchRFC822(IMAPProtocol.java:1288)
>     at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:735)
>     ... 9 more
> 0 2013/07/19 11:54:38,258 GMT+0200 MONIT [Petals.Container.Components.petals-bc-mail] : traceCode = 'consumeFlowStepFailure', flowInstanceId = '3974aec0-f059-11e2-9804-4437e6c0d6e3', flowStepId = '3974aec1-f059-11e2-9804-4437e6c0d6e3', failureMessage = 'A20 BAD Invalid Fetch argument RFC822.HEADER.LINES'
> 
> 
> 
> Avez vous des éléments de réponse à m'apporter pour que je puisse résoudre mon problème
> 
> Ludovic
> 
> _______________________________________
> 
> 
> L'intégrité de ce message n'étant pas assurée sur internet, AKKA TECHNOLOGIES et ses filiales ne peuvent être tenues responsables de son contenu. Ce message et les éventuels fichiers attachés contiennent des informations confidentielles. Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. 
> 
> 
> 
> This message and the files that may be attached to it contain confidential information. AKKA TECHNOLOGIES or its subsidiaries may not be held responsible for their contents, whose accuracy and completeness cannot be guaranteed over the internet. If the message is not addressed to you, kindly delete it and notify the sender. Any use of this message not in accordance with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
> 
> 
> ________________________________________
> _______________________________________________
> Users mailing list
> Users at forum.petalslink.org
> http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20130722/c1f7b2f7/attachment.html>


More information about the Users mailing list