2

我正在尝试使用以下代码从文档源中获取所有文档(当前版本)的内容

IDfSysObject document = (IDfSysObject) session.getObject(new DfId(eachFileMetadata.get(some document id).toString()));
ByteArrayInputStream docContent = document.getContent();

我收到以下错误:

    DfException:: THREAD: Thread-585; MSG: [DM_STORAGE_E_NOT_ACCESSIBLE]error:  "Storage area dist_store_a_store_010 is not currently accessible.  Reason:  errno: 145, message: Connection timed out."; ERRORCODE: 100; NEXT: null
    at com.documentum.fc.client.impl.docbase.DocbaseExceptionMapper.newException(DocbaseExceptionMapper.java:57)
    at com.documentum.fc.client.impl.connection.docbase.MessageEntry.getException(MessageEntry.java:39)
    at com.documentum.fc.client.impl.connection.docbase.DocbaseMessageManager.getException(DocbaseMessageManager.java:137)
    at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.checkForMessages(NetwiseDocbaseRpcClient.java:329)
    at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.applyForInt(NetwiseDocbaseRpcClient.java:600)
    at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection$6.evaluate(DocbaseConnection.java:1343)
    at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.evaluateRpc(DocbaseConnection.java:1141)
    at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.applyForInt(DocbaseConnection.java:1336)
    at com.documentum.fc.client.impl.docbase.DocbaseApi.makePuller(DocbaseApi.java:630)
    at com.documentum.fc.client.impl.connection.docbase.RawPuller.<init>(RawPuller.java:22)
    at com.documentum.fc.client.impl.session.Session.makePuller(Session.java:3756)
    at com.documentum.fc.client.impl.session.SessionHandle.makePuller(SessionHandle.java:2468)
    at com.documentum.fc.client.content.impl.BlockPuller.<init>(BlockPuller.java:27)
    at com.documentum.fc.client.content.impl.PusherPullerContentAccessor.buildStreamFromContext(PusherPullerContentAccessor.java:40)
    at com.documentum.fc.client.content.impl.PusherPullerContentAccessor.getStream(PusherPullerContentAccessor.java:28)
    at com.documentum.fc.client.content.impl.ContentAccessorFactory.getStream(ContentAccessorFactory.java:37)
    at com.documentum.fc.client.content.impl.Store.getStream(Store.java:63)
    at com.documentum.fc.client.content.impl.DistributedStore___PROXY.getStream(DistributedStore___PROXY.java)
    at com.documentum.fc.client.content.impl.Content.getStream(Content.java:185)
    at com.documentum.fc.client.content.impl.Content___PROXY.getStream(Content___PROXY.java)
    at com.documentum.fc.client.content.impl.ContentManager.getStream(ContentManager.java:84)
    at com.documentum.fc.client.content.impl.ContentManager.getStream(ContentManager.java:53)
    at com.documentum.fc.client.DfSysObject.getContentEx3(DfSysObject.java:1952)
    at com.documentum.fc.client.DfSysObject.getContentEx2(DfSysObject.java:1942)
    at com.documentum.fc.client.DfSysObject.getContent(DfSysObject.java:1932)
    at com.documentum.fc.client.DfDocument___PROXY.getContent(DfDocument___PROXY.java)

当我试图获取文档的内容时发生上述错误,有人可以帮我吗?

4

1 回答 1

0

您的存储位置似乎无法访问。查询你的dm_locationforstorage_01并找出file_system_path这条记录的属性值。

如果您的内容服务器在 Unix 服务器上,则使用命令检查带有file_system_path值的挂载是否可用。df- h

如果您的内容服务器在 Windows 上,请检查您是否已映射可用file_system_path价值的驱动器。

如果您看到它们可用,我会建议在此文件系统上创建和访问文件。有时 NFS 挂载上的连接过时会出现问题。

于 2018-08-30T02:36:25.553 回答