spring-integration

ImapMailReceiver NO STORE attempt on READ-ONLY folder (Failure) [THROTTLED];

只愿长相守 提交于 2019-12-02 05:31:35
问题 I spend day trying to find some explanation this exception. I try to configure ImapMailReceiver and ImapIdleChannelAdapter programmatic. I didn't find any tutorials about this question just small info in Pro Spring Integration book. public void loadMessages() { ImapIdleChannelAdapter imapIdleChannelAdapter = null; ImapMailReceiver imapMailReceiver = null; try { imapMailReceiver = new ImapMailReceiver("imaps://" + URLEncoder.encode(USERNAME, "UTF-8") + ":" + PASSWORD + "@imap.gmail.com:993

spring integration sftp mainframe :failed to write file; nested exception is 3: Permission denied

馋奶兔 提交于 2019-12-02 05:09:39
问题 I am trying to sft file to mainframe using spring integration sftp:outbound-gateway: this is configuration: <sftp:outbound-gateway id="putGateway" session-factory="sftpSessionFactory" request-channel="sftpFileInputChannel" command="put" expression="payload" remote-directory="${remote.upload.directory}" remote-filename-generator-expression="'${remote.upload.filename}'" use-temporary-file-name="false" reply-channel="replayFromPutSftpChannel"/> where remote.upload.filename.credit.fmpl=/!DTS4.UP

How do I make Jersey use Java serialization?

故事扮演 提交于 2019-12-02 04:37:42
I realize it's a little un-RESTful, but I'd like to use a Jersey client to send a Spring Integration GenericMessage to a Jersey server using Java serialization as the "marshalling". Is there built-in or contrib support for that, or will I have to write my own MessageBodyReader / Writer ? I've tried setting the type in the Client request to both "application/x-java-serialized-object" and MediaType.APPLICATION_OCTET_STREAM_TYPE , and it just gives the usual: ClientHandlerException: A message body writer for Java type, class org.springframework.integration.message.GenericMessage, and MIME media

Conditional retry advice in a Spring Integration message flow?

最后都变了- 提交于 2019-12-02 04:33:21
问题 I have a http gateway call that's occasionally returning 503 errors. I'd like to configure retry advice around that call, but I don't want to do it for every error, just the 503s. <int-http:outbound-gateway ... errorHandler="..."> <int-http:request-handler-advice-chain> <int:retry-advice max-attempts="3" /> </int-http:request-handler-advice-chain> </int-http:outbound-gateway> I already have a custom error handler configured that filters statuses (ex: 404) that I don't want to treat as errors,

Having trouble handling exceptions in Spring Integration

守給你的承諾、 提交于 2019-12-02 04:29:49
I'm new to spring integration and am confused about how to send error messages to a designated error queue. I want the error message to be a header on the original message and end up in a separate queue. I read that this can be done with a header enricher, which I tried to implement but nothing is showing up in the error queue. Also, do I need a separate exception handling class in order for the error messages to make it to the error queue or can I just throw exceptions in my transforming methods? Here is my xml config: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:int="http

Connect to Microsoft Exchange Server with Spring Integration Mail

女生的网名这么多〃 提交于 2019-12-02 04:28:56
问题 I want to connect to Microsoft Exchange 2010 with IMAP using Spring Integration Mail. My question is how the connection string exactly look like. Let's say: domain=earth user=jdoe email=jon.doe@earth.com Folder=inbox As far as I know, MS Exchange only supports imaps for connection to. My Spring integration config looks like this: <util:properties id="javaMailProperties"> <prop key="mail.imaps.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop> <prop key="mail.imaps.socketFactory

Deadlock using Aggregator + Redis

吃可爱长大的小学妹 提交于 2019-12-02 04:13:08
This post is related to this one Spring integration deadlock using Aggregator + MessageStoreReaper + Redis? but this message is too long to post. I continue with the original post I upgraded to to the latest Java 7 build 1.7.0_60-b19 but the problem is still there. I made another thread dump and found the same issue: all DefaultMessageListenerContainers (count 20) are locked by the taskScheduler (entityScheduler-3) in the AbstractCorrelatingMessageHandler lock invocation. Here's the scheduler and aggregator config: <task:scheduled-tasks scheduler="entityScheduler"> <task:scheduled ref=

spring xd losing messages when processing huge volume

人盡茶涼 提交于 2019-12-02 04:09:28
I am using spring xd My stream looks like below and running tests on 3 node container with 1 admin node with rabbit as transport aws-s3|processor1|http-client|processor2>queue:readyQueue I have created below tap. tap1 aws-s3>s3Queue tap2 processor1>processorQueue1 tap3 http-client>httpQueue I run below scenarios in my tests: Scenario1 : 5 files of 200k =1 Million records concurrency of http-client=70 and processor2=30 I see 900k message s3Queue I see 889k message processorQueue1 I see 886k message httpQueue I see 883k message processorQueue2 Messages are lost everywhere and its random

Moving processed files to another directory using Spring integration ftp inbound adapter

蹲街弑〆低调 提交于 2019-12-02 03:59:06
I am trying to poll local directory using ftp inbound adapter to fetch files for further processing. I want to move the file to another local directory and delete it from origination. Not getting a way to achieve it. Here's what I have so far: <int-ftp:inbound-channel-adapter id="ftpInbound" channel="ftpChannel" session-factory="ftpClientFactory" filename-pattern="*.xml" auto-create-local-directory="false" delete-remote-files="false" remote-directory="/" local-directory="//C://FBS//testmq"> <int:poller fixed-rate="20000" /> </int-ftp:inbound-channel-adapter> <int:channel id="ftpChannel"> <int

java.lang.ClassNotFoundException: org.springframework.http.converter.json.MappingJackson2HttpMessageConverter

半世苍凉 提交于 2019-12-02 03:32:36
问题 I am using spring-integration in my project. When I deploy my app in the jetty container, I am getting the following exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'integrationRequestMappingHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inboundhttpJobRequestGateway': Instantiation of bean failed; nested exception is org.springframework