Questions tagged [spring-integration-file]
17 questions
3
votes
2 answers
Spring Integration upgrade from 5.2.x to 5.3 problem
I wanted to upgrade Spring boot version from 2.2.7.RELEASE to 2.3.0.RELEASE, I am using also Spring integration file with XML configuration (see below).
when starting my application, a NullPointerException is thrown. After debugging the issue, the…

NBE
- 33
- 1
- 4
1
vote
1 answer
Migrating a filter from XML to pure Java Config
I am trying to migrate a project from a mixed XML/Java configuration to pure Java Config (not yet Java DSL, but annotated @Bean methods).
So far, I managed to convert channels, inbound channel adapters, transformers and service activators), but I'm…

Marc Tarin
- 3,109
- 17
- 49
1
vote
1 answer
Spring Integration - Stop Inbound Adapter after files have been copied
I am doing a local file copy using Spring integration. My class is presented later in this post.
I initiate the file copy by issuing an adapter.start() from another class. That works fine, and the adapter (localFileTransferAdapter) runs once (based…

rcaschultz
- 173
- 6
1
vote
1 answer
Testing Spring Integration Flow
Actually I am creating a POC for running Spring integration With Kubernetes, and for that I created an integration flow that reads an XML file and move it to Processed Dir if it's a valid xml file otherwise move it to Error Dir
package…

Moaad
- 13
- 4
1
vote
1 answer
Unable to delete payload after pushing it to remote server using ExpressionEvaluatingRequestHandlerAdvice
I'm trying to delete the source file that has been pushed to remote server using the ExpressionEvaluatingRequestHandlerAdvice:
@Bean
public Advice expressionAdvice(GenericEndpointSpec> c)…

Mhel
- 50
- 1
- 7
1
vote
1 answer
How to upload file via SFTP inside an IntegrationFlow chain using Spring Integration?
What I'm trying to do is to check my local source directory for new file(s), do a simple transformation then send file(s) to a remote server via SFTP Using Spring Integration.
I'm using file adapter to poll my source directory for new files. Now, I…

Mhel
- 50
- 1
- 7
0
votes
1 answer
Wait for all Files after a poll to be processed before continuing processing
I would like to proccess all the files located in a specific folder using and only after having tranformed/moved all files that have beed retrieved in a single poll make a call to the database to update a…

dim5b
- 29
- 1
- 7
0
votes
0 answers
java aws client Unable to execute HTTP request: Timeout waiting for connection from pool
I am trying to monitor a bucket folder by using IntegrationFlow. But after a certain time I get a timeout connecting to the connection pool.
My code looks like this:
@Configuration
@EnableIntegration
@IntegrationComponentScan
@EnableAsync
public…
0
votes
1 answer
Spring file integration: Error FileSystemException while writing File using FileWritingMessageHandler
I have created a flow that reads two files as input and copies them to a 'work' directory and then transforms them into a JobRequest. The payload is a JobExecution which contains the two files as parameters. So, I launch the batch then I want to get…

Sana
- 3
- 3
0
votes
1 answer
What message is sent to the reply channel of a File Outbound Gateway?
I'm working on a project where Spring Integration is used as a proxy to distribute HTTP requests to the relevant services and send back the answers to the client.
Incoming HTTP requests are first preprocessed and sent to an HTTP outbound gateway.
On…

Marc Tarin
- 3,109
- 17
- 49
0
votes
0 answers
spring-integration-smb : jcifs.smb.SmbException: The parameter is incorrect while connect to NAS
I encountered a problem when connecting to a NAS shared directory using spring-integration-smb.
The problem is that I was able to connect to another shared Nas directory but for the pre-prod Nas, I encountered this problem.
Also, the shared server…

Sana
- 3
- 3
0
votes
1 answer
Filesystem events are not always triggerd on SMB mounted folder
I'm using Spring-Integration (File) 5.4.6 to listen for changes on a directory. As watcher, I'm using the setUseWatchService of the FileReadingMessageSource.
If a new file is available it will be picked up and processed. The service is working well…

Boban
- 11
- 1
0
votes
0 answers
Integration Flow does not receive new message on each test method
I am testing my integration flow with 2 different scenarios: reading an XML file and try to validate it, so in case it's a valid XML then it should be moved to processed Dir, otherwise to Error Dir.
this is the main Integration flow:
package…

Moaad
- 13
- 4
0
votes
1 answer
How to unit test Spring Integration’s int-file:inbound-channel-adapter
I have a simple Spring Integration flow where I read XML files from a given directory, and send their content to another channel and do other processing.
After the processing is done, I need to move the input file in an archive/error…

Morgan Courbet
- 772
- 1
- 8
- 18
0
votes
1 answer
Spring Integration Channel get stuck and doest not process messages
Recently we introduced task executor to spring integrations pollers to fasten our file reading process . However introduction of task executor led to unexpected problems where in our service stopped processing messages in spring integration…

vipulk10
- 117
- 3
- 15