tracker issue : CF-4199989

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

Schedule Tasks cannot write via Hibernate

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Oliver Jones / Oliver Jones ()

Created: 10/10/2017

Components: Scheduler

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: 2016.0.02.299200 /

Priority/Frequency: Normal /

Locale/System: / Windows 7 64-bit

Vote Count: 0

Problem Description:
Scheduled Tasks using CFIDE.scheduler.ITaskEventHandler cannot write data to the database via hibernate.

Steps to Reproduce:
Create simple model with the following task run from CF administrator:
component implements="CFIDE.scheduler.ITaskEventHandler" {

    public void function execute (struct context) {
        var myEntity = entityNew("SomeEntityName");
        myEntity.setSomeEntityProperty("SOME_VALUE");
        entitySave(myEntity);
    }
}

Actual Result:
Exception: coldfusion.runtime.NoOperScope$ScopeDisabledException: The requested scope session has not been enabled.

Expected Result:
Entity changes saved to DB.

Any Workarounds:

Attachments:

Comments: