6 Replies Latest reply: Sep 21, 2007 1:04 PM by (fred_pantalone) RSS

    APSInsufficientPermission occured while applying policy

      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.getPublishLicense(LicenseMa nagerBean.java:628)
      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:324)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
      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(ProxyFactoryFinderInterceptor. java:122)
      at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
      at org.jboss.ejb.Container.invoke(Container.java:723)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
      at $Proxy101.getPublishLicense(Unknown Source)
      at com.adobe.edc.server.businesslogic.integration.IntegrationManagerBean.publishLicense(Inte grationManagerBean.java:1094)
      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:324)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:341)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
      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(ProxyFactoryFinderInterceptor. java:122)
      at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.j
        • 1. Re: APSInsufficientPermission occured while applying policy
          Community Member
          the forum seems not support long description, stupid....
          here is the following message:
          at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
          at org.jboss.ejb.Container.invoke(Container.java:723)
          at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
          at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
          at $Proxy101.getPublishLicense(Unknown Source)
          at com.adobe.edc.server.businesslogic.integration.IntegrationManagerBean.publishLicense(Inte grationManagerBean.java:1094)
          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:324)
          at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:341)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
          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(ProxyFactoryFinderInterceptor. java:122)
          at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
          at org.jboss.ejb.Container.invoke(Container.java:723)
          at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
          at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
          at $Proxy110.publishLicense(Unknown Source)
          at com.adobe.edc.policy.PolicyManagerBean.publishLicense(PolicyManagerBean.java:586)
          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:324)
          at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContain er.java:949)
          at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
          at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIn terceptor.java:273)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
          at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
          at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
          at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
          at org.jboss.ejb.Container.invoke(Container.java:723)
          at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
          at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
          at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:49)
          at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
          at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104 )
          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
          at $Proxy205.publishLicense(Unknown Source)
          at com.adobe.service.APSProxyImpl.PublishLicense(APSProxyImpl.java:232)
          at com.adobe.service.APSProxyPOATie.PublishLicense(APSProxyPOATie.java:49)
          at com.adobe.service.APSProxyPOA._invoke(APSProxyPOA.java:78)
          at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
          at org.jacorb.poa.RequestProcessor.process(Unknown Source)
          at org.jacorb.poa.RequestProcessor.run(Unknown Source)
          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.getPublishLicense(LicenseMa nagerBean.java:628)
          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:324)
          at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
          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(ProxyFactoryFinderInterceptor. java:122)
          at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
          at org.jboss.ejb.Container.invoke(Container.java:723)
          at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
          at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
          at $Proxy101.getPublishLicense(Unknown Source)
          at com.adobe.edc.server.businesslogic.integration.IntegrationManagerBean.publishLicense(Inte grationManagerBean.java:1094)
          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:324)
          at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTr
          • 2. Re: APSInsufficientPermission occured while applying policy
            Community Member
            more...

            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
            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(ProxyFactoryFinderInterceptor. java:122)
            at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
            at org.jboss.ejb.Container.invoke(Container.java:723)
            at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
            at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
            at $Proxy101.getPublishLicense(Unknown Source)
            at com.adobe.edc.server.businesslogic.integration.IntegrationManagerBean.publishLicense(Inte grationManagerBean.java:1094)
            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:324)
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:341)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
            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(ProxyFactoryFinderInterceptor. java:122)
            at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
            at org.jboss.ejb.Container.invoke(Container.java:723)
            at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
            at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
            at $Proxy110.publishLicense(Unknown Source)
            at com.adobe.edc.policy.PolicyManagerBean.publishLicense(PolicyManagerBean.java:586)
            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:324)
            at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContain er.java:949)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
            at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIn terceptor.java:273)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
            at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
            at org.jboss.ejb.Container.invoke(Container.java:723)
            at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
            at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:49)
            at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
            at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
            at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104 )
            at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
            at $Proxy205.publishLicense(Unknown Source)
            at com.adobe.service.APSProxyImpl.PublishLicense(APSProxyImpl.java:232)
            at com.adobe.service.APSProxyPOATie.PublishLicense(APSProxyPOATie.java:49)
            at com.adobe.service.APSProxyPOA._invoke(APSProxyPOA.java:78)
            at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
            at org.jacorb.poa.RequestProcessor.process(Unknown Source)
            at org.jacorb.poa.RequestProcessor.run(Unknown Source)
            2007-08-07 09:46:10,440 ERROR [com.adobe.service.APSProxyService] com.adobe.edc.sdk.SDKException: Permission denied(error code bin: 1296, hex: 0x510)
            2007-08-07 09:46:10,440 ERROR [com.adobe.service.APSProxyService] 1296
            2007-08-07 09:46:10,440 ERROR [com.adobe.service.APSProxyService] com.adobe.edc.common.EDCException
            at com.adobe.edc.policy.PolicyManagerBean.throwException(PolicyManagerBean.java:819)
            at com.adobe.edc.policy.PolicyManagerBean.publishLicense(PolicyManagerBean.java:589)
            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:324)
            at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContain er.java:949)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
            at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIn terceptor.java:273)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
            at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
            at org.jboss.ejb.Container.invoke(Container.java:723)
            at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
            at
            • 3. Re: APSInsufficientPermission occured while applying policy
              Community Member
              more...

              at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:49)
              at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
              at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
              at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104 )
              at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
              at $Proxy205.publishLicense(Unknown Source)
              at com.adobe.service.APSProxyImpl.PublishLicense(APSProxyImpl.java:232)
              at com.adobe.service.APSProxyPOATie.PublishLicense(APSProxyPOATie.java:49)
              at com.adobe.service.APSProxyPOA._invoke(APSProxyPOA.java:78)
              at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
              at org.jacorb.poa.RequestProcessor.process(Unknown Source)
              at org.jacorb.poa.RequestProcessor.run(Unknown Source)
              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.getPublishLicense(LicenseMa nagerBean.java:628)
              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:324)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
              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(ProxyFactoryFinderInterceptor. java:122)
              at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
              at org.jboss.ejb.Container.invoke(Container.java:723)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
              at $Proxy101.getPublishLicense(Unknown Source)
              at com.adobe.edc.server.businesslogic.integration.IntegrationManagerBean.publishLicense(Inte grationManagerBean.java:1094)
              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:324)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:341)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
              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(ProxyFactoryFinderInterceptor. java:122)
              at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
              at org.jboss.ejb.Container.invoke(Container.java:723)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
              at $Proxy110.publishLicense(Unknown Source)
              at com.adobe.edc.policy.PolicyManagerBean.publishLicense(PolicyManagerBean.java:586)
              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:324)
              at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContain er.java:949)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
              at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIn terceptor.java:273)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
              at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
              at org.jboss.ejb.Container.invoke(Container.java:723)
              at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
              at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:49)
              at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
              at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
              at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104 )
              at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
              at $Proxy205.publishLicense(Unknown Source)
              at com.adobe.service.APSProxyImpl.PublishLicense(APSProxyImpl.java:232)
              at com.adobe.service.APSProxyPOATie.PublishLicense(APSProxyPOATie.java:49)
              at com.adobe.service.APSProxyPOA._invoke(APSProxyPOA.java:78)
              at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
              at org.jacorb.poa.RequestProcessor.process(Unknown Source)
              at org.jacorb.poa.RequestProcessor.run(Unknown Source)
              2007-08-07 09:46:10,440 ERROR [com.adobe.service.APSProxyService] com.adobe.edc.sdk.SDKException: Permission denied(error code bin: 1296, hex: 0x510)
              2007-08-07 09:46:10,440 ERROR [com.adobe.service.APSProxyService] 1296
              2007-08-07 09:46:10,440 ERROR [com.adobe.service.APSProxyService] com.adobe.edc.common.EDCException
              at com.adobe.edc.policy.PolicyManagerBean.throwException(PolicyManagerBean.java:819)
              at com.adobe.edc.policy.PolicyManagerBean.publishLicense(PolicyManagerBean.ja
              • 4. Re: APSInsufficientPermission occured while applying policy
                Community Member
                more...

                at com.adobe.edc.policy.PolicyManagerBean.publishLicense(PolicyManagerBean.java:589)
                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:324)
                at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContain er.java:949)
                at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
                at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
                at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIn terceptor.java:273)
                at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
                at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:282)
                at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
                at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
                at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
                at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
                at org.jboss.ejb.Container.invoke(Container.java:723)
                at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
                at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
                at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:49)
                at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
                at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
                at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104 )
                at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
                at $Proxy205.publishLicense(Unknown Source)
                at com.adobe.service.APSProxyImpl.PublishLicense(APSProxyImpl.java:232)
                at com.adobe.service.APSProxyPOATie.PublishLicense(APSProxyPOATie.java:49)
                at com.adobe.service.APSProxyPOA._invoke(APSProxyPOA.java:78)
                at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
                at org.jacorb.poa.RequestProcessor.process(Unknown Source)
                at org.jacorb.poa.RequestProcessor.run(Unknown Source)

                2007-08-07 09:46:10,455 DEBUG [org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager] Attempting to remove; ctx=org.jboss.ejb.StatefulSessionEnterpriseContext@b595f4
                2007-08-07 09:46:10,455 DEBUG [org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager] Removal complete; ctx=org.jboss.ejb.StatefulSessionEnterpriseContext@b595f4
                2007-08-07 09:46:10,455 ERROR [com.adobe.document.PDFManipulation] APS Insufficient Permission
                2007-08-07 09:46:10,471 DEBUG [com.adobe.service.APSProxyService] com.adobe.service.logging.Logger.debug Transaction ending
                2007-08-07 09:46:10,471 DEBUG [com.adobe.service.APSProxyService] com.adobe.service.logging.Logger.debug $$$/APSProxyImpl/msg.nofinalevents=no pending events

                2007-08-07 09:46:10,471 DEBUG [com.adobe.service.APSProxyService] com.adobe.service.logging.Logger.debug APS events sent
                2007-08-07 09:46:10,580 INFO [com.adobe.service.APSProxyService] Transaction ended
                2007-08-07 09:46:10,580 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[AdobeApplyPolicyServlet]: Servlet.service() for servlet AdobeApplyPolicyServlet threw exception
                com.adobe.document.pdf.APSInsufficientPermission: IDL:com/adobe/document/pdf/APSInsufficientPermission:1.0
                at com.adobe.document.pdf.APSInsufficientPermissionHelper.read(APSInsufficientPermissionHelp er.java:67)
                at com.adobe.document.pdf._PDFDocumentStub.applyPolicy(_PDFDocumentStub.java:921)
                at au.gov.nsw.community.forms.servlet.AdobeApplyPolicyServlet.doPost(AdobeApplyPolicyServlet .java:144)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:237)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:19 8)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:72)
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275 )
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
                at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:705)
                at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
                at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
                at java.lang.Thread.run(Thread.java:534)
                ************************************************************************

                The piece of code is:
                ************************************************************************
                ServletContext context = getServletContext();
                String inputPath = context.getInitParameter("InputPath");
                String outputPath = context.getInitParameter("OutputPath");
                ConnectionFactory dmConnectionFactory = null;

                // Create an InitialContext object
                Properties prop = new Properties();
                prop.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                prop.setProperty(InitialContext.PROVIDER_URL, "localhost:1099");
                prop.setProperty(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
                InitialContext namingContext = new InitialContext(prop);

                // Lookup the Data Manager service
                Object dmObject = namingContext.lookup("DataManagerS
                • 5. Re: APSInsufficientPermission occured while applying policy
                  Community Member
                  code...
                  The piece of code is:
                  ************************************************************************
                  ServletContext context = getServletContext();
                  String inputPath = context.getInitParameter("InputPath");
                  String outputPath = context.getInitParameter("OutputPath");
                  ConnectionFactory dmConnectionFactory = null;

                  // Create an InitialContext object
                  Properties prop = new Properties();
                  prop.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                  prop.setProperty(InitialContext.PROVIDER_URL, "localhost:1099");
                  prop.setProperty(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
                  InitialContext namingContext = new InitialContext(prop);

                  // Lookup the Data Manager service
                  Object dmObject = namingContext.lookup("DataManagerService");
                  dmConnectionFactory = (ConnectionFactory)PortableRemoteObject.narrow(dmObject,ConnectionFactory.class);

                  // Begin a transaction
                  transaction = (UserTransaction) namingContext.lookup("java:comp/UserTransaction");
                  transaction.begin();

                  // Create a DataManager object
                  DataManager mDataManager = DataManagerHelper.narrow((org.omg.CORBA.Object)dmConnectionFactory.getConnection());

                  // PDF Manipulation Module
                  // Declare a ConnectionFactory object
                  ConnectionFactory pdfConnectionFactory = null;

                  // Lookup the PDF Manipulation service
                  Object pdfObject = namingContext.lookup("PDFManipulation");
                  pdfConnectionFactory = (ConnectionFactory)PortableRemoteObject.narrow(pdfObject,ConnectionFactory.class);

                  // Use the pdfConnectionFactory object to create a PDFFactory object
                  PDFFactory mPDFFactory = PDFFactoryHelper.narrow((org.omg.CORBA.Object)pdfConnectionFactory.getConnection());

                  // Create a FileDataBuffer object to store an existing PDF document by
                  // calling the DataManager objects createFileDataBuffer method.
                  // Reference the PDF document by name
                  FileDataBuffer pdfFile = mDataManager.createFileDataBuffer(inputPath + "error_eReporting.pdf");

                  // Open the PDF object using the PDFFactory object
                  PDFDocument pdf = mPDFFactory.openPDFWithAPS(pdfFile, "administrator", "password");

                  //Specify property values
                  apsProps.setProperty(EDCFactory.USERNAME_PROPERTY_NAME,"administrator");
                  apsProps.setProperty(EDCFactory.PASSWORD_PROPERTY_NAME,"password");
                  apsProps.setProperty(EDCFactory.MODE_PROPERTY_NAME,"ejb");

                  //Establish a connection to LiveCyle Policy Server
                  EDCFactory apsSession = EDCFactory.connect(apsProps);

                  // Create a Policy Search Filter object
                  PolicySearchFilter Polsf = new PolicySearchFilter();

                  // Set the search criteria to a known Policy Name
                  Polsf.setName("Docs demo policy");

                  //Create Policy Server Manager Object
                  PolicyManager apsPolicyManager = apsSession.getPolicyManager();

                  //Get the policy object
                  Policy [] retPolicy = apsPolicyManager.getPolicies(Polsf,1);

                  //Create a Policy object and initialize it to the contents
                  //of the array item 0
                  Policy myPolicy = (Policy)retPolicy[0];

                  //Set the variable with the Policy ID value
                  String policyID = myPolicy.getId();

                  //Close the connection to Adobe Policy Server
                  apsSession.closeConnection();

                  //*********************************************
                  //End of APS Specific Code
                  //*********************************************

                  //Apply the policy retrieved from APS to a PDF document
                  //Parameters - policyID, username, password, documentName, alternateID)
                  pdf.applyPolicy(myPolicy.getId(),"administrator", "password", "securedoc", "doc");

                  // Convert PDF object to DataBuffer
                  DataBuffer destinationFile = pdf.save();

                  //Create byte array from data buffer contents
                  long bufSize = destinationFile.getBufLength();
                  byte[] fileData = destinationFile.getBytes(0, bufSize);

                  //Write byte array to file
                  File outputFile = new File(outputPath + "error_eReportingWP.pdf");
                  OutputStream myStream = new FileOutputStream(outputFile);
                  myStream.write(fileData);
                  myStream.close();
                  ************************************************************************

                  The form is not password-protected, so why will the APSInsufficientPermission will be invoked? Could anybody please give me any idea? I do appreciate for any help.

                  cheers,
                  hj
                  • 6. Re: APSInsufficientPermission occured while applying policy
                    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