com.adeptia.indigo.services.ServiceException: inputstream is closed

Apache's JIRA Issue Tracker | Harald Brabenetz | 10 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

    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:chat@10.1.5.130/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:chat@10.1.5.130/". 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

    Apache's JIRA Issue Tracker | 10 years ago | Harald Brabenetz
    com.adeptia.indigo.services.ServiceException: inputstream is closed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    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:chat@10.1.5.130/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:chat@10.1.5.130/". 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

    Apache's JIRA Issue Tracker | 10 years ago | Harald Brabenetz
    com.adeptia.indigo.services.ServiceException: inputstream is closed

    Root Cause Analysis

    1. com.adeptia.indigo.services.ServiceException

      inputstream is closed

      at com.adeptia.indigo.services.transport.support.AbstractStreamSource.execute()
    2. com.adeptia.indigo
      AbstractStreamSource.execute
      1. com.adeptia.indigo.services.transport.support.AbstractStreamSource.execute(AbstractStreamSource.java:91)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. Commons Modeler
      BaseModelMBean.invoke
      1. org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
      1 frame
    5. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
      2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
      4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
      4 frames
    6. com.adeptia.indigo
      RemoteMBeanProxy$Handler.invoke
      1. com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
      2. com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
      2 frames
    7. Unknown
      $Proxy2.execute
      1. $Proxy2.execute(Unknown Source)
      1 frame
    8. com.adeptia.indigo
      ActivityTag.doTag
      1. com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:363)
      2. com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
      2 frames
    9. commons-jelly
      ScriptBlock.run
      1. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
      2. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
      2 frames
    10. com.werken.blissed
      ProcessEngine.spawn
      1. com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
      2. com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
      3. com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
      4. com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
      5. com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
      6. com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
      6 frames
    11. com.adeptia.indigo
      IndigoTransaction.execute
      1. com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
      2. com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
      2 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    13. Commons Modeler
      BaseModelMBean.invoke
      1. org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
      1 frame
    14. Java RT
      Thread.run
      1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
      2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
      4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
      5. javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
      6. javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
      7. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
      8. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
      9. javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
      10. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      11. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      12. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      13. java.lang.reflect.Method.invoke(Unknown Source)
      14. sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      15. sun.rmi.transport.Transport$1.run(Unknown Source)
      16. java.security.AccessController.doPrivileged(Native Method)
      17. sun.rmi.transport.Transport.serviceCall(Unknown Source)
      18. sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      19. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
      20. java.lang.Thread.run(Unknown Source)
      20 frames