Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1285

ObjectContentManagerImpl.getObject(Query) throws NoSuchElementException when query does not match an object

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: jackrabbit-ocm
    • Labels:
      None
    • Environment:
      jackrabbit-ocm-1.4-20071210.145858-1
      java version "1.5.0_13"

      Description

      When a query returns no objects, ObjectContentManagerImpl.getObject(Query) throws the following exception:

      java.util.NoSuchElementException
      at java.util.AbstractList$Itr.next(AbstractList.java:427)
      at org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.getObject(ObjectContentManagerImpl.java:538)

      Javadocs for ObjectContentManager interface suggest that a ObjectContentManagerException should be thrown in this case.

        Attachments

        1. ObjectContentManagerImpl.java.diff
          0.7 kB
          Paul Mietz Egli

          Activity

            People

            • Assignee:
              fmeschbe Felix Meschberger
              Reporter:
              pegli Paul Mietz Egli
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: