tracker issue : CF-4126714

select a category, or use search below
(searches all categories and all time range)
Title:

Application.cfc not loaded

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 03/09/2016

Components: CLI

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 1

Repro: https://gist.github.com/adamcameron/f5d157a16ff68d924741

None of the application event handlers fire when calling app.cfm.

I am calling it from the same directory both it and the Application.cfc reside in.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126714

External Customer Info:
External Company: Straker Interactive
External Customer Name: Adam Cameron
External Customer Email: CAMERON.ADAM@GMAIL.COM
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Fix By Milestone newValue: Alpha oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-14 15:33:37.0 action: updated fieldName: Fix By Product Milestone newValue: Alpha oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-14 15:33:37.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:53:43.0 action: updated fieldName: Date Closed newValue: 2015-09-01 23:53:43.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:53:43.0 action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:53:43.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:53:43.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:53:43.0 action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:53:43.0 action: updated fieldName: Changelist newValue: 295088 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:57:01.0 action: updated fieldName: Date Fixed newValue: 2015-08-27 21:57:01.0 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:57:01.0 action: updated fieldName: Fixed By newValue: himar oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:57:01.0 action: updated fieldName: Owner newValue: hkallae oldValue: himar oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:57:01.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:57:01.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:57:01.0 action: updated fieldName: Status newValue: ToFix oldValue: ToTrack oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:31:20.0 action: updated fieldName: Severity newValue: 2 oldValue: 3 oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:31:20.0 action: updated fieldName: Owner newValue: himar oldValue: hkallae oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:31:20.0 action: updated fieldName: Reason newValue: Blank oldValue: PRHaveInfo oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-28 04:31:20.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-08-27 11:04:36.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-08-27 11:04:36.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-08-27 11:04:36.0 action: updated fieldName: Date Closed newValue: null oldValue: 19-JUL-15 09.59.12.000000000 PM oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-08-27 10:35:55.0 action: updated fieldName: Closed By newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-08-27 10:35:55.0 action: updated fieldName: Owner newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-08-27 10:35:55.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: NotABug oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-08-27 10:35:55.0 action: updated fieldName: State newValue: Open oldValue: Closed oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-08-27 10:35:55.0 action: updated fieldName: Status newValue: ToTrack oldValue: Withdrawn oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-08-27 10:35:55.0 action: updated fieldName: Date Closed newValue: 2015-07-19 21:59:12.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 04:59:12.0 action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 04:59:12.0 action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 04:59:12.0 action: updated fieldName: Status newValue: Withdrawn oldValue: Unverified oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 04:59:12.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 04:59:12.0 action: updated fieldName: Reason newValue: NotABug oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 04:59:12.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-07-14 23:02:46.0
Comment by CFwatson U.
3420 | March 09, 2016 04:45:14 AM GMT
I can't get Application.cfc to load either. I tried the example in the What's New doc and several variations but APPLICATION scope just doesn't seem to exist.
Vote by External U.
3422 | March 09, 2016 04:45:15 AM GMT
Added By: PreRelease User User Name:Adam Cameron Note Added: Confirmed fixed. Thanks. Date Added :2015-09-22 07:44:06.0 Added By: PreRelease User User Name:Adam Cameron Note Added: Aha, yes! I saw Sean's post regarding this on the forums this morning, and can confirm that is the case. See? That's much better than closing a ticket "cannot reproduce" or "invalid" or whatever. Your default position needs to be that the person raising the ticket is probably right, and you're probably misinterpreting things or not putting enough effort into trying to reproduce the situation or similar. Please be more thorough and more diligent in your issue triage and feedback to your clients. But thanks for getting to the bottom of this. Date Added :2015-08-28 07:25:57.0 Added By:himar Note Added: This is reproducible with a specific syntax of running the cfm. cf.bat \app.cfm was working but cf.bat app.cfm was not Date Added :2015-08-28 05:00:35.0 Added By: PreRelease User User Name:Adam Cameron Note Added: You're missing the bit where I said it *doesn't* fire for me. Which is the entire point of the ticket. Why is even the most simple-seeming stuff always so hard with you lot? Are you using the same build that has been released to us, or some subsequent one? I have updated the gist with a simplified Application.cfc. And to be as clear as I blimin' can be, when I run that code, I see this, and only this, on the screen: app.cfm called I expect to see this: onApplicationStart() called app.cfm called In case you're doing something daft in Application.cfc and suppressing output, I tried throwing an exception instead. It is not running onApplicationStart(). Date Added :2015-08-27 11:04:36.0 Added By:hkallae Note Added: Yes *onApplicationStart()* event has to get triggered. Tested the github sample Applicaiton.cfc from CLI on windows, and it gets triggered. Am I missing something here? Date Added :2015-08-27 10:35:56.0 Added By: PreRelease User User Name:Adam Cameron Note Added: But hang on. The *onApplicationStart()* event is supposed to fire, isn't it? Date Added :2015-08-10 05:57:53.0 Added By:hkallae Note Added: Updated the docs with the application.cfc support Date Added :2015-07-20 04:59:13.0 Added By: PreRelease User User Name:Adam Cameron Note Added: Nor, for that matter, is Application.cfm as an alternative Date Added :2015-07-14 20:07:36.0 Added By: PreRelease User User Name:Adam Cameron Note Added: Entered Bug. Date Added :2015-07-14 20:05:19.0
Comment by CFwatson U.
3421 | March 09, 2016 04:45:16 AM GMT