---
title: "调用DFS创建文档报 type dm_literal_expr failed"
author: "kyh8408"
date: "2012-03-18T16:06:02Z"
tags: []
categories: ["行业应用"]
slug: "dfs-type-dm-literal-expr-failed"
draft: false
lastmod: "2012-03-18T16:05:53Z"
id: 1456975
url: "https://kyh8408.iteye.com/blog/1456975"
---

调用DFS时报如下错误：

\[DM\_SESSION\_W\_FETCH\_FAILED]warning:  &quot;Fetch of object with handle 530311f28000090a and type dm\_literal\_expr failed.&quot;  
    at com.broadtext.services.FileService.ucfUploadFileToDctm(FileService.java:126)  
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
    at java.lang.reflect.Method.invoke(Method.java:618)  
    at com.emc.documentum.fs.rt.context.impl.ReflectionServiceInvoker.invoke(ReflectionServiceInvoker.java:40)  
    at com.emc.documentum.fs.rt.impl.tx.TxInvocationHandler.invoke(TxInvocationHandler.java:29)  
    at com.emc.documentum.fs.rt.context.impl.SoapServiceInvocationHandler.invoke(SoapServiceInvocationHandler.java:50)  
    at com.emc.documentum.fs.rt.context.impl.ServiceContextCleanupHandler.invoke(ServiceContextCleanupHandler.java:30)  
    at com.emc.documentum.fs.rt.context.impl.HandlerChainExceptionInvocationHandler.invoke(HandlerChainExceptionInvocationHandler.java:35)  
    at com.emc.documentum.fs.rt.context.impl.UcfServiceInvocationHandler.invoke(UcfServiceInvocationHandler.java:53)  
    at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(OperationOptionsHandler.java:71)  
    at com.emc.documentum.fs.rt.context.impl.FileRegistryCleanupHandler.invoke(FileRegistryCleanupHandler.java:25)  
    at $Proxy39.ucfUploadFileToDctm(Unknown Source)  
    at com.broadtext.services.ws.FileServiceWebService.ucfUploadFileToDctm(FileServiceWebService.java:81)  
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
    at java.lang.reflect.Method.invoke(Method.java:618)  
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)  
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)  
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)  
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)  
    at com.sun.xml.ws.api.pipe.Fiber.\_\_doRun(Fiber.java:595)  
    at com.sun.xml.ws.api.pipe.Fiber.\_doRun(Fiber.java:554)  
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)  
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)  
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)  
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)  
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)  
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)  
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)  
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)  
    at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)  
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)  
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)  
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)  
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)  
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525)  
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)  
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)  
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)  
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)  
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)  
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)  
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)  
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:270)  
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)  
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)  
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)  
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)  
    at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)  
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

 

解决办法:

     清除DFS下的Cache，如果DFS安装在Content　SERVER的MethodServer上，Cache目录为$DM\_HOME\\jboss4.3.0\\Cache,然后重启MethodServer

 

问题原因:

     可以是由于对TYPE进行修改了，造成一些关于TYPE的字典信息没有更新到DFS应用上，造成字段的引用的约束对象不存在而造成的。