org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://xxxx:xxxxx@xxx.xxx.com/Somefolder/Test".

Apache's JIRA Issue Tracker | bharani | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am trying to connect to SFTP using commons.vfs . The program is running fine initially by connecting to SFTP and retrieving files ,but after one point of time it throws following exception repeatedly and refuses to connect thereafter. FileSystemException: Badly formed URI "sftp://sftpuser:XXXXXXXX@US456564/home57556/". at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:58) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582) at com.java.workflow.trigger.BaseTask.establishConnection(BaseTask.java:167) at com.java.workflow.trigger.sftp.sampleconnect.getSource2System(sampleconnect.java:11) at com.java.workflow.trigger.sftp.samplecnt.perform(samplecnt.java:27) at com.java.workflow.trigger.BaseTask.execute(BaseTask.java:127) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: org.apache.commons.vfs.FileSystemException: Port number is missing from URI "sftp://sftpuser:XXXXXXXX@US456564/home57556/". at org.apache.commons.vfs.provider.HostFileNameParser.extractPort(HostFileNameParser.java:229) at org.apache.commons.vfs.provider.HostFileNameParser.extractToPath(HostFileNameParser.java:134) at org.apache.commons.vfs.provider.URLFileNameParser.parseUri(URLFileNameParser.java:48) at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri(AbstractFileProvider.java:170) at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:54) ... 8 more

    Apache's JIRA Issue Tracker | 6 years ago | bharani
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://xxxx:xxxxx@xxx.xxx.com/Somefolder/Test".
  2. 0

    I am trying to connect to SFTP using commons.vfs . The program is running fine initially by connecting to SFTP and retrieving files ,but after one point of time it throws following exception repeatedly and refuses to connect thereafter. FileSystemException: Badly formed URI "sftp://sftpuser:XXXXXXXX@US456564/home57556/". at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:58) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582) at com.java.workflow.trigger.BaseTask.establishConnection(BaseTask.java:167) at com.java.workflow.trigger.sftp.sampleconnect.getSource2System(sampleconnect.java:11) at com.java.workflow.trigger.sftp.samplecnt.perform(samplecnt.java:27) at com.java.workflow.trigger.BaseTask.execute(BaseTask.java:127) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: org.apache.commons.vfs.FileSystemException: Port number is missing from URI "sftp://sftpuser:XXXXXXXX@US456564/home57556/". at org.apache.commons.vfs.provider.HostFileNameParser.extractPort(HostFileNameParser.java:229) at org.apache.commons.vfs.provider.HostFileNameParser.extractToPath(HostFileNameParser.java:134) at org.apache.commons.vfs.provider.URLFileNameParser.parseUri(URLFileNameParser.java:48) at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri(AbstractFileProvider.java:170) at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:54) ... 8 more

    Apache's JIRA Issue Tracker | 6 years ago | bharani
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://xxxx:xxxxx@xxx.xxx.com/Somefolder/Test".
  3. 0

    Commons - Issues - [jira] Created: (VFS-340) FileSystemException: Badly formed URI

    nabble.com | 2 days ago
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://xxxx: /Somefolder/Test".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apache Commons Bugtracking Mails

    gmane.org | 1 year ago
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://xxxx: /Somefolder/Test".
  6. 0

    Commons - User - How to resolve a share path to a FileObject

    nabble.com | 11 months ago
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "smb://usr:***@hostname/filename".

  1. treefolk 3 times, last 2 months ago
  2. aldrinleal 2 times, last 7 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.commons.vfs2.FileSystemException

    Badly formed URI "sftp://xxxx:xxxxx@xxx.xxx.com/Somefolder/Test".

    at org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile()
  2. Commons VFS Core
    DefaultFileSystemManager.resolveFile
    1. org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:91)
    2. org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:713)
    3. org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
    3 frames