You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2010/04/07 16:45:33 UTC

[jira] Commented: (CMIS-189) getName() always returns null items in query result

    [ https://issues.apache.org/jira/browse/CMIS-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854528#action_12854528 ] 

Michael Dürig commented on CMIS-189:
------------------------------------

The cause is JcrObjectEntry.getName() which accesses a stale session: 

javax.jcr.RepositoryException: this session has been closed
JcrObjectEntry.getName() line: 185	
JcrObjectEntry.loadValues() line: 293	
JcrObjectEntry.getValue(String) line: 252	
...



> getName() always returns null items in query result
> ---------------------------------------------------
>
>                 Key: CMIS-189
>                 URL: https://issues.apache.org/jira/browse/CMIS-189
>             Project: Chemistry
>          Issue Type: Bug
>          Components: chemistry-jcr
>            Reporter: Michael Dürig
>
> This always fails (assuming the query result is not empty)
> Collection<CMISObject> result = conn.query("select * from [nt:file]", true);
> for (CMISObject obj : result) {
>     assertNotNull(obj.getName());
> }

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