0 Replies Latest reply on Apr 16, 2012 8:08 PM by edmiller75

    Remote EJBObject lookup failed for ejb/Invocation provider

    edmiller75

      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?