Bin to hex

Hi : For example I have Binary Number 10110000 that I what to convert it to Dec Number    How can I do that in labview
thanks
Solved!
Go to Solution.

Did you try out the numeric format converter functions in the Numeric/String pallette?
If you want to change the format in a COntrol/Indicator, just rt-click >> Radix will do the job for you.
But see that your question header & your problem description are not the same.
- Partha
LabVIEW - Wires that catch bugs!

Similar Messages

  • Bin to Hex is KILLING ME, any advice?

       public static String fromBinToHex(String binNum)
             String hexNum = "";
             String a = "1011111011101111";
             int n = a.length();
                    for (int f = 0 ; f < a.length(); f++)
                   switch (n.charAt(f+4))
                    case '1010' : hexNum += "A"; break;
             return hexNum;
        }    Thats basically what I got. I'm trying to get this
    System.out.println("11100100100110110 Base-2 converts to " + BaseConverter.fromBinToHex("11100100100110110") + " in Base-16.\n");The Bin is basically supposed to spit out "BEEF" in hex form.
    Much help is appreciated :)

    ^ Response
    Is it something like this? I did this for the Hex to Bin Converter.
        public static String fromHexToBin(String hexNum)
             String binNum = "";
              for (int k = 0 ; k < hexNum.length(); k++)
                   switch (hexNum.charAt(k))
                        case '0' : binNum += "0000"; break;
                        case '1' : binNum += "0001"; break;
                        case '2' : binNum += "0010"; break;
                        case '3' : binNum += "0011"; break;
                        case '4' : binNum += "0100"; break;
                        case '5' : binNum += "0101"; break;
                        case '6' : binNum += "0110"; break;
                        case '7' : binNum += "0111"; break;
                        case '8' : binNum += "1000"; break;
                        case '9' : binNum += "1001"; break;
                        case 'A' : binNum += "1010"; break;
                        case 'B' : binNum += "1011"; break;
                        case 'C' : binNum += "1100"; break;
                        case 'D' : binNum += "1101"; break;
                        case 'E' : binNum += "1110"; break;
                        case 'F' : binNum += "1111"; break;
              return binNum;
         }

  • In livecycle rightmanagement,how to get a principal

    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

    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

  • App errors for some kind of PDF-documents

    Hello,
    we are getting java.lang.NullPointerExceptions for some PDF-documents
    to be Rights Management protected by using com.adobe.livecycle.rightsmanagement.RightsManagementService.applyPolicy()
    Client-side gets this exception:
        System.Web.Services.Protocols.SoapException: com.adobe.edc.sdk.SDKException: Error during the closing
                   of document listeners. -- Internal server error(error code bin: 1032, hex: 0x408)
    Part of the server-side stack trace is:
    2009-07-29 15:09:09,728 ERROR [com.adobe.idp.Document] DOCS001: Unexpected exception. Custom DocumentWriterEx.onDisconnect() throws: java.lang.NullPointerException.
    java.lang.NullPointerException
          at com.adobe.internal.pdftoolkit.pdf.document.PDFCosFactory.getUserData(PDFCosFactory.java:6 5)
          at com.adobe.internal.pdftoolkit.pdf.document.PDFCosFactory.getInstance(PDFCosFactory.java:2 18)
          at com.adobe.internal.pdftoolkit.pdf.document.PDFDocumentInfo.getInstance(PDFDocumentInfo.ja va:68)
          at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.getDocumentInfo(PDFDocument.java:4 63)
          at com.adobe.internal.pdftoolkit.services.xmp.DocumentMetadataImpl.commit(DocumentMetadataIm pl.java:1039)
          at com.adobe.internal.pdftoolkit.services.xmp.DocumentMetadataImpl.message(DocumentMetadataI mpl.java:233)
          at com.adobe.internal.pdftoolkit.pdf.document.listener.DocumentListenerRegistryBase.sendMess age(DocumentListenerRegistryBase.java:220)
          at com.adobe.internal.pdftoolkit.pdf.document.listener.GroupDocumentListener.message(GroupDo cumentListener.java:120)
          at com.adobe.internal.pdftoolkit.pdf.document.listener.DocumentListenerRegistryBase.sendMess age(DocumentListenerRegistryBase.java:220)
          at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.finish(PDFDocument.java:342)
          at com.adobe.pdfdocumentmanager.SharedPdfDocumentInternal$PDFCheckinImpl.checkinPDF(SharedPd fDocumentInternal.java:493)
          at com.adobe.pdfdocumentmanager.PDFDocumentVsDocumentCore$Data.getDoc(PDFDocumentVsDocumentC ore.java:333)
          at com.adobe.pdfdocumentmanager.SharedPdfDocumentInternal$Writer.write(SharedPdfDocumentInte rnal.java:673)
          at com.adobe.pdfdocumentmanager.SharedPdfDocumentInternal$Writer.onDisconnect(SharedPdfDocum entInternal.java:871)
          at com.adobe.pdfdocumentmanager.PDFDocumentVsDocumentCore$WriterProxy.onDisconnect(PDFDocume ntVsDocumentCore.java:249)
          at com.adobe.idp.DocumentCacheID.unregister(DocumentCacheID.java:73)
          at com.adobe.idp.Document.dispose(Document.java:2217)
          at com.adobe.pdfdocumentmanager.client.SharedPdfDocumentContext.releasePDFDocument(SharedPdf DocumentContext.java:233)
          at com.adobe.pdfdocumentmanager.client.SharedPdfDocumentContext.clear(SharedPdfDocumentConte xt.java:297)
          at com.adobe.pdfdocumentmanager.client.SharedPdfDocumentContext.exitScope(SharedPdfDocumentC ontext.java:222)
          at com.adobe.pdfdocumentmanager.client.SharedPdfDocumentContext.endScope(SharedPdfDocumentCo ntext.java:161)
          at com.adobe.livecycle.rightsmanagement.RightsManagementService.applyPolicy(RightsManagement Service.java:207)
          at com.adobe.livecycle.rightsmanagement.RightsManagementService.applyPolicy(RightsManagement Service.java:463)
    What might be the reason for those documents to get errors during
    Thanks for any hints!
    Dilettanto

    Thank you Steve,
    enclosed are my answers:
    1)  What versions are you using (Rights Management ES, Acrobat etc...)
          --> RightsManagement Server 8.2
    2)  Does this occur an ALL pdfs?  If not please postone that causes the error.
         --> No - this occurs only to some PDF-documents that come from external sources and that have been PDF-stamped by some
              external tool.    
              Other documents can be RightsManagement-protected just fine
              But how to tell, what part of those documents is the reason for the null-pointer-exception?
    3)  Can you successfully apply a policy manually using Acrobat Pro?
              will try this right now
    4)  Are you only trying to apply a policy or is it part of a larger process?
              Regarding LiveCycle Server, ApplyPolicy is the only action to be done
              We are using code based on the ApplyPolicy Sample

  • Com.adobe.edc.Problem connecting to policy manager

    Hi Adobe team,
    We've started to get some intermittent failures to connect to our policy server. I'm currently trying to debug the problem, we do have a full stack trace:-
    Principal principal =  InfomodelObjectFactory
    .createSpecialPrincipal(InfomodelObjectFactory.ANONYMOUS_PRINCIPAL);
    this throws a SDKException
    which is caught like this
    catch (SDKException e) {
    throw new DrmException("Cannot  connect to Policy Manager", e);
    com.semantico.drm.exception.DrmException: Cannot connect to Policy Manager
            at com.semantico.drm.livecycle.LiveCycleDrmManager.createPolicy(LiveCycleDrmManager.java:146 )
            at com.semantico.depp.delivery.manager.impl.PdfManagerImpl.serveDrmPdf(PdfManagerImpl.java:4 07)
            at com.semantico.depp.reader.tapestry.components.ReaderFunctions$1.write(ReaderFunctions.jav a:480)
            at com.semantico.depp.reader.servlets.DrmOutputServlet.doGet(DrmOutputServlet.java:51)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.semantico.depp.acs.authorization.filters.AuthorizationFilter.doHttpFilter(Authorizati onFilter.java
    :99)
            at com.semantico.depp.acs.filters.HTTPFilter.doFilter(HTTPFilter.java:37)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.semantico.depp.acs.authorization.filters.IpAccessAuthenticationFilter.doHttpFilter(Ip AccessAuthent
    icationFilter.java:49)
            at com.semantico.depp.acs.filters.HTTPFilter.doFilter(HTTPFilter.java:37)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.semantico.depp.acs.filters.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.j ava:28)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.adobe.edc.sdk.SDKException: Internal server error(error code bin: 1032, hex: 0x408)
            at com.adobe.edc.sdk.impl.ExceptionHandler$EDCExceptionTranslator.getSDKException(ExceptionH andler.java:1
    52)
            at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:438)
            at com.adobe.livecycle.rightsmanagement.RightsManagementService.throwSDKException(RightsMana gementService
    .java:723)
            at com.adobe.livecycle.rightsmanagement.RightsManagementService.registerWatermark(RightsMana gementService
    .java:1411)
            at sun.reflect.GeneratedMethodAccessor590.invoke(Unknown Source)
            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.jav a:118)
            at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
            at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.jav
    a:60)
            at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionIntercep
    tor.java:74)
            at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTA
    dapterBean.java:342)
            at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionC
    MTAdapterBean.java:212)
    MTAdapterBean.java:212)
            at sun.reflect.GeneratedMethodAccessor402.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:359)
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.ja
    va:158)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.j
    ava:169)
            at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
            at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
            at org.jboss.ejb.Container.invoke(Container.java:960)
            at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
            at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
            at $Proxy183.doSupports(Unknown Source)
            at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
            at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java
    :72)
            at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.jav
    a:60)
            at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyIntercept
    or.java:55)
            at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.jav
    a:60)
            at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
            at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.jav
    a:60)
            at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:13
    2)
            at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.jav
    a:60)
            at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
            at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.jav
    a:60)
            at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
            at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
            at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:315)
            at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java: 156)
            at sun.reflect.GeneratedMethodAccessor408.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:359)
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.ja
    va:158)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.j
    ava:169)
            at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
            at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
            at org.jboss.ejb.Container.invoke(Container.java:960)
            at sun.reflect.GeneratedMethodAccessor381.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)
            at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:20 1)
            at $Proxy16.invoke(Unknown Source)
            at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
            at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
            at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
            at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
            Caused by: com.adobe.edc.common.EDCException
            at com.adobe.edc.policy.APSDocumentServicesManagerBean.throwException(APSDocumentServicesMan agerBean.java
    :167)
            at com.adobe.edc.policy.APSDocumentServicesManagerBean.registerWatermark(APSDocumentServices ManagerBean.j
    ava:1538)
            at sun.reflect.GeneratedMethodAccessor591.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:359)
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.ja
    va:158)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.j
    ava:169)
            at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
            at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
            at org.jboss.ejb.Container.invoke(Container.java:960)
            at sun.reflect.GeneratedMethodAccessor381.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
            at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
            at org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:295 )
            at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:61)
            at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
            at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
            at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:1 12)
            at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
            at $Proxy264.registerWatermark(Unknown Source)
            at com.adobe.livecycle.rightsmanagement.RightsManagementService.registerWatermark(RightsMana gementService.java:1409)
            ... 82 more
    Any help much appreciated.
    g.

    Hi All,
    Please find the procedure to activate the control service platform.
    Error:
    RTC – 5301: The control service is not currently available.
    Solution:
    1.     Go to the path, where your OWB 10g R2 installed and open the below batch file in notepad or textpad.
    <OWB_HOME>\owb\bin\win32\run_service.bat
    2.     In that text file, please change the below line
    Original Script:
    %JAVAPATH%\jre\bin\javaw.exe %JVM_OPTIONS% -DORACLE_HOME="%RTHOME%" -DOCM_HOME="%RTHOME%" -DOCM_ORACLE_HOME="%RTHOME%" -classpath %RTHOME%\owb\bin\admin\;%RTHOME%\owb\bin\admin\launcher.jar -DOWB_HOME=%OWB_HOME% -DJDK_HOME=%JDK_HOME% -DORA_HOME=%ORA_HOME% -DOEM_HOME=%OEM_HOME% -DIAS_HOME=%IAS_HOME% Launcher %RTHOME%\owb\bin\admin\owb.classpath oracle.wh.runtime.platform.service.Service %STARTUP_TYPE% %NODEID% %RTUSER% %HOST% %PORT% %SERVICE%
    Add this text -Duser.timezone="+02:00" as shown below:
    %JAVAPATH%\jre\bin\javaw.exe %JVM_OPTIONS% -DORACLE_HOME="%RTHOME%" -Duser.timezone="+02:00" -DOCM_HOME="%RTHOME%" -DOCM_ORACLE_HOME="%RTHOME%" -classpath %RTHOME%\owb\bin\admin\;%RTHOME%\owb\bin\admin\launcher.jar -DOWB_HOME=%OWB_HOME% -DJDK_HOME=%JDK_HOME% -DORA_HOME=%ORA_HOME% -DOEM_HOME=%OEM_HOME% -DIAS_HOME=%IAS_HOME% Launcher %RTHOME%\owb\bin\admin\owb.classpath oracle.wh.runtime.platform.service.Service %STARTUP_TYPE% %NODEID% %RTUSER% %HOST% %PORT% %SERVICE%
    (In the above line, please mention space, double quotes and other things carefully)
    3.     Save the file run_service.bat.
    4.     Open the sqlplus and login using OWB repository OWNER name and password (not user name / password).
    5.     Then, execute the below scripts
    SQL> @<OWB_HOME>\owb\rtp\sql\stop_service.sql
    SQL> @<OWB_HOME>\owb\rtp\sql\start_service.sql
    Now, you successfully enabled the control service platform.
    Now, go to OWB and deploy the objects.
    Thanks,
    Prabhu Kasinathan.
    Cognizant.

  • Unlock Encypted PDF Using certificates

    Hi All,
    I am using Encryption Service to unlock a pdf file and add reader extension rights to it.               API of the Encryption Service: unlockPDFUsingCredential(encryptDoc, keyAlias)  
    key Alias- The input value is the friendly name i.e. alias of the key present in the IE key store.
    This call fails with Error Message : ALC-ENC-100-013 Could not find credential from alias.
    Caused By: findCredentialByAlias: no Local or HSM credential found -- No such object in the store(error code bin: 262, hex: 0x106)(CredentialServiceImpl.java466)
    Note: The Acrobat pro is able to decrypt the encrypted doc but my LC call is failing.
    Encryption is done using this call:
    pkiIdentities -- This list has a recipeint which has a X509 cert (whose private key is used to unlock).
    encryptPDFUsingCertificates(inDoc,pkiIdentities, certOptionsSpec);
    Questions:
    1) The API gives no information about the location of the keyStore where it is getting the handle of the key using the alias.
    2) I looked at the removePDFCertificateSecurity(encryptDoc, keyAlias) API. That page describes the key should be rpesent in the Live cycle Store.
         Note: A private key is stored in the LiveCycle Trust Store. When a certificate is placed there, an alias value is specified.
    How can I get a handle to LC Trust Store.
    If possible please provice a sample code to do unlocking of the encrupted PDF.
    --Thanks
    greenday

    I was able to find a cuase of the issue and this is how I solved the problem.
    The alias required is privateKey firendly name in the LC Trust Store  so I have import the pfx credential in the LC Trust Store.
    I used the CredentialServiceClient to import a credential and register it in the LC Trust Store with an alias.
    --greendayX

  • Policies and Watermarks on docs with Signatures

    Is there a way to add a watermark to a document that contains electronic signatures.  Unless I am doing something wrong, I get an error message saying something to the effect that, "encryptUsingPolicy: Cannot encrypt a signed PDF -- (error code bin: 777, hex: 0x309) -- (error code bin: 777, hex: 0x309)".
    Whether the document is signed or unsigned, I get the same error.  The business case is such that if it is an electronically signed document, then anytime the print function is called, it should put a "COPY" watermark on the document to indicate that the printed version is NOT the original.  Unfortunately, there is one caveat to this rule....there is one special group of people who have the right to make an electronic document become a paper original by printing it out and destroying the electronic version.  In this case, we would NOT want the COPY watermark to appear on the document when printed.  I was thinking that a policy might solve the business requirements by adding the COPY policy to the document.  Then, if that special groups wants to print it, remove that policy.  But, I can't seem to add this policy to a signature-based document.....
    Any help/suggestions would be appreciated!

    Hi there,
    There might be some holes in the business case or my understanding of it (but without knowing all the details this is only an observation) ....  Not sure what the differentiator between the electronic and printed version is .... that is in essence they are both just copies after it has been digitally signed. I realize that the online version can detect any changes made after the signature and show a change in status since signed where as someone could just use a tool to duplicate (whatever the document is and is meant to represent) the document and print out a fake. But even with a non-electronic solution and a wet ink signature at some point you need to trust a paper copy as being an original. So if they are not using some sort of embossing stamp on paper copies why the need to specifically stamp it 'copy'?  If they are using an embossing stamp to represent an original then could you not just watermark the electronic right from the start and hence any printed version will contain the word 'copy' and any original hardcopy is requested from the issuer and has the embossing stamp?
    That observation aside, based on what is in the original post you could do a
    few things each with potential challenges depending on the software and architecture you have...
    1)  Code on the form
    If the assumption that once this document is signed it becomes official holds valid; then this will work because if not signed then clicking print will trigger the watermark.  In this case, as soon as you sign it you will not get the watermark when printed, but of course you can print as many copies as you like.
    To do this put code on the pre-print event that will turn a hidden read-only field (containing the "COPY" watermark) visible. This way when viewing online it is never watermarked and when viewing the printed copy it is always watermarked (you can put code behind the PrePrint event of the top level node in your form that will make a field's presence visible. That field at design time would have no caption / set to readOnly / have the default value by what you want the watermark to say / have its presence set to hidden and then you would just use code like <fieldname>.presence = "visible".
    2)  Using Policies
    Use two policies (because the dynamic watermark is based on a policy and cannot be assigned based on user/group in one policy)
    a)  So you will be sure to policy protect the document prior to signing with one of the policies (assume the “user-watermarked”). The challenge here is that the individuals who approve will also need the ability to switch the policy (policy set admin permission) so they can use the Rights Management end-user web interface to switch to the “approver – nonwatermarked” policy and do whatever it is that makes it an original and then switch back to the "user-watermarked" policy.
    Note:  What if while the policy is switched the regular user wants access and now can't get it or that the approved user even remembers to switch the policy back.  Another options is…
    b)  Automate it based on the full requirements == something like
                    i.     Capture who is authenticating to an automated LC Process.
                   ii.     If it is a regular user then the process grabs the already completed/signed and protected PDF from a repository and records the licenseId of the protected documenet while passing the doc back to the user. 
                 iii.     It is also possible that if in the future an approver is requested to generate a valid printed copy then when they authenticate it grabs the (user-watermarked) protected/signed PDF from the repository and switches the policy to the approver-nonwatermarked policy and passes that doc back to the approver who can print the document. 
                   iv.     It is also possible that you could do a bunch of other things such as
                                i.   Auto switch back the policy to the user-watermarked after the approver prints by capturing the print event
                               ii.   Instead of above you could make printing part of the process if the approver doesn’t actually modify and resign the document. That is get the protected/signed doc from repository > switch the policy > send to a printer > switch the policy back. 
                             iii.   If for some reason the approver actually has to make changes to the document then although protected with the same policy you now have two documents. the one originally sent to the user and the one the approver wants to change and print as an original. In this case you could have that same process retrieve the licenseId of the original policy protected document distributed to the user and revoke it.
    Hope those ideas will help you take your detailed understanding of the use case and apply some or all of the suggestions.

  • Problem with applying MyPolicy "Permisson denied"

    Hello everyone,
    we need to apply policies to PDFs using LiveCycle web services. We
    first have tried with the API and we got the same problem with both
    approach:
    (for it to be easier i'll display the API code)
    when we use the example it works just fine:
    policy set: Global Policy Set
    policy name: Restrict to All Principals
    Document protectPDF =  documentManager.applyPolicy(
                             inPDF,
                             "LoanPDF",
                             "Global Policy Set",
                             "Restrict to All Principals",
                             null,null);
    so we have created custom policies with the LC Gui (EDC)
    and when we try to use them with our client we get this error:
    Document protectPDF =  documentManager.applyPolicy(
                             inPDF,
                             "LoanPDF",
                             "MyPolicies",
                             "antoinetest",
                             "PCW","antoine.blanchard");
    =>adobe.edc.sdk.SDKException: Failed to retrieve policy
    [MyPolicies:antoinetest] -- Permission denied(error code bin: 1296,
    hex: 0x510)
    does anyone have a solution, explanation or whatever?
    Thanks for your help

    Does antoine.blanchard from the domain PCW have permissions as a document publisher.
    That is in the property of the custom policy set you created there should be a tab for publishers. Any users listed in that area are allowed to apply a policy from that set. Did you add antoine.blanchard from PCW into this area?  If so is the spelling of the domain and username correct?

  • Prb while programaticaly applying an RM policy

    Trying to programaticaly apply a policy using LCES web services call, I bump on the following SOAP exception :
    com.adobe.edc.sdk.SDKException: Failed to retrieve policy [PS:72238891-845b-4094-88a2-881f532a63ae] -- Invalid policy(error code bin: 1284, hex: 0x504)
    The execution context is LCES 8.0.1 SP1b under JBoss with MS Sql Server 2005 database.
    Prior to launching the program, we performed the following steps using the LCES adminui web interface under super administrator account :
    - Created a domain D
    - Created a user U in domain D and assigned him the following roles : 'service user', 'LCRM administrator', 'LCRM End User', 'LCRM Policy Set Administrator', 'LCRM Manage Invited and Local Users', 'LCRM Super Administrator'. No specific group membership has been granted to user U.
    - Created a user R in domain D and assigned her the following role : 'LCRM End User'. No specific group membership has been granted to user R.
    - Created a new global policy set PS and added domain D during step 2 (visible users and domains). No group or users were defined uring step 3 and 4.
    Now, if we take a look at the database, the policy set is registered in the EDCPOLICYSETENTITY table and is not hidden. Looking at the EDCPOLICYSETPRINCIPALENT table, we find the policy set type to be 3 and the principal id to be that of D, as registered in the EDCPRINCIPALDOMAINENTITY table. So far so good. Now we start our program which performs the following steps :
    - Under U credentials, register a new policy P in the PS policy set. This step is successful. Using the LCES adminui web interface, we go to Policies list for policy set PS and find our new policy P. Details pane for policy P states the policy ID to be 72238891-845b-4094-88a2-881f532a63ae (same as the one in the error message above).
    - Next the program attempts to apply the policy to a PDF document and we encounter the error message stated above.
    If we trace LCES server requests to the database, we can observe a failed attempt to retrieve policy set PS in table EDCPOLICYSETPRINCIPALENT. The failure occurs because, LCES search is based on the policy set id AND the associated principal id being one of : user U, GROUP_DOMAINPRINCIPALS for built-in domain EDC_SPECIAL, GROUP_ALLPRINCIPALS, all_authenticated_users, or GROUP_DOMAINPRINCIPALS for domain D. However, as stated above, policy set PS is registered in table EDCPOLICYSETPRINCIPALENT with principal id of domain D.
    QUESTIONS :
    1°) Is the failed search in table EDCPOLICYSETPRINCIPALENT responsible for the error message we encounter ? If not, what investigation do you suggest ?
    2°) If yes, did we forgot some step after creating policy set PS, so that the missed step(s) would lead to at least one row being created in table EDCPOLICYSETPRINCIPALENT that would fulfill the search condition ?

    Thank you for your reply Jasmin. In the mean time we figured this out and fixed the problem by updating step 3 and 4 of the policy the same way you suggest it in your answer.
    We also wondered for a while about the 5th and 6th parameters of the applyPolicy web method, namely the pubDomain and pubUserName. The LiveCycle ES Java API Reference documentation for the DocumentationManager interface clearly states both or none of them must be set. Sadly, the documentation doesn't highlight another important requirement : the credentials used to invoke the API / web service must be one of a user bound to a role that has been given the 'Identity Impersonation Control' access right. Failing to comply with this additional requirement triggers the following exception when invoking the web service :
    com.adobe.edc.sdk.SDKException: Context not authorized with permission : Identity Impersonation Control -- Authentication failed(error code bin: 513, hex: 0x201)

  • Microsoft word documents and removing policy.

    Can DocumentManger class can be used to remove security policy from secured Microsfot word docuemnts.
    Or protable protection library is the only way to deal with Microsoft word documents?
    I want my application to remove the strip off all security information from the document and re insert the same again at a later point.
    is portable protection library is the only way to go here.

    Thanks Steve for pointing out to API.
    I am getting exception as below for java client code snippet while inspecting document which is secured using MS Word 2007.
    Properties connectionProps = new Properties();
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://vvcon-qa-1.ptcnet.ptc.com:1099");
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceC lientFactoryProperties.DSC_EJB_PROTOCOL);         
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "administrator");
    ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);
    RightsManagementClient rightsClient = new RightsManagementClient(factory);
    //Reference a policy-protected Word document from which to remove a policy
    FileInputStream is = new FileInputStream(args[0]);
    Document inPDF = new Document(is);
    //Create a Document Manager object
    DocumentManager  documentManager = rightsClient.getDocumentManager();
    RMInspectResult lic = documentManager.inspectDocument(inPDF);
    Exception I am getting
    com.adobe.edc.sdk.SDKException: Error while looking up RM Header in the document -- Invalid argument(error code bin: 1281, hex: 0x501)
        at com.adobe.livecycle.rightsmanagement.RightsManagementService.throwSDKException(RightsMana gementService.java:958)
        at com.adobe.livecycle.rightsmanagement.RightsManagementService.getLicenseID(RightsManagemen tService.java:794)
        at com.adobe.livecycle.rightsmanagement.RightsManagementService.inspectDocument(RightsManage mentService.java:2260)
    Event if I try with user who can access document after connecting to LiveCycle ES2 from Microsoft Word 2007 I am getting same exception.
    I can acess document from MS Word after I have secured it using all users who have right permission for document but from java client I am not able to do that. Looks like RMS information is not embedded properly in my document.
    jars included in my classpath are
    adobe-rightsmanagement-client.jar,namespace.jar,jaxb-api.jar,jaxb-impl.jar,jaxb-libs.jar,j axb-xjc.jar,relaxngDatatype.jar,adobe-livecycle-client.jar,adobe-usermanager-client.jar,jb ossall-client.jar
    My client is running on Windows XP 32 bit with Office 2007.
    Server is installed on Windows server 2008 R2 64 bit and deplyoed using JBoss.
    Regards,
    Sharang

  • Apply Policy On a Dynamic PDF

    Hi,
    I want to apply a policy on a pdf document. I have created a policy through admin ui.
    When i am invoking the process following exception occurs:--
    ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:152)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:357)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:227)
    at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:158)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:169)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
    at $Proxy384.doSupports(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:93)
    at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:20 9)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:886)
    at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke(WorkflowDSCInvoker. java:347)
    at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:158)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:357)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew (EjbTransactionCMTAdapterBean.java:299)
    at sun.reflect.GeneratedMethodAccessor595.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:158)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:169)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:404)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
    at $Proxy384.doRequiresNew(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:143)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:329)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:139)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)
    at sun.reflect.GeneratedMethodAccessor859.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:179)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157)
    at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.adobe.edc.sdk.SDKException: user_identifier:Abhishek Test domain:DefaultDom -- Authentication failed(error code bin: 513, hex: 0x201)
    at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:443)
    at com.adobe.livecycle.rightsmanagement.helper.RMServiceEJBHelper.throwException(RMServiceEJ BHelper.java:423)
    at com.adobe.livecycle.rightsmanagement.helper.RMServiceEJBHelper.getPublishLicenseDTO(RMSer viceEJBHelper.java:197)
    at com.adobe.livecycle.rightsmanagement.RightsManagementService.applyPolicy(RightsManagement Service.java:313)
    at com.adobe.livecycle.rightsmanagement.RightsManagementService.protectDocument(RightsManage mentService.java:215)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    ... 128 more
    Caused by: com.adobe.idp.um.api.UMException| [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16386 errorCodeHEX:0x4002 message:user_identifier:Abhishek Test domain:DefaultDomcom.adobe.idp.common.errors.exception.IDPException| [com.adobe.idp.um.businesslogic.directoryservices.DirectoryServicesManagerBean] errorCode:13316 errorCodeHEX:0x3404 message:user_identifier:Abhishek Test domain:DefaultDom
    at com.adobe.idp.um.api.impl.ManagerImpl.handleException(ManagerImpl.java:251)
    at com.adobe.idp.um.api.impl.ManagerImpl.handleException(ManagerImpl.java:194)
    at com.adobe.idp.um.api.impl.AuthenticationManagerImpl.getAuthResultOnBehalfOfUser(Authentic ationManagerImpl.java:191)
    at com.adobe.idp.um.dscservice.AuthenticationManagerServiceImpl.getAuthResultOnBehalfOfUser( AuthenticationManagerServiceImpl.java:91)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
    at sun.reflect.GeneratedMethodAccessor640.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:158)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 73)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:169)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
    at org.jboss.ejb.Container.invoke(Container.java:960)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
    at $Proxy385.doRequiresNew(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:145)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:165)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:93)
    at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:20 9)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient.getAuthResultOn BehalfOfUser(AuthenticationManagerServiceClient.java:193)
    at com.adobe.livecycle.rightsmanagement.helper.RMServiceEJBHelper.getPublishLicenseDTO(RMSer viceEJBHelper.java:174)
    ... 135 more
    Below diagram shows the attributes:-
    Thanks

    Hi,
    I am invoking process through workbench and user 'Abhishek Test' is listed as Document Publisher in the policy set.
    Thanks.

  • Cannot connect to Policy Server

    Hi -
    I've just started using Policy Server and am trying to connect to it using the SDK.
    I've got a very small amount of source code which I took from the API documentation which should literally create the properties & then calls EDCFactory.connect.
    When I try and connect I keep getting the error message:
    Exception connecting to the Server -- An error occured while performing this operation(error code bin: 1, hex: 0x1)
    I've seen a couple of other people getting this error on this list but haven't really found a solution.
    I have imported a new config.xml file to set WebServicesEnabled to true (but not restarted the server - do I need to?), and I've created an external user that I'm using to connect to the policy server (I have also tried with the administrator).
    I'm running the client that's connecting on my local machine, and trying to connect to the policy server machine. I can enter the /edcws/services/EDCPolicyService?wsdl url into a web browser from my local machine and I get an xml response, so I presume that the server is contactable.
    Can anyone point me in the right direction as to how to debug this issue?

    Hi Bill -<br /><br />Thanks for responding - the full strack trace is as follows ... the thing that I noticed was that I get an error from the WSSecurityHandler saying the message has an invalid timestamp. But I must be honest I don't know how to set this.<br /><br />I figured maybe this is some server configuration that I haven't performed?<br /><br />Anyway, many thanks for responding.<br /><br />Anil.<br /><br />Stack Trace:<br />------------<br /><br />The exception is: Exception connecting to the Server -- An error occured while performing this operation(error code bin: 1, hex: 0x1)<br />com.adobe.edc.sdk.SDKException: Exception connecting to the Server -- An error occured while performing this operation(error code bin: 1, hex: 0x1)<br />     at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:78)<br />     at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:88)<br />     at com.adobe.edc.sdk.EDCFactory.connect(EDCFactory.java:190)<br />     at com.semantico.drm.client.ApplyPolicy.createConnection(ApplyPolicy.java:45)<br />     at com.semantico.drm.client.ApplyPolicy.main(ApplyPolicy.java:25)<br />Caused by: com.adobe.edc.sdk.SDKException: WSSecurityHandler: security processing failed. Exception Message -- An error was discovered processing the <wsse:Security> header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired) -- Internal server error(error code bin: 1032, hex: 0x408)<br />     at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:54)<br />     at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:88)<br />     at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:36)<br />     at com.adobe.edc.sdk.impl.soap.SOAPConnection.getAssertion(SOAPConnection.java:434)<br />     at com.adobe.edc.sdk.impl.soap.SOAPClientFactoryImpl.<init>(SOAPClientFactoryImpl.java:97)<b r />     at com.adobe.edc.sdk.EDCFactory.connect(EDCFactory.java:187)<br />     ... 2 more<br />Caused by: com.adobe.edc.common.PolicyServiceException<br />     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)<br />     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)<br />     at java.lang.reflect.Constructor.newInstance(Unknown Source)<br />     at java.lang.Class.newInstance0(Unknown Source)<br />     at java.lang.Class.newInstance(Unknown Source)<br />     at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)<br />     at org.apache.axis.encoding.ser.BeanDeserializerFactory.getGeneralPurpose(BeanDeserializerFa ctory.java:88)<br />     at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFa ctory.java:90)<br />     at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.ja va:449)<br />     at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationCon text.java:529)<br />     at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java :157)<br />     at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java: 1015)<br />     at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)<br />     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)<br />     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source)<br />     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)<br />     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)<br />     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)<br />     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<br />     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)<br />     at javax.xml.parsers.SAXParser.parse(Unknown Source)<br />     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)<br />     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)<br />     at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)<br />     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) <br />     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)<br />     at org.apache.axis.client.Call.invokeEngine(Call.java:2735)<br />     at org.apache.axis.client.Call.invoke(Call.java:2718)<br />     at org.apache.axis.client.Call.invoke(Call.java:2394)<br />     at org.apache.axis.client.Call.invoke(Call.java:2317)<br />     at org.apache.axis.client.Call.invoke(Call.java:1774)<br />     at com.adobe.edc.sdk.impl.soap.SOAPConnection.getAssertion(SOAPConnection.java:430)<br />     ... 4 more

  • HTML ATTACHMENT - SPECIAL CHARACTERS IS COMING WRONLY

    Hi All,
    i have used SO_DOCUMENT_SEND_API1 to send the attachment in mail ... in attachment mail it is not supporting special characters, showing the characters wrongly
    For example..
    User given Decription
    Moeda Comemorações e Evento
    Recieved Output like this
    Moeda Comemora瀵es e Evento
    Please let me know any parameter i have missed to enable unicode functionality.
    searched in the SDN, some suggestions to apply the sap note but my system is already applied ...
    Thanks,
    ram

    Hi,
    Pass the attachement data to contents_hex  instead of contents_bin    
    See the conversion between the bin and hexa..
    CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = lt_objbin
          objcont_new = lt_objbin.
      LOOP AT lt_objbin INTO l_line.
       conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
        CALL METHOD conv->write( data = l_line ).
        l_buffer = conv->get_buffer( ).
        MOVE l_buffer TO l_hexa.
        MOVE l_hexa TO l_hex-line.
        APPEND l_hex TO lt_contents_hex.
      ENDLOOP.
    For more help refer to this link for example..http://docs.google.com/Doc?id=dfv2hmgs_6hf8nm5f4&hl=en

  • Extend a Document Protected by Policy Server...

    I think I have the right idea, correct me if I am wrong. I apply a policy to a PDF using Acrobat 7. I then want to Reader Extend it but can't do it through the web interface so I write a Servlet. When the Servlet runs I get an error (see below). It is failing on the call to openPDFWithAPS just saying that the operation failed. Basically, I followed the sample given by Adobe for doing a Reader Extension through the API but instead of calling openPDF I call openPDFWithAPS. Am I on the right track? Any idea what the error is? In the server log file I see some failed connections to localhost:1099 (NamingService) but I do not bind my copy of JBoss to locahost, just to a single IP. Is there some call I should change to provide the address for the NamingService?
    com.adobe.document.pdf.PDFOperationFailure: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
    at com.adobe.document.pdf.PDFOperationFailureHelper.read(PDFOperationFailureHelper.java:67)
    at com.adobe.document.pdf._PDFFactoryStub.openPDFWithAPS(_PDFFactoryStub.java:116)
    at com.devx.example.ExtendReaderServlet.setRights(ExtendReaderServlet.java:184)
    at com.devx.example.ExtendReaderServlet.service(ExtendReaderServlet.java:48)
    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)

    Here is the error in server.log when I use the administrator account in the call to openPDFWithAPS. It is a little different from the one above (above I used the user account of the user who set the policy on the document that I am attempting to open).
    2005-06-23 16:37:45,015 INFO [com.adobe.service.APSProxyService] Resource Created, APSProxy
    2005-06-23 16:37:45,031 INFO [com.adobe.service.APSProxyService] $$$/APSProxyImpl/msg.newAgent=Instantiating new APSProxy
    2005-06-23 16:37:45,046 INFO [com.adobe.service.APSProxyService] $$$/APSProxyImpl/msg.config java.naming.provider.url=172.17.1.4:1099
    2005-06-23 16:37:45,046 INFO [com.adobe.service.APSProxyService] $$$/APSProxyImpl/msg.config java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    2005-06-23 16:37:45,046 INFO [com.adobe.service.APSProxyService] $$$/APSProxyImpl/msg.config java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    2005-06-23 16:37:45,734 ERROR [com.adobe.service.APSProxyService] com.adobe.edc.sdk.SDKException: No view permission(error code bin: 770, hex: 0x302)
    2005-06-23 16:37:45,734 ERROR [com.adobe.service.APSProxyService] 770
    2005-06-23 16:37:45,734 ERROR [com.adobe.service.APSProxyService] com.adobe.edc.common.EDCException
    at com.adobe.edc.policy.PolicyManagerBean.throwException(PolicyManagerBean.java:605)
    at com.adobe.edc.policy.PolicyManagerBean.getVoucher(PolicyManagerBean.java:456)
    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:341)
    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.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.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.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
    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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
    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 $Proxy66.getVoucher(Unknown Source)
    at com.adobe.service.APSProxyImpl.GetVoucher(APSProxyImpl.java:320)
    at com.adobe.service.APSProxyPOATie.GetVoucher(APSProxyPOATie.java:54)
    at com.adobe.service.APSProxyPOA._invoke(APSProxyPOA.java:102)
    at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
    at org.jacorb.poa.RequestProcessor.process(Unknown Source)
    at org.jacorb.poa.RequestProcessor.run(Unknown Source)
    2005-06-23 16:37:45,781 ERROR [com.adobe.document.PDFManipulation] an unknown exception caused the call to fail

  • Exception while removing policy from protected .docx file.

    I am getting exception as below for java client code snippet while inspecting document which is secured using MS Word 2007.
    Properties connectionProps = new Properties();
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT _EJB_ENDPOINT, "jnp://vvcon-qa-1.ptcnet.ptc.com:1099");
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPO RT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);        
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_ TYPE, "JBoss");
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENT IAL_USERNAME, "administrator");
    connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENT IAL_PASSWORD, "administrator");
    ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);
    RightsManagementClient rightsClient = new RightsManagementClient(factory);
    //Reference a policy-protected Word document from which to remove a policy
    FileInputStream is = new FileInputStream(args[0]);
    Document inPDF = new Document(is);
    //Create a Document Manager object
    DocumentManager  documentManager = rightsClient.getDocumentManager();
    RMInspectResult lic = documentManager.inspectDocument(inPDF);
    Exception I am getting
    com.adobe.edc.sdk.SDKException: Error while looking up RM Header in the document -- Invalid argument(error code bin: 1281, hex: 0x501)
        at com.adobe.livecycle.rightsmanagement.RightsManagementService.throwSDK Exception(RightsManagementService.java:958)
        at com.adobe.livecycle.rightsmanagement.RightsManagementService.getLicen seID(RightsManagementService.java:794)
        at com.adobe.livecycle.rightsmanagement.RightsManagementService.inspectD ocument(RightsManagementService.java:2260)
    Event if I try with user who can access document after connecting to LiveCycle ES2 from Microsoft Word 2007 I am getting same exception.
    I can acess document from MS Word after I have secured it using all users who have right permission for document but from java client I am not able to do that. Looks like RMS information is not embedded properly in my document.
    jars included in my classpath are
    adobe-rightsmanagement-client.jar,namespace.jar,jaxb-api.jar,jaxb-impl .jar,jaxb-libs.jar,jaxb-xjc.jar,relaxngDatatype.jar,adobe-livecycle-cl ient.jar,adobe-usermanager-client.jar,jbossall-client.jar
    My client is running on Windows XP 32 bit with Office 2007.
    Server is installed on Windows server 2008 R2 64 bit and deplyoed using JBoss.
    One more intresting fact here is my java client can protect document and unprotect same document.
    However document which is protected by Microsoft Rights Management extension plugin cannot
    be unprotected by my java client.
    Regards,
    Sharang

    It seems to work properly, in that, the appropriate words are removed from the story. However, I'd like to keep the story in order, as it was before any manipulation took place (just with the words removed). Currently, I am presented with a column of words with the order of words seemingly random.
    Thanks.

Maybe you are looking for