Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8781

use model's bundle context to lookup services

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Sling Models Impl 1.4.10
    • Fix Version/s: Sling Models Impl 1.4.12
    • Component/s: Sling Models
    • Labels:
      None

      Description

      Searching for all the silent ClassNotFoundExceptions generated, as discussed offline with Karl Pauls

      It seems like the sling models service injector is using its own bundle context for the lookup. That makes this case reasonable problematic. Typically, an extender uses the bundle context of the bundle it extends - which would in this case make the lookup likely not run into any CNFE for the assignable check. If anything, you could try there and see if you could make it use the bundle context of the extended bundle.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                npeltier Nicolas Peltier
                Reporter:
                npeltier Nicolas Peltier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m