This is the ddx spec that I am using.
<?
xml version="1.0" encoding="UTF-8"?>
<
DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<
PDF result="out.pdf">
<
PDF source="map.pdf"/>
<
PDF source="directions.pdf"/>
</
PDF>
</
DDX>
Dim ddxBLOB As New AssemblerService.BLOB
Dim file1BLOB As New AssemblerService.BLOB
Dim file2BLOB As New AssemblerService.BLOB
Dim svcAssembler As New AssemblerService.AssemblerServiceService
ddxBLOB.binaryData = GetPdfContentAsByteArray(sDDXFileName)
file1BLOB.binaryData = GetPdfContentAsByteArray(sFile1Name)
file2BLOB.binaryData = GetPdfContentAsByteArray(sFile2Name)
inputMap(0) =
New AssemblerService.mapItem
inputMap(0).key = "map.pdf"
inputMap(0).value = file1BLOB
inputMap(1) =
New AssemblerService.mapItem
inputMap(1).key = "directions.pdf"
inputMap(1).value = file2BLOB
svcAssembler.Credentials = userCredential
inputMap(0) =
New AssemblerService.mapItem
inputMap(0).key = "map.pdf"
inputMap(0).value = file1BLOB
inputMap(1) =
New AssemblerService.mapItem
inputMap(1).key = "directions.pdf"
inputMap(1).value = file2BLOB
'Create an AssemblerOptionsSpec object
Dim assemblerSpec As New AssemblerService.AssemblerOptionSpec
assemblerSpec.failOnError =
False
'Send the request to the Assembler Service
Dim assemblerRes As New AssemblerService.AssemblerResult
assemblerRes = svcAssembler.invoke(ddxBLOB, inputMap, assemblerSpec)
It throws the following exception at this point
"
ex.Message "com.adobe.livecycle.assembler.client.OperationException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: javax.xml.bind.UnmarshalException Caused by: org.xml.sax.SAXParseException: Content is not allowed in trailing section.; nested exception is:
com.adobe.livecycle.assembler.client.OperationException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided." String
"
I checked the ddx file for any whitespace and for me it looks fine.Any tips as to why this exception happens?
Views
Replies
Total Likes
Not sure. DDX can be funny and there is no way that I know of to debug it easily. Adobe provides you a DDX tool, but I have had mixed results with it.
But, it might be easier of your wrote all the assembly code in a LC process and then call that process from Java. Your Java call would only have 2 inputs and 1 output, all documents.
Views
Replies
Total Likes
Thanks for your input.
I am using ES2 in a .NET environment.I am still trying to figure our what is the actual problem with the ddx content that I am using.I scrutinised it well to see that it doesn't have any whitespaces that can cause this to error out while parsing.And its not huge too..It just 4 few lines of text saved as a XML file.
The ddx file should have the extension as .xml..is that right?
Views
Replies
Total Likes