12-20-2007 10:52 AM
public void navigate(ActionEvent event)
{
// work out which node was clicked from the event data
UIRecentSpacesShelfItem.RecentSpacesEvent spaceEvent = (UIRecentSpacesShelfItem.RecentSpacesEvent)event;
Node selectedNode = this.shortcuts.get(spaceEvent.Index);
NodeRef nodeRef = selectedNode.getNodeRef();
try
{
// then navigate to the appropriate node in UI
// use browse bean functionality for this as it will update the breadcrumb for us
//this.browseBean.updateUILocation(nodeRef);
//this.nodeService.getProperty(nodeRef, ContentModel.PROP_CONTENT);
ContentReader contentReader = this.contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);
contentReader.getContentString();
…
contentUrl=store://2007/12/18/16/55/b52af51c-ad81-11dc-895d-d76a1b20d501.bin| mimetype=text/xml|size=463|encoding=UTF-8|locale=fr_FR_ ) la méthode getContentString me renvois une exeption :
org.alfresco.service.cmr.repository.ContentIOException: Failed to open stream onto channel:
accessor: ContentAccessor[ contentUrl=store://2007/12/18/16/55/b52af51c-ad81-11dc-895d-d76a1b20d501.bin, mimetype=text/xml, size=463, encoding=UTF-8, locale=fr_FR]
caused by:
java.lang.RuntimeException: A channel has already been opened
12-21-2007 03:36 AM
04-11-2010 11:27 AM
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 03110010 Fail
ed to open stream onto channel:
accessor: ContentAccessor[ contentUrl=store://2010/4/11/16/29/37b91ac2-82e2-4
032-8e08-e0a611b500dc.bin, mimetype=application/msword, size=6176770, encoding=U
TF-8, locale=it_IT]
System.out.println("Transformable? " + contentService.isTransformable(actionedFileReader, writer));
System.out.println("isChannelOpen: " + actionedFileReader.isChannelOpen());
contentService.transform(actionedFileReader, writer);
04-12-2010 04:46 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.