diff options
author | Michael Petretti | 2014-06-18 16:00:02 +0200 |
---|---|---|
committer | Michael Petretti | 2014-06-18 16:00:02 +0200 |
commit | fd54c1817a963a9c9c70f71c9f33f5f6f31c993b (patch) | |
tree | 05e176ff33c0b9198960569799bef934af27f661 /src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java | |
parent | Moved the rest to Globals.java (diff) | |
download | satellite-daemon-fd54c1817a963a9c9c70f71c9f33f5f6f31c993b.tar.gz satellite-daemon-fd54c1817a963a9c9c70f71c9f33f5f6f31c993b.tar.xz satellite-daemon-fd54c1817a963a9c9c70f71c9f33f5f6f31c993b.zip |
small changes
Diffstat (limited to 'src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java')
-rw-r--r-- | src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java b/src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java index 0f28c39..0b22389 100644 --- a/src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java +++ b/src/main/java/org/openslx/satellitedaemon/ftp/ThriftConnection.java @@ -37,8 +37,8 @@ public class ThriftConnection private static Logger log = Logger.getLogger( ThriftConnection.class ); /** - * The method calls getConnection() to check if the connection is ok, - * if so, it returns ftpCredential. + * The method calls getConnection() to check if the connection is ok + * and to get the ServerSessionData. If connection is ok, it returns ftpCredential. * * @return returns 'null' if there is a problem. */ @@ -122,6 +122,7 @@ public class ThriftConnection String toEncrypt; if ( theClient == null ) { log.debug( "The client was null" ); + return null; } try { toEncrypt = theClient.startServerAuthentication( Globals.getPropertyString( PropString.THRIFTORGANIZATIONNAME) ); @@ -133,11 +134,11 @@ public class ThriftConnection sSD = theClient.serverAuthenticate( Globals.getPropertyString( PropString.THRIFTORGANIZATIONNAME), ByteBuffer.wrap( byteArray ) ); } catch ( ServerAuthenticationException e ) { - log.error( "ThriftConnection: Server Authetication was not sucessful." ); + log.error( "ThriftConnection: ServerAuthenticationException: Server Authetication was not sucessful." ); e.printStackTrace(); return null; } catch ( TException e ) { - log.error( "ThriftConnection: Server Authetication was not sucessful." ); + log.error( "ThriftConnection: TExeption: Server Authetication was not sucessful." ); e.printStackTrace(); return null; } |