diff options
Diffstat (limited to 'src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java')
-rw-r--r-- | src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java b/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java index b656a84..e1b9378 100644 --- a/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java +++ b/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java @@ -71,25 +71,39 @@ public class ThriftConnection log.info( "First call of submitImage following..." ); crc = new CRCFile( filename ); log.info( "Made CRCFile from " + filename ); + log.info( "crc.getCrcSums( ).size = " + crc.getCrcSums().size()); + log.info( "crc.getMasterSum() : " + crc.getMasterSum()); + for (int i = 0; i < crc.getCrcSums().size() - 1; i++){ + log.info( "crc.getCRCSum() : " + crc.getCRCSum( i )); + } return theClient.submitImage( sSD.sessionId, imDat, crc.getCrcSums() ); } catch ( TException e ) { log.error("TException"); + e.printStackTrace(); } catch ( UnrecoverableKeyException e ) { log.error("UnrecoverableKeyException"); + e.printStackTrace(); } catch ( InvalidKeyException e ) { log.error("InvalidKeyException"); + e.printStackTrace(); } catch ( NoSuchAlgorithmException e ) { log.error("NoSuchAlgorithmException"); + e.printStackTrace(); } catch ( CertificateException e ) { log.error("CertificateException"); + e.printStackTrace(); } catch ( FileNotFoundException e ) { log.error("FileNotFoundException"); + e.printStackTrace(); } catch ( KeyStoreException e ) { log.error("KeyStoreException"); + e.printStackTrace(); } catch ( SignatureException e ) { log.error("SignatureException"); + e.printStackTrace(); } catch ( IOException e ) { log.error("IOException"); + e.printStackTrace(); } return null; } @@ -117,22 +131,31 @@ public class ThriftConnection return theClient.submitImage( sSD.sessionId, imDat, crc.getCrcSums() ); } catch ( TException e ) { log.error("TException"); + e.printStackTrace(); } catch ( UnrecoverableKeyException e ) { log.error("UnrecoverableKeyException"); + e.printStackTrace(); } catch ( InvalidKeyException e ) { log.error("InvalidKeyException"); + e.printStackTrace(); } catch ( NoSuchAlgorithmException e ) { log.error("NoSuchAlgorithmException"); + e.printStackTrace(); } catch ( CertificateException e ) { log.error("CertificateException"); + e.printStackTrace(); } catch ( FileNotFoundException e ) { log.error("FileNotFoundException"); + e.printStackTrace(); } catch ( KeyStoreException e ) { log.error("KeyStoreException"); + e.printStackTrace(); } catch ( SignatureException e ) { log.error("SignatureException"); + e.printStackTrace(); } catch ( IOException e ) { log.error("IOException"); + e.printStackTrace(); } return null; } @@ -157,22 +180,31 @@ public class ThriftConnection return theClient.getImage( imDat.guid, sSD.sessionId, range ); } catch ( TException e ) { log.error("TException"); + e.printStackTrace(); } catch ( UnrecoverableKeyException e ) { log.error("UnrecoverableKeyException"); + e.printStackTrace(); } catch ( InvalidKeyException e ) { log.error("InvalidKeyException"); + e.printStackTrace(); } catch ( NoSuchAlgorithmException e ) { log.error("NoSuchAlgorithmException"); + e.printStackTrace(); } catch ( CertificateException e ) { log.error("CertificateException"); + e.printStackTrace(); } catch ( FileNotFoundException e ) { log.error("FileNotFoundException"); + e.printStackTrace(); } catch ( KeyStoreException e ) { log.error("KeyStoreException"); + e.printStackTrace(); } catch ( SignatureException e ) { log.error("SignatureException"); + e.printStackTrace(); } catch ( IOException e ) { log.error("IOException"); + e.printStackTrace(); } return null; } |