summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java
diff options
context:
space:
mode:
authorMichael Petretti2014-07-23 14:57:48 +0200
committerMichael Petretti2014-07-23 14:57:48 +0200
commit499610f9c7622bab98cb2c2da46408839063c6f7 (patch)
treebcedf42b60359734cf13fb1e91e2ad78a53dd2fd /src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java
parent... (diff)
downloadsatellite-daemon-499610f9c7622bab98cb2c2da46408839063c6f7.tar.gz
satellite-daemon-499610f9c7622bab98cb2c2da46408839063c6f7.tar.xz
satellite-daemon-499610f9c7622bab98cb2c2da46408839063c6f7.zip
day two of debuging with nils.
Diffstat (limited to 'src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java')
-rw-r--r--src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java32
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;
}