Expand my Community achievements bar.

in livecycle rightmanagement,how to get a principal

Avatar

Former Community Member
I am Developing LiveCycle Rights Management ES Applications Using java APIs.I want



to create a policy with a policyentry for a user just like Tony Blue.These are my program:



PrincipalSearchFilter psf = new PrincipalSearchFilter(); psf.setUserId(userId); try{

List principalList = dirClient.findPrincipals(psf);

Iterator pit = principalList.iterator();

User testUser = null;

if (pit.hasNext())

{

testUser=(Principal)(pit.next());

}

}

catch (Exception e)

{

System.out.println("Error occurred: " + e.getMessage()); }



but,when I register the policy,i got Exception.



com.adobe.edc.sdk.SDKException: getPrincipal public -- Internal server error(error code



bin: 1032, hex: 0x408)

at

com.adobe.edc.sdk.impl.ExceptionHandler$EDCExceptionTranslator.getSDKException



(ExceptionHandler.java:152)

at com.adobe.edc.sdk.impl.ExceptionHandler.throwException



(ExceptionHandler.java:438)

at

com.adobe.livecycle.rightsmanagement.RightsManagementService.throwSDKException



(RightsManagementService.java:564)

at

com.adobe.livecycle.rightsmanagement.RightsManagementService.registerPolicy



(RightsManagementService.java:872)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke



(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke



(DefaultPOJOInvokerImpl.java:181)

at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept



(InvocationInterceptor.java:134)

at

com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed



(RequestInterceptorChainImpl.java:44)

at



com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction



(TransactionInterceptor.java:74)

at



com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute



(EjbTransactionCMTAdapterBean.java:336)

at



com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports



(EjbTransactionCMTAdapterBean.java:212)

at sun.reflect.GeneratedMethodAccessor379.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke



(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.invocation.Invocation.performCall(Invocation.java:345)

at

org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke



(StatelessSessionContainer.java:214)

at

org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke



(CachedConnectionInterceptor.java:149)

at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke



(StatelessSessionInstanceInterceptor.java:154)

at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke



(ServiceEndpointInterceptor.java:54)

at org.jboss.ejb.plugins.CallValidationInterceptor.invoke



(CallValidationInterceptor.java:48)

at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext



(AbstractTxInterceptor.java:106)

at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions



(TxInterceptorCMT.java:363)

at

org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)

at

org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)

at

org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)

at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke



(ProxyFactoryFinderInterceptor.java:122)

at

org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)

at org.jboss.ejb.Container.invoke(Container.java:873)

at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke



(BaseLocalProxyFac
1 Reply

Avatar

Former Community Member

Did you find a solution?What is the synthax of referencing an
user of an external LDAP Domain?

currently also running in those annoying com.adobe.edc.sdk.SDKException: getPrincipal public -- Internal server errors
(error code bin: 1032, hex: 0x408)

thanks,
Dilettanto