chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] Commented: (CMIS-189) getName() always returns null items in query result
Date Wed, 07 Apr 2010 14:45:33 GMT

    [ 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.


Mime
View raw message