Problems using sardine and Jackrabbit-webdav under jdk1.6

Source: Internet
Author: User

Syncing a problem that was encountered a few days ago, the customer gave a server address and Usernamepassword. Let's put the above file, download to another server. I checked the next, found that the server using the file protocol is WebDAV, what ghost ... The file protocol used was either SFTP or FTP ...

This WebDAV is really never heard of, and exposed the knowledge is too narrow, so Baidu has been under, found the relevant information is really not much, but already basically enough.

Then the result is the use of Sardine.jar or Jackrabbit-webdav.jar, and then the relevant code is also affixed to the very specific.

After I looked at it, the two methods were compared, and the result was more inclined to sardine, because his writing was relatively simple. Code volume than Jackrabbit-webdav will be less, here I do not post code, we can see Baidu a bit.

The main problem I'm talking about here is that when using both of these techniques, let's say your JDK version number is not 1.7. Then you should be able to report the following mistakes. is how to connect not to the server feel ... Will get you collapsed, I even tried to jackrabbit-webdav almost all version number, the result proves that no matter which version number he jdk1.6 under the run up, only to jdk1.7 above will be normal connection success and read the file.

OK, so, if you encounter the above problem, how to do it is not correct, replace the JDK version number it ~ ~

Problems using sardine and Jackrabbit-webdav under jdk1.6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.