commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mohan pindyala (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-340) FileSystemException: Badly formed URI
Date Wed, 04 Jan 2012 18:23:39 GMT

    [ https://issues.apache.org/jira/browse/VFS-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179720#comment-13179720
] 

mohan pindyala commented on VFS-340:
------------------------------------


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(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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
	at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:51)
	at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:636)
Caused by: java.net.MalformedURLException: unknown protocol: sftp
	at java.net.URL.<init>(URL.java:590)
	at java.net.URL.<init>(URL.java:480)
	at java.net.URL.<init>(URL.java:429)
	at org.apache.commons.vfs2.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:72)
	... 22 more

                
> FileSystemException: Badly formed URI 
> --------------------------------------
>
>                 Key: VFS-340
>                 URL: https://issues.apache.org/jira/browse/VFS-340
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: windows XP, JDK1.5
>            Reporter: bharani
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message