Skip navigation
Currently Being Moderated

APSInsufficientPermission occured while applying policy

Aug 6, 2007 4:14 PM

Greetings all,

I am using Policy Server API to implement applying policy to a pdf document. But when I invoke the applyPolicy method, I always get the following exception:
********************************************************************** **
2007-08-07 09:46:10,440 ERROR [com.adobe.edc.server.errors.exception.EDCServerLoggedException] Thread: RequestProcessor-32, hashcode: 32768163 [com.adobe.edc.server.businesslogic.license.LicenseManagerBean] errorCode:1296 errorCodeHEX:0x510 severity:1 message:Caller not authorized to execute the following method getPublishLicense in the class com.adobe.edc.server.businesslogic.license.LicenseManagerBean
2007-08-07 09:46:10,440 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException:
com.adobe.edc.server.errors.exception.EDCServerSystemException: null
at com.adobe.edc.server.util.EDCUtil.raiseServerSystemException(EDCUtil. java:155)
at com.adobe.edc.server.util.EDCUtil.raiseServerSystemException(EDCUtil. java:94)
at com.adobe.edc.server.businesslogic.license.LicenseManagerBean.getPubl ishLicense(LicenseManagerBean.java:628)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S tatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo ke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat elessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte rceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep torCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1 48)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor. java:120)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto ryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessi onContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:723)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalPro xyFactory.java:359)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSes sionProxy.java:83)
at $Proxy101.getPublishLicense(Unknown Source)
at com.adobe.edc.server.businesslogic.integration.IntegrationManagerBean .publishLicense(IntegrationManagerBean.java:1094)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S tatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo ke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat elessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte rceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep torCMT.java:341)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1 48)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor. java:120)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto ryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessi onContainer.j
 
Replies
  • Currently Being Moderated
    Sep 21, 2007 1:04 PM   in reply to (loseyourself)
    HJ,

    Are you aware that a Policy Server administrator account can't be used to policy-protect or read policy-protected documents?

    Since your example code shows you using administrator/password I'm assuming that this is what you're trying to do. Try using a user account (internal or external).

    Fred
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)