Expand my Community achievements bar.

Remote EJBObject lookup failed for ejb/Invocation provider

Avatar

Former Community Member

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_PROTOCOL,

                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?

0 Replies