Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

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

Avatar

Level 1

When I am creating any new policy programmatically (EJB connection), following below link:

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

I have included below 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 with exceptions:

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.getSDKException(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(SCFConnection.java:135)

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

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


where CreatePolicy is my created class to create new policy.

Please guide me what I a doing wrong here or I am missing avy jar files.


Thanks.

0 Replies