- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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