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


{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

        

Reply via email to