•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 373,490 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,881 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 1474 | Replies: 1
![]() |
•
•
Join Date: May 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Similar Threads
- Help with Gateway Solo P3C (Troubleshooting Dead Machines)
- System 32 Coming Up at Startup (Viruses, Spyware and other Nasties)
- hijackthis log...I need help please (Viruses, Spyware and other Nasties)
- Routing data through a xp gateway (Networking Hardware Configuration)
Other Threads in the ColdFusion Forum
- Previous Thread: Cleaning up my code.
- Next Thread: inserting data


Linear Mode