---
title: "When open tasklist form, it pops up exception casued by [DM_SESSION_E_SETUP_ROLE"
author: "kyh8408"
date: "2011-12-28T13:05:22Z"
tags: []
categories: ["行业应用"]
slug: "when-open-tasklist-form-it-pops-up-exception-casued-by-dm-session-e-setup-role"
draft: false
lastmod: "2011-12-28T13:05:22Z"
id: 1328485
url: "https://kyh8408.iteye.com/blog/1328485"
---

**Symptoms**

An error has occurred.

DfException:: THREAD: http-28080-2; MSG: ; ERRORCODE: ff; NEXT: null

After closing this window, press the Refresh or Reload button on your browser to continue.

Hide Details

Stack Trace:

java.lang.RuntimeException: DfException:: THREAD: http-28080-2; MSG: ; ERRORCODE: ff; NEXT: null

at com.documentum.web.formext.control.xforms.TaskListDataHandler.getPageFromTaskList(TaskListDataHandler.java:144)

at com.documentum.web.formext.control.xforms.TaskListDataHandler.initBind(TaskListDataHandler.java:109)

at com

.....

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.security.PrivilegedActionException: DfException:: THREAD: http-28080-2; MSG: \[DM\_SESSION\_E\_SETUP\_ROLES\_FOR\_RPC]error: "Error initializing dynamic roles for RPC EXEC (0000000000000000)."; ERRORCODE: 100; NEXT: DfException:: THREAD: http-28080-2; MSG: \[DM\_GROUP\_E\_PROTECTED\_ROLE\_UNKNOWN\_CLIENT]error: "The requested role (dm\_superusers\_dynamic) is marked protected and the requesting application was either not known in this docbase's dm\_client\_rights table or its credentials did not match those in the dm\_client\_rights table."; ERRORCODE: 100; NEXT: null

at java.security.AccessController.doPrivileged(Native Method)

at com.documentum.bpm.tasklist.impl.TaskListCachedCollection.executeQueryPrivilegedMode(TaskListCachedCollection.java:967)

**Cause**

Privilege client is required for the tasklist form.

**Resolution**

1.Go to taskspace dfc.properties file and add dfc.name=taskspace. This step is not required but that way you will be able to see dfc client for taskspace.  
2.Restart application server after adding this property.  
3.Go to DA  Privilege DFC Client -&gt;Manage client -&gt; Add Taskspace instance to Managed client  
4.Approved privileges client  
5.DQL on dm\_client\_rights table to get object id for taskspace client just added. Select * from dm\_client\_rights where object\_name = 'the name of privilege client' get object id ie: 08de75d1800079d0  
6.Go to IAPI  
     a.      api&gt;fetch,c,08de75d1800079d0

     b.      api&gt;get,c, 08de75d1800079d0, allow\_all\_roles  ---- should be F now

     c.      api&gt;set,c, 08de75d1800079d0  --- set it to true

              data&gt; T

     d.      api&gt;save,c,l