3 Replies Latest reply on Sep 24, 2008 8:09 AM by (Alok_Marwaha)

    PDF Generator DOC to PDF Solaris Error

      Greetings, any insight on this error would be helpful! Attached is my environment, code, and stack trace.
      Thanks!

      OS
      ----
      SunOS oamsandbox 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V440

      Deployments
      --------------
      Deployment adobe-livecycle-native-weblogic-sparc_sunos (8.2.1,Foundation 8.2.2176.1.183920.1)
      Deployment adobe-livecycle-weblogic (8.2.1,Foundation 8.2.2176.1.183920.1)

      Both are active
      All deployed components active on WebLogic

      Code Being Run
      ----------------
      package com.ccms.poc;

      import java.io.File;

      import java.io.FileInputStream;

      import java.util.Properties;



      import com.adobe.idp.Document;

      import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;

      import com.adobe.livecycle.generatepdf.client.CreatePDFResult;

      import com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient;

      public class GeneratePdf_CreatePDF {

      public static void main(String[] args)

      {

      //Specify connection properties necessary to invoke LiveCycle ES

      Properties ConnectionProps = new Properties();

      //ConnectionProps.setProperty("DSC_DEFAULT_SOAP_ENDPOINT", "http://localhost:7001");

      //ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "SOAP");

      ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "t3://localhost:7001");

      ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "EJB");

      ConnectionProps.setProperty("DSC_SERVER_TYPE", "WebLogic");

      ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");

      ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");



      // Create a ServiceClientFactory instance

      ServiceClientFactory factory = ServiceClientFactory.createInstance(ConnectionProps);


      System.out.println("-1");

      try{

      //Get a Microsoft Word file document to convert to a PDF document and populate a com.adobe.idp.Document object

      String inputFileName = "/export/home/beauser/docs/adjustment_activity_report.doc";

      FileInputStream fileInputStream = new FileInputStream(inputFileName);

      System.out.println("0");

      Document inDoc = new Document(fileInputStream);

      System.out.println("1");

      String adobePDFSettings = "Standard";

      String securitySettings = "No Security";

      String fileTypeSettings = "Standard";



      CreatePDFResult result = new CreatePDFResult();

      result = new GeneratePdfServiceClient(factory).createPDF(

      inDoc,

      inputFileName,

      fileTypeSettings,

      adobePDFSettings,

      securitySettings,

      null,

      null);

      System.out.println("2");


      //Get the newly created document

      Document createdDocument = result.getCreatedDocument();

      System.out.println("3");

      //Save the file

      createdDocument.copyToFile(new File("/export/home/beauser/pdfs/output.pdf"));

      System.out.println("4");
      }

      catch (Exception e) {

      System.out.println("Error OCCURRED: " + e.getMessage());
      System.out.println("Stack Trace::\n");
      e.printStackTrace();

      }

      }

      }

      ERRORS
      --------
      -1
      0
      1
      Error OCCURRED: ALC-PDG-001-000-Conversion failed because of an exception.
      Can't find resource for bundle java.util.PropertyResourceBundle, key 1009
      Stack Trace::

      ALC-PDG-1000-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-001-000-Conversion failed because of an exception.
      Can't find resource for bundle java.util.PropertyResourceBundle, key 1009
      Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key 1009
      at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
      at java.util.ResourceBundle.getString(ResourceBundle.java:285)
      at com.adobe.idp.dsc.util.MessageUtil.formatMessage(MessageUtil.java:252)
      at com.adobe.idp.dsc.util.MessageUtil.get(MessageUtil.java:169)
      at com.adobe.idp.dsc.DSCError.getLocalizedMessage(DSCError.java:304)
      at com.adobe.idp.ds