944,147 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 2810
  • ColdFusion RSS
May 20th, 2007
0

Asynchronous CFML Gateway

Expand Post »
Error Invoking Events Gateway Gatewayname: Null

1. created a gateway instance in CFadmin of with following information type Asynchronous CFML
Id = asynchr_submit
Path = H:\JL\TEST\cfc\asynchr_submit.cfc
Config file = H:\JL\TEST\cfc\asynchr_submit.cfg. I also tried with no config file.
(i also tried with config file cfc-method =onIncomingMessage and mode = saynchronous )

Gateway service enabled in settings

2. Config file has the following
mode=asynchronous
cfc-method=onIncomingMessage

3. Content of CFC (asynchr_submit.cfm)

<cfcomponent displayname="asynchr_submit" output="false" hint="Asynchronous CMFL gateway for Submit">
<cffunction name="onIncomingMessage" output="no">
<cfargument name="CFEvent" type="struct" required="true" />

<cfset email_txt = 'test email 2144'>
<cfmail to="email@email.com" from="email@email.com"
subject="Async test" cc="email@email.com">#email_txt#
</cfmail>

</cffunction>
</cfcomponent>

4. Calling cfml code
<cfoutput>
<div class="pagebody">
<cfscript>
status=false;
stTest = StructNew();
StructInsert(stTest, "Fname", "Test");
StructInsert(stTest, "lname", "Test again");
StructInsert(stTest, "email", "email@email.com");
status = SendGatewayMessage("asynchr_submit",stTest);
</cfscript>
<cfoutput>status = #status#
<cfdump var=#stTest#>
</cfoutput>
</div>
</cfoutput>

5. Error received from log is 05/18 08:33:20 Error [Thread-20] - Error Invocking CFC for gateway asynchr_submitL null
&. i even tried with only cfset insided my cfc. I apreciate your help.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CFAustin is offline Offline
1 posts
since May 2007
Jun 5th, 2007
0

Re: Asynchronous CFML Gateway

are you calling the all code from one page or cfc page is different from the output page,

if so then you need to invoke the cfc in your cfm template by using the cfinvoke or cfobject tag
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gavy is offline Offline
12 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Cleaning up my code.
Next Thread in ColdFusion Forum Timeline: inserting data





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC