Expand my Community achievements bar.

Watch Folder End Point Problem

Avatar

Former Community Member
Hi,



I'm currently evaluating LiveCycle ES and having problems with watched folder end point.



I use the Sample - Barcoded Forms: RouteOnDataEntry process and have added and configured the watched folder end point for the process.



When I copy the RouteOnDataEntry PDF form to input folder, it manage to pick up the file, but the PDF is moved to failure folder. Here is the information I get from the failure.log:



--------

Failure Time----Wed Aug 15 17:30:16 PDT 2007

source location ---- Reason of failure is-----Failure to invoke the job RouteOnDataEntry

Failure to invoke the job RouteOnDataEntry

Invocation error.

javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory

Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory

ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException: Failure to invoke the job RouteOnDataEntry

--------



I check the jboss server log file and see a lot exception regarding javax.naming.NameNotFoundException: XAConnectionFactory.



Please advise what is the cause and how to solve this problem.



Thanks

Fadly
33 Replies

Avatar

Former Community Member
Hi,



I am new to livecycle ES. I want to set up a watch folder to print all pdfs generated in that folder in a batch. Is it possible? If it is how can I do it?

Avatar

Level 10
It's definitely possible. That's why we have watch folder.



I suggest you read this topic in the documentation http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/invokingWatchedFolders.29.1.html



and post your question if you still have one.



Jasmin

Avatar

Former Community Member
Hi jasmin,



Thanks for your reply. Is there any example on how to set up watched folder to print pdfs in batch?

Avatar

Former Community Member
Same problem as first post of Fadly: LiveCycle 8.0.1.2 with PDF Generator for JBoss using Turnkey on W2K3 SP1.

I have create a WatchedFolder with standard parameters.

Each team I put a .doc file in the input folder, I receive a failure as:

Failure Time----Thu Jun 19 14:02:17 CEST 2008

source location ---- Reason of failure is-----Failure to invoke the job GeneratePDFService_Doc

Failure to invoke the job GeneratePDFService_Doc

Invocation error.

javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory

Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory



Could you help me?



Frédéric Devinck

Avatar

Former Community Member
Hi,



Do I need to setup watched folder on same server LiveCycle installed on or could it be on any server?

Avatar

Former Community Member
Hi YP, the folder may be remote as long as it can be accessed by the network and the appropriate file & folder rights have been applied.

Avatar

Former Community Member
So can i use mapped drive letter?



ex.

If I am mapping c:\ on server TEST as G:\ on server where liveCycle is installed and I want to setup WatchTest under C:\ then can I give a path like G:\Watchtest for this folder?

Avatar

Former Community Member
I would recommend using the fully qualified network address to the location you are looking to monitor. ie: \\yourserver\sharedaddress\location\

Avatar

Former Community Member
Hi,



My requirement is to develop a standalone java program to convert Word documents to PDFs using Adoble LC ES.



I found the code from the Adobe LC ES documentation. Please help me what's wrong in the code.



I don't understand what i'm missing in the code...The "test.doc" file

is there in the given location with proper data and Document object is not "NULL". Program is able to connect to Adobe LC Server. No issues with connection. But why the error ??



Code & exception are below :



CODE:

-----------

import java.io.File;

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 GeneratePDFFromNativeFiles {



public static void main(String[] args)

{

Properties ConnectionPropsForSOAP = new Properties();



ConnectionPropsForSOAP.setProperty("DSC_DEFAULT_SOAP_ENDPOINT",

"http://workspace-d.web.abbott.com:8080/soap/services/

ConvertAllFileTypesToPDF?wsdl");



ConnectionPropsForSOAP.setProperty("DSC_TRANSPORT_PROTOCOL", "SOAP");

ConnectionPropsForSOAP.setProperty("DSC_SERVER_TYPE", "JBoss");

ConnectionPropsForSOAP.setProperty("DSC_CREDENTIAL_USERNAME",

"epaspdfgen");

ConnectionPropsForSOAP.setProperty("DSC_CREDENTIAL_PASSWORD",

"epaspdf1");



ServiceClientFactory factory =

ServiceClientFactory.createInstance(ConnectionPropsForSOAP);

try{

String currentDirectory = System.getProperty("user.dir");



String sourceDocPath="/test.doc";

String resultDocPath ="/bin/arg/util/simpleFTP/test.pdf";



String inputFilePath = currentDirectory+sourceDocPath;



File file = new File(inputFilePath);



String adobePDFSettings = "Standard";

String securitySettings = "No Security";

String fileTypeSettings = "Standard";



GeneratePdfServiceClient gps = new

GeneratePdfServiceClient(factory);



Document inputDoc = new Document(file,true);



CreatePDFResult docResult=gps.createPDF (inputDoc, inputFilePath,

fileTypeSettings, adobePDFSettings,

securitySettings, null, null);



Document createdDocument = docResult.getCreatedDocument();

createdDocument.copyToFile(new File(currentDirectory

+resultDocPath));



}



catch (Exception e) {

e.printStackTrace();

System.out.println("Error OCCURRED: " + e.getMessage());



}

}

}



EXCEPTION:

--------------------



ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal

error.

at

com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.throwExcep­tionHandler(SoapAxisDispatcher.java:

207)

at

com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(Soa­pAxisDispatcher.java:

125)

at

com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(Abstrac­tMessageDispatcher.java:

57)

at

com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:

208)

at

com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF(G­eneratePdfServiceClient.java:

172)

at

arg.util.simpleFTP.GeneratePDFFromNativeFiles.main(GeneratePDFFromNativeFil­es.java:

73)

Caused by: ALC-DSC-002-000:

com.adobe.idp.dsc.RequiredParameterException: Parameter: inputDocument

is required.

at

org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:

221)

at

org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:

128)

at

org.apache.axis.encoding.DeserializationContext.endElement(DeserializationC­ontext.java:

1087)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown

Source)

at

org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown

Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl

$FragmentContentDispatcher.dispatch(Unknown Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown

Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown

Source)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

at

org.apache.axis.encoding.DeserializationContext.parse(DeserializationContex­t.java:

227)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)

at

org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandCh­ecker.java:

62)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

at org.apache.axis.client.Call.invoke(Call.java:2748)

at org.apache.axis.client.Call.invoke(Call.java:2424)

at org.apache.axis.client.Call.invoke(Call.java:2347)

at org.apache.axis.client.Call.invoke(Call.java:1804)

at

com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(Soa­pAxisDispatcher.java:

123



Please help me.



Thanks a lot.

VJ.

Avatar

Former Community Member
I use watched folder endpoint to convert office file to PDF file, but input file be moved to failure folder and log massage as:

Caused by: javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory

at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection(JmsSessionFactoryImpl.java:392)

at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createQueueSession(JmsSessionFactoryImpl.java:133)

at com.adobe.idp.jobmanager.ejb.JobManagerBean.createJob(JobManagerBean.java:222)

... 121 more

who can give me a advice .thank you

Avatar

Former Community Member
What did you use for your input and output variables?

Avatar

Former Community Member
i use LiveCycle ES:

1. Log in to LiveCycle Administration Console (http://[server]:[port]/adminui).



2. Select Services > Applications and Services > Service Management.



3. In the list of services, click ConvertAllFileTypesToPDF: 1.0.



4. On the Configure ConvertAllFileTypesToPDF page, click the Endpoints tab.



5. In the list, select WatchedFolder, and then click Add.



6. On the Add WatchedFolder Endpoint page, in the Name box, type Convert All File Types to PDF and, in the Description box, type To convert All file types to PDF.



7. In the Path box, type the path of the folder that input files will be taken from (C:/Adobe/WatchedFolder).



8. In the Operation Name box, select Invoke.



9. In the list under Input Parameter Mappings, select the inputDocument variable and, in the adjacent box, set its value to *.*.



10. In the list under Output Parameter Mappings, set the value of the Output PDF Document variable to /%F.pdf.



11. copy .doc (or .xls, .ppt, .txt)file to /input folder



12. output folder default set by LiveCycle ES, the /result, /failure

Avatar

Former Community Member
i use jbossAs-4.0.3sp1 as application server, about every 10 seconds

the message display in log file as below

2008-10-10 09:24:59,906 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnect failed: JMS provider failure detected:

javax.naming.NameNotFoundException: XAConnectionFactory