org.apache.commons.vfs2.FileSystemException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by bharani,
  • 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
    via by bharani,
  • GitHub comment 3#212582719
    via GitHub by jetnet
    ,
  • Convert a vfs url string to url object
    via Stack Overflow by Anish Antony
    ,
  • Trunk Build Failure
    via by GWT Coder,
    • org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://orbitz:***@sftp-stg.bazaarvoice.com/import-inbox/product_feed_EB.xml.gz". at org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:91) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:713) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621) at com.orbitz.jobs.reviews.common.SFtpClient.upload(SFtpClient.java:20) at com.orbitz.jobs.reviews.common.SFtpClientTest.testUpload(SFtpClientTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.net.MalformedURLException: unknown protocol: sftp at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:72) ... 20 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    93 more bugmates