knguyen 2004/12/10 16:01:38 CET
Modified files: (Branch: JAHIA-4-0-BRANCH)
src/java/org/jahia/utils/fileparsers PDFExtractor.java
Log:
- catch all throwable
Revision Changes Path
1.3.2.9 +3 -12
jahia/src/java/org/jahia/utils/fileparsers/PDFExtractor.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/utils/fileparsers/PDFExtractor.java.diff?r1=1.3.2.8&r2=1.3.2.9&f=h
Index: PDFExtractor.java
===================================================================
RCS file:
/home/cvs/repository/jahia/src/java/org/jahia/utils/fileparsers/Attic/PDFExtractor.java,v
retrieving revision 1.3.2.8
retrieving revision 1.3.2.9
diff -u -r1.3.2.8 -r1.3.2.9
--- PDFExtractor.java 9 Dec 2004 16:59:06 -0000 1.3.2.8
+++ PDFExtractor.java 10 Dec 2004 15:01:38 -0000 1.3.2.9
@@ -120,19 +120,10 @@
reader = new InputStreamReader(new
ByteArrayInputStream(contents));
}
}
- catch( IOException e )
+ catch( Throwable t )
{
- throw e;
- }
- catch( CryptographyException e )
- {
- throw new IOException( "Error decrypting document(" + this.path
+ "): " + e );
- }
- catch( InvalidPasswordException e )
- {
- //they didn't suppply a password and the default of "" was wrong.
- throw new IOException( "Error: The document(" + this.path +
- ") is encrypted and will not be
indexed." );
+ logger.debug(t);
+ throw new IOException(" Exception occured parsing pdf :" + t);
}
finally
{