You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jerome Lacoste (Updated) (JIRA)" <ji...@apache.org> on 2011/12/23 13:26:31 UTC

[jira] [Updated] (TIKA-827) ForkServer fails to report issues if an exception is not properly serializable

     [ https://issues.apache.org/jira/browse/TIKA-827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerome Lacoste updated TIKA-827:
--------------------------------

    Attachment:     (was: 0002-TIKA-827-try-to-report-something-if-the-exception-is.patch)
    
> ForkServer fails to report issues if an exception is not properly serializable
> ------------------------------------------------------------------------------
>
>                 Key: TIKA-827
>                 URL: https://issues.apache.org/jira/browse/TIKA-827
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Jerome Lacoste
>         Attachments: 0002-TIKA-827-try-to-report-something-if-the-exception-is.patch
>
>
> {code}
>         try {
>             method.invoke(object, args);
>             output.write(DONE);
>         } catch (InvocationTargetException e) {
>             output.write(ERROR);
>             // warning if an exception isn't really serializable, this can fail.
>             /**
>             File tempFile = File.createTempFile("tika", ".trace");
>             PrintWriter pw = new PrintWriter(tempFile);
>             e.printStackTrace(pw);
>             pw.close();
>             e = new Exception(tempFile.getAbsolutePath());
>             */
>             ForkObjectInputStream.sendObject(e, output);
>         }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira