1 Reply Latest reply on Feb 15, 2016 11:32 PM by renup99455678

    Error connecting or communicating with server -- Cannot communicate with server, when creating new Policy programmatically

    renup99455678

      When I am creating a new policy (EJB mode )nI am getting following exceptions:I followed this link to create the policy:

      http://help.adobe.com/en_US/livecycle/11.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8- 7cb5.2.html

       

      As,I am using weblogic sever ,so I included following jar files:

      adobe-rightsmanagement-client.jar

      adobe-livecycle-client.jar

      adobe-usermanager-client.jar

      adobe-utilities.jar

      commons-httpclient-3.1.jar

      wlclient.jar

       

      I am getting below error:

      com.adobe.edc.sdk.SDKException: Error connecting or communicating with server -- Cannot communicate with server(error code bin: 1026, hex: 0x402) -- Cannot communicate with server(error code bin: 1026, hex: 0x402)

        at com.adobe.edc.sdk.impl.ExceptionHandler$ServiceNotFoundExceptionTranslator.getSDKExceptio n(ExceptionHandler.java:372)

        at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:461)

        at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(ExceptionHandler.java:420)

        at com.adobe.livecycle.rightsmanagement.client.impl.scf.SCFConnection.registerPolicy(SCFConn ection.java:135)

        at com.adobe.livecycle.rightsmanagement.client.impl.PolicyManagerImpl.registerPolicy(PolicyM anagerImpl.java:88)

        at com.policy.CreatePolicyTest.main(CreatePolicyTest.java:68)

       

      where CreatePolicy.java id the class created by me,in which I have included the code for the createPolicy.

       

      Please guide me,what I am doing wrong here or I am missing any jar files..