Comments (12)
"Pull Request": https://help.github.com/articles/about-pull-requests/
See this one: #199
from spring-integration-samples.
Well, but authentication problem should be fully different story then connection refused because no listener on port. Isn't it?
So, let's address it separately!
I also use Windows, so we can easily pair with you the solution.
As far as I know username
is really system property on Windows. So, the problem might be sporadic depending of what loads first (or nay be last?) - properties file or system properties.
I suppose the easiest way is to rename the property to be sure that only ours has affect to the target application.
WDYT?
from spring-integration-samples.
OK. Thank you for explanation.
Although it confuses us, but we are happy to hear that you found a solution for your use-case.
Nevertheless I see that it suffers the same port already in use
problem do not have proper connection from the client.
I will fix the SFTP sample the same way as I'm doing in PR for FTP.
And yes, that username
will be fixed as well to meet Windows environment.
But, please, be more specific in the future with the description of the problem.
Because right now it looks like original issues has gone and you have given birth to new ones almost unrelated to the sample.
from spring-integration-samples.
Actually randomly I'm getting that issue that I posted above, and randomly the test passes without any problem.
Moreover: Doing a clean install over the project I got a Build sucess, but randomly if I try to run just the "FtpOutboundChannelAdapterSample" class (the one that contains the test) I got the issue that I posted above.
Can it be because of the port?
from spring-integration-samples.
The SO question on the matter: http://stackoverflow.com/questions/42710311/ftp-example-randomly-not-working
This might be a bug, but, please, let's don't steal time of each other in different channels for the same subject.
from spring-integration-samples.
Pay attention to the PR which might fix your concern.
Indeed, we have seen a similar sporadic failure for these FTP tests not one time on our CI server...
from spring-integration-samples.
What do you mean with PR?
from spring-integration-samples.
It didn't fix the issue 100% I was still having the same issue as before. BUT, what I've noticed debbuging my project is, sometimes the "username" that is loaded in the FTP session factory actually is my window's username (let's say it was like "rxx", instead of the username that comes within the properties file (which is "demo").
After having hardcoded the username as a "demo", I haven't had any issues....so far.
from spring-integration-samples.
man, that was the solution :). In fact I just tested the same project in my macbook using "username" as property name , and everything went well (in mac). In windows I just changed the property name to username_whatever and it worked.
from spring-integration-samples.
Good.
I can utilize that into the PR to make the fix generally available, but let me know what and how have you changed?
The problem that I see username
property in the SFTP sample, but we talk here about FTP, which has userid
.
What am I missing?
Thanks
from spring-integration-samples.
Well, I forgot to say something. Yesterday I decied to change a little the FTP sample. So now, I'm using another strategy (and it shouldn't failed so far: 100% of build sucess so far). What I did was to load the properties related to the ftpSessionFactory as the SFTP sample is doing so (so first I load the FTP server using smartLifeCycle, and then I get the PORT that was set, and I assign that port to my FtpSessionFactory). Like this: SFTP EXAMPLE
from spring-integration-samples.
See #199 for an appropriate fix for SFTP.
from spring-integration-samples.
Related Issues (20)
- why @ConditionalOnBean annotation does't work well on the bean which annotated @@MessagingGateway ? HOT 1
- What is required to make DynamicTcpClientApplication also return data with the send interface? HOT 2
- Investigate Failing Test in tcp-client-server-multiplex
- SFTP delegation example HOT 8
- Only accepts one instance of multipart file not an array of multipart file HOT 7
- Add examples for using SI with Project Reactor HOT 4
- Project Structure - Reorganize in favor of JavaDSL and Reactive support HOT 12
- How to import and compile the project locally HOT 1
- Can add the sample code of mqttv5 in spring.integration.samples.basic.mqttv5? HOT 1
- How do I create multiple MQTTClients and generate messages using Spring-Integration-MQTT? HOT 1
- Why getClientInstance is used for inbound and getAsyncClientInstance is used for outbound to get synchronous and asynchronous clients. HOT 5
- Trying to find code examples on Spring Integration scatter gather HOT 3
- How to set up apply-sequence=true through xml configuration HOT 1
- Server-side logging seems to be broken HOT 2
- IMAP with OAuth 2 authentication HOT 8
- Payload Enricher with request-payload-expression="payload.username" HOT 10
- LoanBrokerSharkDetectorDemo.java:48: error: cannot find symbol HOT 1
- sftp - outbound transfer test doesn't work for embedded server HOT 6
- Sample projects to not compile with maven due to lack of <java.version/> property
- 30 Second Timeout breaks Coffee Java DSL Sample Application HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-integration-samples.