Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Luis Majano / ()
Created: 09/10/2018
Components: ORM Support
Versions: 2018
Failure Type: Others
Found In Build/Fixed In Build: all /
Priority/Frequency: Normal /
Locale/System: / Core
Vote Count: 2
Problem Description:
In every single version of ACF since ORM introduction you could do:
ormGetSession().contains( entity )
To verify that a given entity cfc was in the orm current session. In 2018 this throws an exception, which renders the capability to check the session for entities completely broken.
We have the cborm suite which has been public since version 9 of ACF. It would be wise to run it for ACF to see if you introduce regressions or not. github.com/coldbox-modules/cbox-cborm
Unknown entity: coldfusion.orm.PersistentTemplateProxy
StackTrace org.hibernate.MappingException: Unknown entity: coldfusion.orm.PersistentTemplateProxy at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:620) at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:613) at org.hibernate.internal.SessionImpl.contains(SessionImpl.java:2025) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at coldfusion.runtime.StructBean.invoke(StructBean.java:507) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3476) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3357) at cfBaseORMService2ecfc485404089$funcSESSIONCONTAINS.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/models/BaseORMService.cfc:1002) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:483) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:286) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:818) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:601) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:426) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3380) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3357) at cfBaseORMServiceTest2ecfc1690219237$funcTESTSESSIONCONTAINS.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/tests/specs/BaseORMServiceTest.cfc:117) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:286) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:818) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:601) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:426) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3380) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3357) at coldfusion.runtime.CFPage.invoke(CFPage.java:14204) at coldfusion.runtime.CFPage.invoke(CFPage.java:14159) at cfBaseSpec2ecfc1910180919$funcRUNTESTMETHOD.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/BaseSpec.cfc:993) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:597) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:823) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:629) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3302) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3277) at cfUnitRunner2ecfc1586916067$funcTESTSUITE.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/runners/UnitRunner.cfc:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:597) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3869) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3850) at cfUnitRunner2ecfc1586916067$funcRUN.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/runners/UnitRunner.cfc:81) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:483) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:286) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:818) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:601) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:426) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3380) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3357) at cfTestBox2ecfc815712990$funcTESTBUNDLE.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/TestBox.cfc:466) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:597) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3869) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3850) at cfTestBox2ecfc815712990$funcRUNRAW.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/TestBox.cfc:243) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:483) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:597) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3869) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3850) at cfTestBox2ecfc815712990$funcRUN.runFunction(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/TestBox.cfc:154) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:552) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:483) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:446) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:397) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:370) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:597) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:823) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:629) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3302) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3277) at cfHTMLRunner2ecfm726826928.runPage(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/testbox/system/runners/HTMLRunner.cfm:24) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:729) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:4082) at cfrunner2ecfm569989048.runPage(/Users/lmajano/Sites/cboxdev/coldbox-core-modules/cbox-cborm/test-harness/tests/runner.cfm:13) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:262) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:729) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:565) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:504) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:162) at coldfusion.filter.IpFilter.invoke(IpFilter.java:45) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:96) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:78) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:60) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:226) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:311) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:46) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:47) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at org.cfmlprojects.regexpathinfofilter.RegexPathInfoFilter.doFilter(RegexPathInfoFilter.java:47) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:134) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorRequestHandler.java:764) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest(FusionReactorRequestHandler.java:344) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(FusionReactorRequestHandler.java:207) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorRequestHandler.java:801) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFilter.java:36) at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:71) at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStaticFilter.java:54) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPointCut.java:41) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:64) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Attachments:
Comments: