Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-4043

Keep the export running after seeing errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.6
    • Fix Version/s: 5.1.x, 5.3 RC
    • Component/s: None

      Description

      At some point calling session.getSourceDocument(docRef) (and maybe others) can fail.
      The point is that if when calling a method on the core it creates a runtime exception (like NPE), the container will kill the bean and we will end up with the error can not find statefull bean (without knowing the cause of the problem).

      I think the problem is that in 5.1.6, getSourceDocument implementation does not catch all errors. This has been done in recent core version is order to avoid this problem.

      • provide a patched version of DocumentManagerBean that is safe for getSourceDocument (and other methods)
      • be sure the exporter code will just log errors when versions are missing but will continue

        Attachments

          Activity

            People

            • Assignee:
              rdarlea Radu Darlea
              Reporter:
              rdarlea Radu Darlea
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h