Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle APIs
Viewing all 25833 articles
Browse latest View live

Retrieving user context when service was invoked via REST

$
0
0

Hi,

 

I have created a custom component with several operations which are exposed via REST endpoint.  My question is how do I retrieve the user context from the REST call that uses Basic Authenttication (set in the header) and then pass that user context for Java API to use accordingly?

 

 

Thanks in advance.


What are the valid truststore usage types when importing a certificate?

$
0
0

I'm trying to import a certificate using the CertificateServiceClient.  I use the string "truststore.usage.type.sign" as the usage string, but I'm getting this stack trace:

 

[exec] java.lang.IllegalArgumentException: Illegal Certificate Usage Type truststore.usage.type.sign

   at com.adobe.truststore.businessobject.CertificateBO.setCertificateUseTypes(CertificateBO.ja va:160)  

   at com.adobe.truststore.businessobject.CertificateBO.<init>(CertificateBO.java:59)

   ...

 

What should I use instead? I want to add certificates so that I can validate digital signatures.

Conversion of Word Document into PDF

$
0
0

I was trying out the code sample provided in the sdk help on converting the word document into pdf. I could not get the code to work and was prompted with the following exception:

 

java.lang.IllegalStateException
        at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:67)
        at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
        at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF(GeneratePdfServ iceClient.java:172)
        at testadobeapp.Main.main(Main.java:49)
Caused by: java.lang.NoClassDefFoundError: javax/ejb/EJBException
        at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(ServiceClientF actory.java:558)
        at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:215)
        ... 2 more

 

 

My code is as follows:

 


package testadobeapp;

import java.util.*;
import com.adobe.idp.Document;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
import com.adobe.livecycle.generatepdf.client.*;
import java.io.File;
import java.io.FileInputStream;

/**
*
* @author Administrator
*/
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
            Properties ConnectionProps = new Properties();
            ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "t3://20.2.150.64:8001");
            ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "EJB");
            ConnectionProps.setProperty("DSC_SERVER_TYPE", "Weblogic");
            ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "username");
            ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");

            ServiceClientFactory factory = ServiceClientFactory.createInstance(ConnectionProps);

        try {
            String inputFilename = "c:\\test.docx";
            FileInputStream fileInputStream = new FileInputStream(inputFilename);
            Document inDoc = new Document(fileInputStream);
            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);

            Document createdDocument = result.getCreatedDocument();
            createdDocument.copyToFile((new File("C:\\test.pdf")));


        } catch (Exception e) {
           e.printStackTrace();
   
        }

    }
}

 

Am I missing something here? Thanks in advance.

AdobeLivecycle PDFG ALC-PDG-080-036 NO USER

$
0
0

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.

Livecycle Javascript

$
0
0

I built a XFA based dynamic form template using livecycle. I heavily use javascript to look through the xml bound to a page and add rows to tables dynamically.

 

Example below:

 

var locationTotal = xfa.resolveNodes("Page1.dataNode.Location[*]").length;

var locationArray = new Array();

var i=0;

 

for (i=0; i<locationTotal; i++)

{

          locationArray[i] = xfa.resolveNode("Page1.dataNode.Location[" + i + "]");      

          var buildingTotal = xfa.resolveNodes("Page1.dataNode.Location[" + i + "].Building[*]").length;

          var buildingArray = new Array();

          var j=0;  

          for (j=0; j<buildingTotal ; j++)

          {

                    buildingArray[j] = xfa.resolveNode("Page1.dataNode.Location[" + i + "].Building[" + j + "]");

                    var buildingRow = BOPPolicyDocumentData.Page1.PropertyTableSubform.LocationSubform.AddressTable._Row1.addIn stance(1);

                    buildingRow.LocNo.rawValue = locationArray[i].unitNumber.value;

  }

}

 

I use iText to merge the template and the xml. But from what I understand, iText does not run the javascript. The javascript needs to run at the client when the form is opened using acrobat reader.

This means the form cannot be viewed using other PDF readers which do not support javascript in them.

Also since the layout of such a form is determined when the form is opened rather than at the server, I cannot merge it with other dynamic PDFs to combine them all into one PDF.

Any advice on how I can eliminate javscript to run on the client side?

 

Thanks in advance!

Sirisha.

How to call preview release SOAP API from non-java environment (e.g. .NET)

$
0
0
I've finally managed to get the Forms Server ES preview release installed and configured together with JBoss.

Now I want to try and call the SOAP API from a .NET project.

The only article I have on this is this:
Adobe - Developer Center : Developing a .NET web application using Adobe LiveCycle Forms

The articel looks useful (potentially), but the ES Preview Release doesn't offer any DLL client libraries such as "ICSharpCode.SharpZipLib.dll" mentioned in the article.

So, as an alternative I've tried generating a .NET class library from the WSDL definition at "http://localhost:8080/soap/services/FormsService?wsdl". This seems to generate a class library ok. But now I'm trying to understand what all the arguments are for the renderForm() and renderPDFForm() methods... My method calls seem to be getting SoapExceptions back so it feels as if I'm nearly there if only I could account for all the arguments correctly.

Is there a comprehensive description of these anywhere? All I've found so far is thejava class library documentation for the FormServiceClient class methods, which isn't quite the same as what I'm trying to use.

Output Service Java API

$
0
0
Hi,

I have installed and deployed Adode LC ES 8.1 for weblogic. I have two questions;
1) While deploying the components 'Workbench Admin', 'Rights Admin' and 'PDF generator', exceptions are thrown saying that somes jar can not be deployed. After this exception the deployment stops.

a) PDF Generator Component

[2007-07-11 17:44:02,751], FINE , Thread-11, com.adobe.livecycle.lcm.feature.deployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-pdfgconfig-dsc.jar
[2007-07-11 17:44:08,749], SEVERE , Thread-11, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component.
com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy component.

b) Righta Admin Component

[2007-07-11 17:41:59,449], FINE , Thread-10, com.adobe.livecycle.lcm.feature.deployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-rightsmanagement-weblogic-dsc.jar
[2007-07-11 17:42:10,314], SEVERE , Thread-10, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component.
com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy component.

c) Workbench Admin Component

[2007-07-11 17:37:03,329], FINE , Thread-8, com.adobe.livecycle.lcm.feature.deployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-workspacepersistence-dsc.jar
[2007-07-11 17:37:05,001], SEVERE , Thread-8, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component.
com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy component.

2) I do not know whether this is because of the above. When I am using Output Service with Java API, to generate PDF for a given xdp and xml data, I am getting the below exception,

Exception in thread "Main Thread" com.adobe.livecycle.output.exception.OutputException: com.adobe.idp.DocumentError: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class com.adobe.idp.DocumentFileID (see the server-side log for details)
at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:138)
at adobe.CARSPDFGenerator.main(CARSPDFGenerator.java:46)
Caused by: com.adobe.idp.DocumentError: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class com.adobe.idp.DocumentFileID (see the server-side log for details)

Appreciated your help.

Thanks
Raghu

JAR Files Download for LiveCycle ES SDK

$
0
0

Greetings,

 

I would like to run the sample JavaAPIConvertPDFtoImage, located here

 

I can't seem to find the right download that contains these Jar files. I've downloaded and installed, Adobe LifeCycle for JBoss (3 GB) but couldn't find the SDK which I assume to contain the JAR files that I need.

 

Can someone please share a download link.

 

Thank you


processFormSubmission form submitted as pdf issue

$
0
0

Hi

I have a scenario where, the form must be submitted as PDF content_type, i.e while designing the form, I am setting the submit form as "PDF" format. I have written a J2EE application that receives the submitted form.  Here is what, I am doing.

 

Document formData =

new Document(request.getInputStream());

 

formData.copyToFile(

new File("C:/home1/eformwas/InputFile.pdf"));

 

I ensured that the submitted content from the web browser is a pdf file by opening the InputFile.pdf in the acrobat reader and I verified that the form is siubmitted with the data that I have posted.

 

Next step, I wanted to process this form, and extract out some of the data elements in it. Hence I did the following

 

RenderOptionsSpec processFormSubmissionOptionsSpec =

new RenderOptionsSpec();

 

 

 

 

processFormSubmissionOptionsSpec.setXMLData(

true);

processFormSubmissionOptionsSpec.setPDF2XDP(

true);

processFormSubmissionOptionsSpec.setExportDataFormat(

"XMLData");

 

formsResultObject = formsServicesClientObject.processFormSubmission(formData ,

"HTTP_REFERER=referrer&HTTP_CONNECTION=keep-alive& CONTENT_TYPE=application/pdf&CONTENT_TYPE=application/vnd.adobe.xdp+xml&CONTENT_TYPE=text/ xml",

"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)",

 

 

processFormSubmissionOptionsSpec);

 

When I execute the above code, I get the following error at processFormSubmission method,

 

Caused by: com.adobe.livecycle.formsservice.exception.FormServerException: Parse error on document: DataSets error: Parse error on document: FSRequest error:  Content is not allowed in prolog.

 

Any idea, of what is causing this issue. Can I process a form that is submitted as "pdf" content type.? I guess, I can.

 

As a cross check, I created the whole scenario by creating a process in the LC process modeller and used the processFormSubmission task of the Forms Service and I was successful in processing the form. Not sure, am I missing to set something in RenderOptionSpec or is this a bug in LC SDK ?

 

LiveCycle error log, also reports the error when invoked through LC SDK API

 

[1/26/10 11:13:36:627 EST] 0000008a FormServerExc E com.adobe.livecycle.formsservice.logging.FormsLogger logMessage ALC-FRM-001-016: Parse error on document: DataSets error: Parse error on document: FSRequest error: Content is not allowed in prolog.

 

 

However, everything works like a charm if processFormSubmission invoked as part of LC process model. I even downloaded the data part as getOutputXML task in the process model and it looks well formed.

 

 

Will greatly appreciate your response.

Many Thanks

Gopala...

Converting PDF to image

$
0
0

Hi,

 

1.We need to convert the each page of the PDF to JPG image in JAVA .

 

   DoLiveCycle ES APIs or any other Acrobat product provide API or SDK to do so?.

 

2. Is it possible to get the Orginal dimension  and the DPI  information (if the document is created in photoshop with 1667 X 1667 pixel as dimensions and DPI as 250 ) for each page.If so that is the API we can use for it.

 

For example:

a PDF document with

Width  :1667 px

Height :1192 px

 

Document Width :6.668 inches

                Height:4.768 inches

 

DPI is 250 pixels/inch.

 

When i open the same docuent in notepad I am able see the header information as /MediaBox [ 0 0 480 343 ]

 

and

<<
/Type /XObject
/Subtype /Image
/Interpolate false
/Filter /DCTDecode
/Width 1667
/Height 1192

/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Length 11 0 R

>>

 

 

which is nothing but (1667 /250)*72 and (1667 /250)*72.

 

we want the values as

Width  :1667 px and

Height :1192 px

is it possible to get?.

 

Regards,

Uvaraj S.

Error when i try encrypt a file

$
0
0

Hi, Folk,

 

I don't know if this is the correct Forum to make this Question, but here your are...

 

I'm trying encrypt a file throw a web service, this file was generated by htmlToPdf and my Document don't have the real data, have a Document Manager reference, and the get the follow undescribe error.

 

com.adobe.livecycle.encryption.client.EncryptionServiceException: com.adobe.livecycle.encryption.client.CertificateEncryptionPermissions -- (error code bin: 1, hex: 0x1)
Caused By: com.adobe.livecycle.encryption.client.CertificateEncryptionPermissions(EncryptionService.java356)
     ar.com.integra.gcba.ddjj.pdf.PDFServlet.doGet(PDFServlet.java:54)
     ar.com.integra.gcba.ddjj.pdf.PDFServlet.doPost(PDFServlet.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:363)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


If anyone could give me a clue to solving this problem, would be very grateful

Thank you, in advance.


Help regarding Search for Fragments Used

$
0
0

Hi,

Can someone help me in searching for the fragments used in a repository which has XDP's in it. I am using Dotnet application.

xmlx,pptx and docx extension documents are not opening, log error: com.adobe.idp.DocumentError: the

$
0
0

Hi,

 

When we are trying to open a document:

 

2012-04-25 14:22:30,576 ERROR [com.adobe.idp.DocumentManagerServlet] DOCS001: Unexpected exception. See the stack trace for details.

com.adobe.idp.DocumentError: the requested type is not allowed

          at com.adobe.idp.DocumentManagerServlet.validateCleanContentType(DocumentManagerServlet.java :242)

          at com.adobe.idp.DocumentManagerServlet.doGet(DocumentManagerServlet.java:265)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:179)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:580)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

          at java.lang.Thread.run(Thread.java:662)

 

 

We are facing this issue with all xmlx,pptx and docx extension documents.

 

Rohan Raj.

Merge dynamic PDFs into one

$
0
0

Hi.

 

I am aware that similar questions have been asked in the past but I am not able to find any definite answer. And, I may have a slightly different (easier) requirement, so I thought of raising this question again.

 

I have a Dynamic XFA form created using LiveCycle Designer.  I have used XSD binding and at runtime, in Java,  using some third party utility I fill in the XML data adhering to the XSD in this Dynamic form. So the result is a filled PDF document (pretty much static) which looks like any other read only PDF document. But, as at the core it is a XFA document, I am not able to concatenate it with other such resulting PDF document. No third party library is able to handle it and the reason may be the fact that they are internally dealing with XML rather than a standard PDF.

 

So to be specific : I need to find some Java based solution as I do not have a way to do it using LiveCycle or any Desktop based tool. And I need to concatenate two Dynamic XFA documents which have been filled out and saved as x.pdf and y.pdf on a disk. They look and feel like any standard PDF documents.

 

What are my options? Does Adobe have any Java APIs for this purpose? I am looking for some cost effective solution though as we can not afford to buy a full enterprise suite for this purpose.

 

Any help or pointers are much appreciated.

Thanks in advance!

com.adobe.livecycle.rca.common.utils.StringUtils

$
0
0

Hi,

 

I want to convert Document object to byte array. For that I want to use StringUtils. I've installed LiveCycle workbence ES2 but I couldn't find it anywhere. Can you please let me know how can I get it?


Is there an SOAP API for the forms manager?

Readdle PDF Expert using JavaScript forms

$
0
0

Hi there,

 

I am trying to build a form that will handle three successive dependent drop-down menus.  I have this working as both a static and interactive PDF in Adobe Reader.  However, I need to ensure there integration with tablets and smart phones via the Readdle PDF Expert app.

 

According to Readdle's website, this is the limit of their APIs: https://helpspot.readdle.com/en/index.php?pg=kb.page&id=465

 

This code fails with PDF Expert.  Is there a way of achieving the same result with PDF Expert's API?

 

FIRST DROPDOWN:

 

form1.#subform[0].productGroup::exit - (JavaScript, client)

 

productRange.clearItems();

productFields.clearItems();

 

switch(this.formattedValue)  {

   case "Bath panels":

     productRange.addItem("Aspen");

     productRange.addItem("Contemporary");

     productRange.addItem("Evolution");

     break;

   case "Cabinets":

     productRange.addItem("Contemporary cabinets");

     productRange.addItem("Sensory");

     break;

   case "Mirrors":

     productRange.addItem("Clarity");

     productRange.addItem("Source");

     break;

    

}

 

 

SECOND DROPDOWN:

 

form1.#subform[0].productRange::exit - (JavaScript, client)

 

productFields.clearItems();

 

switch(this.formattedValue)  {

  case "Aspen":

    productFields.addItem("White");

    break;

  case "Contemporary":

    productFields.addItem("Beech");

    productFields.addItem("Walnut");

    productFields.addItem("Oak");

    break;

  case "Evolution":

    productFields.addItem("White");

    break;

  case "Contemporary cabinets":

    productFields.addItem("Aluminium");

    productFields.addItem("Walnut");

    productFields.addItem("White");

    break;

  case "Sensory":

    productFields.addItem("Oak");

    productFields.addItem("Walnut");

    productFields.addItem("White");

    productFields.addItem("Glass");

    break;

  case "Clarity":

    productFields.addItem("Silver");

    productFields.addItem("Glass");

    break;

  case "Source":

    productFields.addItem("Glass");

    productFields.addItem("Unclassified");

    break;

}

 

 

 

Any help would be much appreciated!

 

 

 

 

Thanks,

 

Rob.

Error when calling addAsset/updateAsset methods

$
0
0

I'm relatively new to invoking LiveCycle opertions with the Java API. I have managed to automated most of the necessary tasks I typically perform in the Workbench. The remaining piece involves asset management.

 

I am trying to upload a new document to an application with the following code snippet.

 

// Create a ServiceClientFactory object

ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);

 

// Create an ApplicationManagerClient object

ApplicationManagerClient appClient = new ApplicationManagerClient(myFactory);

 

try {

  // Create a Document object

  FileInputStream myAsset = new FileInputStream(filePath + "/" + fileName);

  Document newAsset = new Document(myAsset);

 

  // Add a new asset to the application

  String assetPath = appClient.addAsset(application, folder + "/" + fileName, newAsset);

  System.out.println("Successfully deployed file " + assetPath + " in " + application + " application.");

} catch(Exception e) {

  e.printStackTrace();

}

 

application, filePath, fileName, and folder are strings (e.g. TestApp, /data01/tmp, TestFile.xdp, TestFolder).

 

I keep getting the following error, however.

 

ALC-DSC-000-000: com.adobe.livecycle.applicationmanager.client.ApplicationManagerClientException: Internal error.

        at com.adobe.livecycle.applicationmanager.client.ApplicationManagerClient.addAsset(Applicati onManagerClient.java:422)

        at com.adobe.livecycle.applicationmanager.client.ApplicationManagerClient.addAsset(Applicati onManagerClient.java:364)

        at DeployAsset.main(DeployAsset.java:41)

 

There is no error in the server logs, and the same error occurs when using the updateAsset method. The deleteAsset method works for an existing asset.

 

Any assistance would be appreciated.

Issue with CORBA.NO_RESOURCES with pdfgen

$
0
0

2015-05-26 11:41:56,850 INFO  [com.adobe.service.ImpersonatedConnectionManager] (http-0.0.0.0-8080-1) Service Native2PDFSvc: Resource ProcessResource@57497575(name=pdfgen.exe,pid=0) acquired credential ussc/mbaghel

2015-05-26 11:41:56,851 INFO  [com.adobe.service.ProcessResource] (http-0.0.0.0-8080-1) ALC-BMC-001-505: Service Native2PDFSvc: Starting native process with command line C:\Adobe\Adobe LiveCycle ES4\jboss\server\lc_turnkey\svcnative\ServicesNatives2\bin\ProcessLauncher.exe mbaghel ussc "C:\\Adobe\\Adobe LiveCycle ES4\\jboss\\server\\lc_turnkey\\svcnative\\Native2PDFSvc\\bin\\dll\\pdfgen.exe" True -WinStaName WinSta0 -DeskName PDF-NA8a4390002 -beginExecutable "C:\\Adobe\\Adobe LiveCycle ES4\\Java\\32bit\\jdk1.6.0_31\\bin\\javaw.exe" -endExecutable -Xmx64m -cp "C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-appmon.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-bslj.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-csa.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-generatepdf-client.jar;C:/A dobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-pdfg-common-jaxb.jar;C:/Ado be/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-pdfg-common.jar;C:/Adobe/Ad obe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-pdfg-commonbmc.jar;C:/Adobe /Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-pdfg-idl-bmc-websphere.jar; C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-pdfg-idl-bmc.jar;C:/Adobe/A dobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/adobe-utilities.jar;C:/Adobe/Adob e LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/comfyj-2.4.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jaxb-api.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jaxb-impl.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jaxb-libs.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_acrobat1.1.jar;C:/Adobe /Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_autocad1.1.jar;C:/Adobe /Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_autocad2007.jar;C:/Adob e/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_excel1.3.jar;C:/Adobe/A dobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_pdfmapi1.0.jar;C:/Adobe /Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_project4.4.jar;C:/Adobe /Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_publisher1.0.jar;C:/Ado be/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_visio4.a.jar;C:/Adobe/A dobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniw2.9.5_word8.1.jar;C:/Adobe/Ad obe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jniwrap-3.6.1.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/jni_wrapper_infopath10.jar;C:/Ado be/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/namespace.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/Native2PDFConverterServer.jar;C:/ Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/Native2PDFSvc/bin/winpack-3.6.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/ServicesNatives2/jars/adobe-bslj.jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/ServicesNatives2/jars/jacorb/jacorb.jar;C:/Adobe/Ad obe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/ServicesNatives2/jars/jacorb/avalon-framework-4.1.5 .jar;C:/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/ServicesNatives2/jars/jacorb/concurrent-1.3.2.jar;C :/Adobe/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/ServicesNatives2/jars/jacorb/logkit-1.2.jar;C:/Adob e/Adobe LiveCycle ES4/jboss/server/lc_turnkey/svcnative/ServicesNatives2/jars/jacorb/antlr-2.7.2.jar" com.adobe.native2pdf.bmc.Native2PDFConverterServer -IOR IOR:000000000000002249444C3A636F6D2F61646F62652F736572766963652F4D616E616765723A312E30000 00000000002000000000000010C000102000000000F3135362E3133322E35322E31363800000DC800000000001 B343039303637323436312F42522D363539312F010000000000000000000000050000000000000008000000004 A41430000000001000000200000000005010001000000010001000100010109000000020501000100010100000 000210000007400000000000000010000000000000024000000220000007E00000000000000010000000F31353 62E3133322E35322E31363800000DC900400000000000000008060667810201010100000017040100080606678 1020101010000000764656661756C7400000000000000000000000000000000000000002000000004000000000 000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F000 0000400000003   -AppServer jboss

2015-05-26 11:41:58,519 INFO  [com.adobe.service.J2EEConnectionFactoryManagerPeerImpl] (http-0.0.0.0-8080-1) Service: Native2PDFSvc resource: ProcessResource@57497575(name=pdfgen.exe,pid=0) applying queue wait adjustment of 1s to timeout of transaction: TransactionImple < ac, BasicAction: -637bcb58:c424:552d797f:e0cf3c status: ActionStatus.RUNNING >. Supplied timeout: 7260s, Effective timeout: 7259s.

2015-05-26 11:41:58,520 INFO  [com.adobe.service.J2EEConnectionFactoryManagerPeerImpl] (http-0.0.0.0-8080-1) Service: Native2PDFSvc successfully scheduled an interrupt for transaction: TransactionImple < ac, BasicAction: -637bcb58:c424:552d797f:e0cf3c status: ActionStatus.RUNNING > after 7259s.

2015-05-26 11:41:58,521 ERROR [com.adobe.service.ProcessResource] (http-0.0.0.0-8080-1) ALC-BMC-001-031: An unexpected CORBA exception occurred while  allocating a connection by service Native2PDFSvc

org.omg.CORBA.NO_RESOURCES: (Pool)[0/1000] no idle threads but maximum number of threads reached (1000)  vmcid: 0x0  minor code: 0  completed: No

    at org.jacorb.util.threadpool.ThreadPool.putJob(Unknown Source)

    at org.jacorb.orb.giop.MessageReceptorPool.connectionCreated(Unknown Source)

    at org.jacorb.orb.giop.ClientConnectionManager.getConnection(Unknown Source)

    at org.jacorb.orb.Delegate.bind(Unknown Source)

    at org.jacorb.orb.Delegate.bind(Unknown Source)

    at org.jacorb.orb.Delegate.request(Unknown Source)

    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)

    at com.adobe.service._ControlAgentStub.newRequestHandler(_ControlAgentStub.java:64)

    at com.adobe.service.ProcessResource.allocateConnection(ProcessResource.java:987)

    at com.adobe.service.ConnectionResource.getConnection(ConnectionResource.java:39)

    at com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactor yManagerPeerImpl.java:207)

    at sun.reflect.GeneratedMethodAccessor932.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.adobe.util.ConnectionFactoryReflectionWrapper.getConnection(Utilities.java:1166)

    at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.convertToPdf(NativeToPDFTransacti onCallback.java:209)

    at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.doInTransaction(NativeToPDFTransa ctionCallback.java:187)

    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)

    at sun.reflect.GeneratedMethodAccessor690.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)

    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)

    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 73)

    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)

    at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)

    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)

    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)

    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)

    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)

    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

    at org.jboss.ejb.Container.invoke(Container.java:1092)

    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)

    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)

    at $Proxy314.doRequiresNew(Unknown Source)

    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)

    at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute(DefaultTransactionT emplate.java:79)

    at com.adobe.pdfg.BMCCaller.invokeInSMT(BMCCaller.java:835)

    at com.adobe.pdfg.Native2PdfCaller.callNativeBMC(Native2PdfCaller.java:1098)

    at com.adobe.pdfg.Native2PdfCaller.createPDF(Native2PdfCaller.java:406)

    at com.adobe.pdfg.GeneratePDFImpl.createPDFInternal(GeneratePDFImpl.java:447)

    at com.adobe.pdfg.GeneratePDFImpl.createPDFCommon(GeneratePDFImpl.java:287)

    at com.adobe.pdfg.GeneratePDFImpl.createPDF2(GeneratePDFImpl.java:198)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)

    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)

    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTran sactionBMTAdapterBean.java:197)

    at sun.reflect.GeneratedMethodAccessor895.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)

    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)

    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 73)

    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)

    at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)

    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)

    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)

    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)

    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)

    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

    at org.jboss.ejb.Container.invoke(Container.java:1092)

    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)

    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)

    at $Proxy314.doBMT(Unknown Source)

    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:95)

    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)

    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)

    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)

    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:131)

    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:329)

    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:139)

    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)

    at sun.reflect.GeneratedMethodAccessor935.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)

    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)

    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)

    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)

    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:86)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:183)

    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEs tablishmentValve.java:126)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEst ablishmentValve.java:70)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 158)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:598)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

    at java.lang.Thread.run(Thread.java:662)

Attempt to Connect to Default EJB Endpoint Fails

$
0
0

Hello,

 

I am new to LiveCycle and also not the most familiar with Java so bear with me.

 

I have been trying to make the code in the following tutorial work from a Java console app:

 

Quick Start(EJB mode): Authenticating a user using the Java API

http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000451.html

 

... however, when I try to set the default EJB endpoint, like so:

 

connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://myserver:1099");

 

I get the following errors in Eclipse:

 

com.adobe.livecycle.output.exception.OutputException

 

 

 

 

 

: ALC-DSC-031-000: com.adobe.idp.dsc.net.DSCNamingException: Remote EJBObject lookup failed for ejb/Invocation provider

at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(

 

OutputClient.java:149)

at OracleALCInterface.GeneratePdf(

 

OracleALCInterface.java:107)

at OracleALCInterface.main(

 

OracleALCInterface.java:53)

Caused by: ALC-DSC-031-000:

 

com.adobe.idp.dsc.net.DSCNamingException: Remote EJBObject lookup failed for ejb/Invocation provider

at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(

 

EjbMessageDispatcher.java:101)

at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(

 

EjbMessageDispatcher.java:141)

at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(

 

AbstractMessageDispatcher.java:66)

at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(

 

ServiceClient.java:208)

at com.adobe.livecycle.output.client.OutputClient.invokeRequest(

 

OutputClient.java:607)

at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(

 

OutputClient.java:132)

... 2 more

Caused by:

 

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.lookup(Unknown Source)

at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(

 

EjbMessageDispatcher.java:92)

... 7 more

 

 

I am running JBoss on the server where LiveCycle is installed but there doesn't seem to be a service running on port 1099.

 

Can someone recommend some kind of configuration that I have missed on the LiveCycle server? Anything that could help me at this point would be appreciated because I have wasted almost two days on this.

 

Thanks a lot.

 

Kevin Parkinson

Edmonton AB, Canada

Viewing all 25833 articles
Browse latest View live




Latest Images