jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Mietz Egli (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1285) ObjectContentManagerImpl.getObject(Query) throws NoSuchElementException when query does not match an object
Date Thu, 03 Jan 2008 00:36:34 GMT

     [ https://issues.apache.org/jira/browse/JCR-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Mietz Egli updated JCR-1285:
---------------------------------

    Environment: 
jackrabbit-ocm-1.4-20071210.145858-1
java version "1.5.0_13"



> ObjectContentManagerImpl.getObject(Query) throws NoSuchElementException when query does
not match an object
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1285
>                 URL: https://issues.apache.org/jira/browse/JCR-1285
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-ocm
>    Affects Versions: 1.4
>         Environment: jackrabbit-ocm-1.4-20071210.145858-1
> java version "1.5.0_13"
>            Reporter: Paul Mietz Egli
>         Attachments: ObjectContentManagerImpl.java.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message