What version of ColdFusion is this? Sounds like a bug in CF.
Happens on Both
ACF 10
>
and ACF 2016
Now since the applications work normally and only happens during onsessionend is that what makes you think its a CF bug?
Yeah, I’ve seen other bugs before where session end or application end functions don’t run with the proper application context, You could do a quick test and log the contents of getApplicationMetadata() to a file or E-mail in session end and see if it’s missing things that are normally there.
struct
APPLICATIONNAME
TP_Dispatch
APPLICATIONTIMEOUT
172800
AUTHCOOKIE
struct
DISABLEUPDATE
YES
TIMEOUT
-1
CLIENTMANAGEMENT
NO
CLIENTSTORAGE
Cookie
JAVASETTINGS
struct
LOADPATHS
array
1
lib
RELOADONCHANGE
false
LOGINSTORAGE
cookie
MAPPINGS
struct
/TP_BeansDaos
D:/websites/TP_BeansDaos/
/ValidateThis
D:/websites/TP_Validation/ValidateThis/
/cbcsrf
D:\websites\TP_Dispatch\modules/cbcsrf
/cbi18n
D:\websites\TP_Dispatch\modules/cbi18n
/cbmessagebox
D:\websites\TP_Dispatch\modules/cbmessagebox
/cborm
D:\websites\TP_Dispatch\modules/cborm
/cbvalidation
D:\websites\TP_Dispatch\modules/cbvalidation
NAME
TP_Dispatch
SCRIPTPROTECT
array
1
FORM
2
URL
3
COOKIE
4
CGI
SECUREJSON
NO
SECUREJSONPREFIX
//
SERVERSIDEFORMVALIDATION
false
SESSIONCOOKIE
struct
DISABLEUPDATE
YES
HTTPONLY
YES
SECURE
NO
TIMEOUT
86400
SESSIONMANAGEMENT
YES
SESSIONTIMEOUT
28800
SETCLIENTCOOKIES
YES
SETDOMAINCOOKIES
NO
WSCHANNELS
array
1
struct
CFCLISTENER
notification.notificationChannelListener
NAME
dispatchNotifications
what I ended up doing is pulling the home.onSessionEnd from sessionEndHandler in Coldbox.cfc and it stopped erroring.