I am getting the following runtime error and am not sure why:
com.adobe.edc.sdk.SDKException: Remote EJBObject lookup failed for ejb/Invocation provider -- An error occured while performing this operation(error code bin: 1, hex: 0x1)
I believe I have all the correct jar files.
Here is the code:
Properties properties = new Properties();
properties.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB _ENDPOINT,
urlName);
properties.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_P ROTOCOL,
ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);
properties.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE ,
ServiceClientFactoryProperties.DSC_JBOSS_SERVER_TYPE);
properties.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_ USERNAME, username);
properties.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_ PASSWORD, password);
ServiceClientFactory client = ServiceClientFactory.createInstance(properties);
RightsManagementClient rmClient = new RightsManagementClient(client);
DocumentManager docManager = rmClient.getDocumentManager();
RMSecureDocumentResult finalDoc = null;
try {
finalDoc = docManager.protectDocument(pdf, outputName, policySet, policyName,
null, null, null);
} catch (SDKException e) {
e.printStackTrace();
}
Has anyone encountered the same problem?