Uploaded image for project: 'Lucee Development'
  1. LDEV-338

declared inline datasource does not work with ORM

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.1.014
    • Fix Version/s: 4.5.1.015, 5.0.0.49
    • Labels:
      None

      Description

      Declaring inline datasources in the Application.cfc does not work for ORM. I get the following error on Lucee 4.5 latest. Which is blocking the release of ContentBox embedded edition.

      at lucee.runtime.db.DatasourceConnectionImpl.equals(DatasourceConnectionImpl.java:124):124
       	at lucee.runtime.orm.ORMDatasourceConnection.equals(ORMDatasourceConnection.java:86):86
       	at lucee.runtime.db.DatasourceManagerImpl._add(DatasourceManagerImpl.java:132):132
       	at lucee.runtime.db.DatasourceManagerImpl.add(DatasourceManagerImpl.java:113):113
       	at lucee.runtime.PageContextImpl.getORMSession(PageContextImpl.java:3132):3132
       	at lucee.runtime.orm.ORMUtil.getSession(ORMUtil.java:59):59
       	at lucee.runtime.orm.ORMUtil.getSession(ORMUtil.java:55):55
       	at lucee.runtime.orm.hibernate.tuplizer.accessors.CFCGetter.get(CFCGetter.java:71):71
       	at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:230):230
       	at lucee.runtime.orm.hibernate.tuplizer.AbstractEntityTuplizerImpl.getIdentifier(AbstractEntityTuplizerImpl.java:66):66
       	at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3852):3852
       	at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3560):3560
       	at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:204):204
       	at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:532):532
       	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:103):103
       	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93):93
       	at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:677):677
       	at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:669):669
       	at lucee.runtime.orm.hibernate.HibernateORMSession.save(HibernateORMSession.java:239):239
       	at lucee.runtime.functions.orm.EntitySave.call(EntitySave.java:33):33
       	at system.orm.hibernate.baseormservice_cfc$cf.udfCall4(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/orm/hibernate/BaseORMService.cfc:814):814
       	at system.orm.hibernate.baseormservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/orm/hibernate/BaseORMService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:216):216
       	at lucee.runtime.type.scope.ArgumentImpl.callWithNamedValues(ArgumentImpl.java:520):520
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:773):773
       	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1596):1596
       	at system.orm.hibernate.baseormservice_cfc$cf.udfCall6(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/orm/hibernate/BaseORMService.cfc:1472):1472
       	at system.orm.hibernate.baseormservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/orm/hibernate/BaseORMService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at system.orm.hibernate.baseormservice_cfc$cf.udfCall4(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/orm/hibernate/BaseORMService.cfc:800):800
       	at system.orm.hibernate.baseormservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/orm/hibernate/BaseORMService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at model.modules.moduleservice_cfc$cf.udfCall1(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/modules/contentbox/model/modules/ModuleService.cfc:129):129
       	at model.modules.moduleservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/modules/contentbox/model/modules/ModuleService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at model.modules.moduleservice_cfc$cf.udfCall2(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/modules/contentbox/model/modules/ModuleService.cfc:262):262
       	at model.modules.moduleservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/modules/contentbox/model/modules/ModuleService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:641):641
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
       	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at modules.contentbox.moduleconfig_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/modules/contentbox/ModuleConfig.cfc:202):202
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:641):641
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
       	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at system.web.services.moduleservice_cfc$cf.udfCall2(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/web/services/ModuleService.cfc:333):333
       	at system.web.services.moduleservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/web/services/ModuleService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at system.web.services.moduleservice_cfc$cf.udfCall1(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/web/services/ModuleService.cfc:263):263
       	at system.web.services.moduleservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/web/services/ModuleService.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:641):641
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
       	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at system.web.services.loaderservice_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/web/services/LoaderService.cfc:86):86
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:641):641
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
       	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at coldbox.system.coldbox_cfc$cf.udfCall1(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/Coldbox.cfc:71):71
       	at coldbox.system.coldbox_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/coldbox/system/Coldbox.cfc):-1
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:641):641
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
       	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1586):1586
       	at application_cfc$cf.udfCall(/Users/lmajano/Downloads/contentbox-express-2.1.0/webapps/ROOT/Application.cfc:98):98
       	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:641):641
       	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
       	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
       	at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:405):405
       	at lucee.runtime.listener.ModernAppListener.onApplicationStart(ModernAppListener.java:283):283
       	at lucee.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:2831):2831
       	at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:118):118
       	at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:35):35
       	at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2254):2254
       	at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2221):2221
       	at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):456
       	at lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1
       	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729):729
       	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291):291
       	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
       	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
       	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
       	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
       	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176):176
       	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145):145
       	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92):92
       	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394):394
       	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
       	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
       	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721):721
       	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466):466
       	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391):391
       	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318):318
       	at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213):213
       	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171):171
       	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145):145
       	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92):92
       	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394):394
       	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
       	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
       	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219):219
       	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106):106
       	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142):142
       	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79):79
       	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610):610
       	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88):88
       	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518):518
       	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091):1091
       	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668):668
       	at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223):223
       	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517):1517
       	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1474):1474
       	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
       	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
       	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
       	at java.lang.Thread.run(Thread.java:745):745
       
      

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              lmajano Luis Majano
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: