[
https://issues.apache.org/jira/browse/VFS-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510385
]
vikas commented on VFS-120:
---------------------------
I am facing this problem also.
When i stop the ftp-server and restarted it.My activity become hang and i am
not receiving any error message.
2007-07-05 20:44:51,078 INFO [Flow Thread(192168001166118364849065600301)]
service
com.adeptia.indigo.services.AbstractService.execute(AbstractService.java:452) -
Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Running|administrators|192168001166118294134403100005|192168001166118364849037500300|192168001166118294076370300003|192168001166118364849068700307|admin|Execute|wshost
2007-07-05 20:45:24,140 ERROR [Flow Thread(192168001166118364849065600301)]
flow com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:369) -
Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Failed|administrators|192168001166118294134403100005|192168001166118364849037500300|192168001166118294076370300003||admin|Error
in execution for activity
FtpSource:FTP_Source_Secure_Test:192168001166118294076370300003[inputstream is
closed]|wshost
java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(Unknown Source)
at com.jcraft.jsch.ChannelSftp.header(Unknown Source)
at com.jcraft.jsch.ChannelSftp.access$700(Unknown Source)
at com.jcraft.jsch.ChannelSftp$2.read(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.commons.vfs.util.MonitorInputStream.read(MonitorInputStream.java:88)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at
org.apache.commons.vfs.util.MonitorInputStream.read(MonitorInputStream.java:88)
at java.io.FilterInputStream.read(Unknown Source)
at
com.adeptia.indigo.services.transport.support.AbstractStreamSource.writeOutputStreamCallback(AbstractStreamSource.java:112)
rethrown as
rethrown as
com.adeptia.indigo.services.ServiceException: inputstream is closed
at
com.adeptia.indigo.services.transport.support.AbstractStreamSource.execute(AbstractStreamSource.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at
com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at
com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.execute(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:363)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at
com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at
com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at
com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at
com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at
com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown
Source)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
2007-07-05 20:45:24,171 INFO [Flow Thread(192168001166118364849065600301)]
service
com.adeptia.indigo.services.AbstractService.dispose(AbstractService.java:232) -
Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Aborted|administrators|192168001166118294134403100005|192168001166118364849037500300|192168001166118294076370300003|192168001166118364849068700307|admin|Activity
disposed. Start Time:2007-07-05 20:44:50 End Time:2007-07-05 20:45:24 Run
Time:33 second(s) 453 ms. Operation count:10846208 Bytes Average:324222.28
operations/sec|wshost
2007-07-05 20:45:24,203 ERROR [Flow Thread(192168001166118364849065600301)]
flow com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:410) -
Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Failed|administrators|192168001166118294134403100005|192168001166118364849037500300|192168001166118294076370300003||admin|Error
in disposing activity
FtpSource:FTP_Source_Secure_Test:192168001166118294076370300003[Could not close
the input stream for file "sftp://maan:[EMAIL
PROTECTED]/transport/source/text_100mb.txt".]|wshost
org.apache.commons.vfs.FileSystemException: Could not close the input stream
for file "sftp://maan:[EMAIL PROTECTED]/transport/source/text_100mb.txt".
at
org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:565)
at
com.adeptia.indigo.services.transport.ftp.FtpSource.dispose(FtpSource.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
> SFTP-Exception: "com.jcraft.jsch.JSchException: session is down" if the
> SFTP-Server was killed and restarted (a normal shutdown of the SFTP-Server
> occured no Exception after restart.)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: VFS-120
> URL: https://issues.apache.org/jira/browse/VFS-120
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: Tomcat 5.5
> JDK 6.0 (build with JDK 5)
> commons-vfs-1.0.jar:
> Specification-Title: Commons VFS
> Implementation-Version: 1.0
> JSCH: jsch-0.1.31.jar
> Reporter: Harald Brabenetz
> Priority: Critical
> Attachments: SftpFileSystem-patch.txt
>
>
> The error occured after restarting if the SFTP-Server was KILLed!!.
> With a normal shutdown of the SFTP-Server, no exception after restarting
> occured.
> I found no function to force the reset of the session in SftpFileSystem.java
> There is a function:
> DefaultFileSystemManager manager =
> (DefaultFileSystemManager)VFS.getManager();
> manager.freeUnusedResources();
> But this works only if AbstractFileSystem.isReleaseable() returns true.
> And this this function return only true if all SFTP-FileObject are removed
> from the GarbageCollection (finally()-Methode).
> I cannot force a GarbageCollection.
> So there is no way to handle this Error! I must restart the VM
> (ServletContainer).
> org.apache.commons.vfs.FileSystemException: Could not copy
> "file:///C:/TEMP/....." to "sftp://......".
> at
> org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:902)
> at
> com.bearingpoint.orf.chat.core.service.ExportManagerImpl.exportChatMessages(Unknown
> Source)
> at
> com.bearingpoint.orf.chat.core.service.ExportManagerImpl.startExportNow(Unknown
> Source)
> at
> com.bearingpoint.orf.chat.core.service.ExportManagerImpl$ExportManagerRunnable.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.commons.vfs.FileSystemException: Could not write to
> "sftp://chat:[EMAIL PROTECTED]/home/chat/chatfile_12.zip".
> at
> org.apache.commons.vfs.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1227)
> at
> org.apache.commons.vfs.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:373)
> at
> org.apache.commons.vfs.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:356)
> at org.apache.commons.vfs.FileUtil.copyContent(FileUtil.java:100)
> at
> org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:893)
> ... 4 more
> Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to
> SFTP server at "sftp://chat:[EMAIL PROTECTED]/".
> at
> org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:144)
> at
> org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetOutputStream(SftpFileObject.java:402)
> at
> org.apache.commons.vfs.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1219)
> ... 8 more
> Caused by: com.jcraft.jsch.JSchException: session is down
> at com.jcraft.jsch.Session.openChannel(Session.java:756)
> at
> org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:122)
> ... 10 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]