Skip to main content
August 8, 2011
Question

Coldfusion Instant Message Example?

  • August 8, 2011
  • 1 reply
  • 3684 views

I am trying to go through the IM example in ColdFusion 9 Web Application Construction Kit, Volume 3 (Chapter 71. Integrating with SMS and IM). Has anyone else actually got this example working using the sample code and database?

This topic has been closed for replies.

1 reply

August 10, 2011

In the Coldfusion Admin, under Gateway Instances I have configured the following:

Gateway ID: helpdesk

Gateway Type: XMPP - Handles XMPP instant messaging

CFC Path: C:\ColdFusion9\gateway\cfc\helpdesk\im.cfc

Configuration File: C:\ColdFusion9\gateway\config\helpdesk_ejabberd_local.cfg

After I start the "helpdesk" event and check the eventgateway.log there is the following mesage:

Error invoking CFC for gateway helpdesk: Cannot lock APPLICATION scope.  {ORIGINATORID={lucas@jabber.com},CFCMETHOD={onBuddyStatus},GATEWAYID={helpdesk},DATA={{buddystatus={OFFLINE},buddynickname={Lucas},RECIPIENT={me@localhost},buddygroup={Helpdesk  Staff},timestamp={Wed Aug 10 15:11:29 EDT  2011},buddyname={lucas@jabber.com}}},CFCPATH={C:\ColdFusion8\gateway\cfc\helpdesk\im.cfc},GATEWAYTYPE={XMPP}}.  Cannot use cflock to lock the application or session shared scopes without these  scopes being established through the use of the cfapplication tag. To use the  session scope you need to enable session management. Application and/or Session  variables must also be enabled in the ColdFusion Administrator.

However, Event Status says that it is running.

When I run the sample index page and I do see a message that says "The helpdesk is currently ONLINE."

But when I attempt to Add a new issue --- I receive the following:

The error occurred in C:\Inetpub\wwwroot\DEV_Helpdesk\cfc\helpdesk.cfc: line 25
Called from C:\Inetpub\wwwroot\DEV_Helpdesk\index.cfm: line 5
Called from C:\Inetpub\wwwroot\DEV_Helpdesk\cfc\helpdesk.cfc: line 25
Called from C:\Inetpub\wwwroot\DEV_Helpdesk\index.cfm: line 5

23 : (id,status,subject,DateLogged,Assignedto,loggedby,loggedbyemail,body)

24 : values

25 : ('#createUUID()#','unassigned','#arguments.subject#',#CreateODBCDateTime(Now())#,'unassigned','#arguments.name#','#arguments.email#','#arguments.body#')

26 : </cfquery>

Participant
November 3, 2011

Did you ever have any luck with this?  I'm getting ready to try the same thing and it would be great to know in advance if the example is broken or not?