Hi Lothar,
This is the constructor of the commandExecuter.
public CommandExecutor(String user) throws Exception{
try {
remoteUser = user;
kerberosConnector = new KerberosConnector();
commandCentral = new CommandCentral();
stringUtils = new StringUtils();
resultItemList = new ArrayList<Item>();
pwd();
} catch (Exception e) {
log.error("Error occured..", e);
throw new Exception("Error occured", e);
}
}
Here is the constructor of KerberosConnector class.
public KerberosConnector() throws Exception{
loginFile = readProperty(LOGIN_FILE_LOCATION)+LOGIN_FILE_NAME;
host = readProperty(KERB_HOST);
System.out.println("HOST : " + host);
String krbConf = readProperty(KERB_CONF_LOCATION);
System.setProperty(JAVA_SECURITY_KRB5_CONF, krbConf);
System.setProperty(JAVAX_SECURITY_AUTH_USE_SUBJECT_CREDS_ONLY,
"false");
System.setProperty(SUN_SECURITY_KRB5_DEBUG, "true");
}
On Mon, Sep 8, 2014 at 5:26 AM, Lothar Kimmeringer <j...@kimmeringer.de>
wrote:
> BTW:
>
> Am 05.09.2014 20:02, schrieb Chathuri Wimalasena:
>
> > ERROR: org.scigap.iucig.filemanager.CommandExecutor - Error occured..
> > java.lang.Exception: java.lang.Exception: com.jcraft.jsch.JSchException:
> java.io.IOException: inputstream is closed
> > at
> org.scigap.iucig.filemanager.CommandExecutor.pwd(CommandExecutor.java:271)
> > at
> org.scigap.iucig.filemanager.CommandExecutor.<init>(CommandExecutor.java:68)
>
> Can you as well show CommandExecutor.<init>, i.e. between the connect,
> authentication and the call of pwd.
>
> Maybe you do something that is Bad[TM] leading to the closing of the
> connection on the server side, so the code for pwdSFTP isn't the
> culprit but something else.
>
>
> Cheers, Lothar
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> JSch-users mailing list
> JSch-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jsch-users
>
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users