Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-827

ForkServer fails to report issues if an exception is not properly serializable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • None
    • None

    Description

              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);
              }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lacostej Jerome Lacoste
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: