Git Product home page Git Product logo

Comments (12)

artembilan avatar artembilan commented on September 21, 2024 1

"Pull Request": https://help.github.com/articles/about-pull-requests/

See this one: #199

from spring-integration-samples.

artembilan avatar artembilan commented on September 21, 2024 1

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.

artembilan avatar artembilan commented on September 21, 2024 1

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.

columb1a avatar columb1a commented on September 21, 2024

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.

artembilan avatar artembilan commented on September 21, 2024

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.

artembilan avatar artembilan commented on September 21, 2024

@columb1a ,

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.

columb1a avatar columb1a commented on September 21, 2024

What do you mean with PR?

from spring-integration-samples.

columb1a avatar columb1a commented on September 21, 2024

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.

columb1a avatar columb1a commented on September 21, 2024

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.

artembilan avatar artembilan commented on September 21, 2024

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.

columb1a avatar columb1a commented on September 21, 2024

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.

artembilan avatar artembilan commented on September 21, 2024

See #199 for an appropriate fix for SFTP.

from spring-integration-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.