ColdFusion 10 called for .Net results in missing method error

I have a .Net DLL built into VS2008 that transfers information to an external system from ColdFusion. We have it installed and working in our data center for one of our hosted customers for six months or so. We are working with another client to configure it in our environment, but we get an error indicating that the method cannot be found:

"Information","ajp-bio-8012-exec-1","12/29/15","15:14:32",,"Either there are no methods with the specified method name and argument types or the SendStudentAccountTransaction method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity."
"Information","ajp-bio-8012-exec-1","12/29/15","15:14:32",,"The SendStudentAccountTransaction method was not found."

The code looks something like this:

<cfif qBilling.RecordCount GT 0>
<cfscript>
    ASI2Banner = CreateObject(".NET","ASIBanner.Sender","C:\ASIBanner\ASIBanner.dll");
</cfscript>
<cfdump var="#ASI2Banner#" />
<CFLOOP query="qBilling">
    <cflog file="#logfile_name#" text="Sending: #qBilling.TimeframeNumericCode#, #qBilling.StudentNumber#, #qBilling.Account#, #qBilling.Amount#, #qBilling.TxDate#, #qBilling.EffectiveDate#, #qBilling.TxDescription#, #qBilling.StudentBillingInternalID#, '', '', 'Y', 'Y', '', '', 'ASIBanner_Test.txt'" />
    <cfset result = ASI2Banner.SendStudentAccountTransaction("#qBilling.TimeframeNumericCode#", "#qBilling.StudentNumber#", "#qBilling.Account#", "#qBilling.Amount#", "#qBilling.TxDate#", "#qBilling.EffectiveDate#", "#qBilling.TxDescription#", "#qBilling.StudentBillingInternalID#", "", "", "Y", "Y", "", "", "ASIBanner_Test.txt") />
    <cflog file="#logfile_name#" text="Result: #result#" />

We get log entries that verify that we have entries for export, that the ASIBanner.Sender object was created, and that the script is trying to send the first record; however, there is no record for the result of the call indicating that it is not completed. Error on line:
 <cfset result = ASI2Banner.SendStudentAccountTransaction("#qBilling.TimeframeNumericCode#", "#qBilling.StudentNumber#", "#qBilling.Account#", "#qBilling.Amount#", "#qBilling.TxDate#", "#qBilling.EffectiveDate#", "#qBilling.TxDescription#", "#qBilling.StudentBillingInternalID#", "", "", "Y", "Y", "", "", "ASIBanner_Test.txt") /> <cflog file="#logfile_name#" text="Result: #result#" />

cfdump , ASIBanner.Sender SendStudentAccountTransaction(): CFDUMP var ASI2Banner

, . , - JNBProxyGUI.exe( - jar ).

ColdFusion, CF DotNet, JRE 1.8.0.65, . , DLL .Net- IIS. {cfusion}\wwwroot\WEB-INF\cfclasses\dotNetProxy ( dotNetCoreProxy.jar).

, , , , , . , - , , .

+4

Source: https://habr.com/ru/post/1622143/


All Articles