Permalink
Browse files

BISERVER-7760 fix

  • Loading branch information...
1 parent 2c180f0 commit 99eb9ebaa93ee06957c0d0269f394218e25407d5 @pamval pamval committed Nov 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/org/pentaho/telemetry/TelemetryEventSender.java
@@ -19,6 +19,7 @@
*/
package org.pentaho.telemetry;
+import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
@@ -109,6 +110,9 @@ protected void sendRequest(File[] blockToSend) {
filesForThisUrl = new ArrayList<File>();
filesForThisUrl.add(f);
urlsAndFiles.put(event.getUrlToCall(), filesForThisUrl);
+ } catch (EOFException eofe) {
+ logger.warn("EOF caught while deserializing telemetry event. Probably a corrupt save. Deleting event.", eofe);
+ f.delete();
} catch (IOException ioe) {
logger.error("Error caught while deserializing telemetry event.", ioe);
} catch (ClassNotFoundException cnfe) {

0 comments on commit 99eb9eb

Please sign in to comment.