org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://orbitz:***@sftp-stg.bazaarvoice.com/import-inbox/product_feed_EB.xml.gz".

nabble.com | 4 months ago
  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://orbitz:***@sftp-stg.bazaarvoice.com/import-inbox/product_feed_EB.xml.gz".
  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://orbitz:***@sftp-stg.bazaarvoice.com/import-inbox/product_feed_EB.xml.gz".
  3. 0

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

    nabble.com | 4 months ago
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "sftp://orbitz:***@sftp-stg.bazaarvoice.com/import-inbox/product_feed_EB.xml.gz".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Commons VFS StaticUserAuthenticator Issue

    commons-user | 5 years ago | shabeena.k
    org.apache.commons.vfs2.FileSystemException: Badly formed URI "smb://[domain\username[:***@]host[E:\abc\xyz\site-1.6.12.zip]".
  6. 0

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

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

  1. boussoffara med ali 11 times, last 1 week ago
  2. bmacedo 2 times, last 1 week ago
  3. Aria Pahlavan 41 times, last 2 weeks ago
  4. Andreas Häber 13 times, last 3 weeks ago
  5. ajinkya_w 21 times, last 2 months ago
33 more registered users
46 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. java.net.MalformedURLException

    unknown protocol: sftp

    at java.net.URL.<init>()
  2. Java RT
    URL.<init>
    1. java.net.URL.<init>(URL.java:574)
    2. java.net.URL.<init>(URL.java:464)
    3. java.net.URL.<init>(URL.java:413)
    3 frames
  3. Commons VFS Core
    DefaultFileSystemManager.resolveFile
    1. org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:72)
    2. org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:713)
    3. org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
    3 frames
  4. com.orbitz.jobs
    SFtpClientTest.testUpload
    1. com.orbitz.jobs.reviews.common.SFtpClient.upload(SFtpClient.java:20)
    2. com.orbitz.jobs.reviews.common.SFtpClientTest.testUpload(SFtpClientTest.java:21)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  6. JUnit
    TestCase.run
    1. junit.framework.TestCase.runTest(TestCase.java:154)
    2. junit.framework.TestCase.runBare(TestCase.java:127)
    3. junit.framework.TestResult$1.protect(TestResult.java:106)
    4. junit.framework.TestResult.runProtected(TestResult.java:124)
    5. junit.framework.TestResult.run(TestResult.java:109)
    6. junit.framework.TestCase.run(TestCase.java:118)
    6 frames
  7. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    2. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    6 frames