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
BedrockMission!

Learn more

View all

Sign in to view all badges

AdobeLivecycle PDFG ALC-PDG-080-036 NO USER

mussc
Level 2
Level 2

The same code has been running fine for over a year, but is failing now. The code used is following

public static void ftConverter(String inFName, String outFName) {

        try {

            init();

            // Create a ServiceClientFactory instance

            ServiceClientFactory factory = ServiceClientFactory

                    .createInstance(connectionProps);

            log.info("Starting the PDF Conversion "+outFName);

            // Create a GeneratePdfServiceClient object

            GeneratePdfServiceClient pdfGenClient = new GeneratePdfServiceClient(

                    factory);

            // Get a Microsoft Word file document to convert to a PDF document

            String inputFileName = inFName;

            FileInputStream fileInputStream = new FileInputStream(inputFileName);

            Document inDoc = new Document(fileInputStream);

            // Convert the Word document to a PDF document

            CreatePDFResult result = pdfGenClient.createPDF2(inDoc, ".tif",

                    fileTypeSettings, adobePDFSettings, securitySettings, null,

                    null);

            // Get the newly created document

            Document createdDocument = result.getCreatedDocument();

            // Save the converted PDF document as a PDF file

            createdDocument.copyToFile(new File(outFName));

            log.info("Finished the PDF Conversion "+outFName);

        } catch (Exception e) {

            e.printStackTrace();

        }

    }

The properties are

   connectionProps.setProperty(
   ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT,
   "http://a-lc.ussc.gov:8080");
   connectionProps.setProperty(
   ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,
   ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);
   connectionProps.setProperty(
   ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
   connectionProps.setProperty(
   ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME,
   "administrator");
   connectionProps.setProperty(
   ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD,
   "********");
   connectionProps.setProperty(
   ServiceClientFactoryProperties.DSC_REQUEST_TIMEOUT,
   "7200000");

ALC-PDG-080-036-Unable to connect to PDFG Service. No User has been defined.

0 Replies