CFPDF合并错误:抛出类型为com.adobe.internal.pdftoolkit.core.types.ASString的对象时出错,无法转换为[B到不兼容的类型

时间:2016-07-19 21:29:06

标签: coldfusion coldfusion-11 cfpdf cfthread

我正在尝试合并我用cfthread创建的一系列pdf文件。我使用以下代码:

<cfquery name="data">
select * from mytable
</cfquery>
<cfset threadList = "">
<cfloop index="x" from="1" to="#data.recordcount#"> 
    <cfset name = "threadnumber#x#"> 
    <cfset threadList = listAppend(threadList,name)>
    <cfthread name="#name#">
        <cfloop query="data">
            <cfpdf action="read" name="myPDF#randrange(1,1000)#" source="#Expandpath('/_pdf/#data.cusip#.pdf')#" />
        </cfloop>
    </cfthread> 
</cfloop>
<cfthread action="join" name="#threadlist#" />  

<cfpdf action="merge" name="final">
    <cfloop list="#threadlist#" index="i">
        <cfloop query="data"> 
            <cfpdfparam source="#Expandpath('/_pdf/#data.cusip#.pdf')#">
        </cfloop>
    </cfloop> 
</cfpdf>

但是,我收到这样的错误:

Error casting an object of type com.adobe.internal.pdftoolkit.core.types.ASString cannot be cast to [B to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
com.adobe.internal.pdftoolkit.core.types.ASString cannot be cast to [B


The error occurred in D:/inetpub/wwwroot/project1/schedulefocuslist.cfm: line 77
75 :    <cfloop list="#threadlist#" index="i">
76 :        <cfloop query="data"> 
77 :            <cfpdfparam source="#Expandpath('/_pdf/#data.cusip#.pdf')#">
78 :        </cfloop>
79 :    </cfloop> 

0 个答案:

没有答案