Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): John Garrett / John Garrett ()
Created: 02/01/2017
Components: Web Socket
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: ColdFusion11,0,11,301867 (Hotfix 11) /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 0
Problem Description:
EntityLoad fails when running in a WebSocket listener. I suspect this is related to getApplicationMetadata() returning an empty structure, thus indicating the ORM Settings in the application.cfc are not available within websockets.
Steps to Reproduce:
1) Create an application with ORM functionality.
2) Setup a websocket (WS).
3) Create a listener for the WS
4) In the allowSubscribe() method of the listener, use entityLoad() to load an ORM object from a database.
Actual Result:
coldfusion.orm.hibernate.HibernatePersistenceManager$EntityLoadException: Error while loading the entity.
at coldfusion.orm.hibernate.HibernatePersistenceManager.load(HibernatePersistenceManager.java:175)
at coldfusion.orm.ORMUtils.entityLoad(ORMUtils.java:89)
at coldfusion.runtime.CFPage.EntityLoad(CFPage.java:9524)
Expected Result:
The typical result of EntityLoad().
Any Workarounds:
Not using ORM, though entire application is built on ORM already.
Attachments:
Comments: