Details

    • Type: Bug
    • Status: Deployed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.5.2.001
    • Fix Version/s: 4.5.3.002
    • Labels:
      None

      Description

      I get the stacktrace found at the end of this write-up on a stackoverflow exception. I do not know what in our app exploits this error. but I know what fixes it:

      in PageContextImpl. These lines (around line 3138) are found outside an if statement that looks like it should be on the inside. I put it in the if statement and my app runs without this error. I don't know if it is the right thing to do, but it work. I'll do a pull request feel free to rip my change apart.

      DatasourceManagerImpl manager = (DatasourceManagerImpl) getDataSourceManager();
      Add a comment to this line

      • manager.add(this,ormSession);

      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.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:80):80 at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:190):190 at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:147):147 at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219):219 at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99):99 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50):50 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206):1206 at lucee.runtime.orm.hibernate.HibernateORMTransaction.begin(HibernateORMTransaction.java:40):40 at lucee.runtime.orm.ORMConnection.<init>(ORMConnection.java:61):61 at lucee.runtime.orm.ORMDatasourceConnection.<init>(ORMDatasourceConnection.java:52):52 at lucee.runtime.db.DatasourceManagerImpl._add(DatasourceManagerImpl.java:122):122 at lucee.runtime.db.DatasourceManagerImpl.add(DatasourceManagerImpl.java:113):113 at lucee.runtime.PageContextImpl.getORMSession(PageContextImpl.java:3137):3137 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.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:80):80 at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:190):190 at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:147):147 at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219):219 at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99):99 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50):50 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206):1206 at lucee.runtime.orm.hibernate.HibernateORMTransaction.begin(HibernateORMTransaction.java:40):40 at lucee.runtime.orm.ORMConnection.<init>(ORMConnection.java:61):61 at lucee.runtime.orm.ORMDatasourceConnection.<init>(ORMDatasourceConnection.java:52):52 at lucee.runtime.db.DatasourceManagerImpl._add(DatasourceManagerImpl.java:122):122 at lucee.runtime.db.DatasourceManagerImpl.add(DatasourceManagerImpl.java:113):113 at lucee.runtime.PageContextImpl.getORMSession(PageContextImpl.java:3137):3137 at lucee.runtime.orm.ORMUtil.getSession(ORMUtil.java:59):59

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              colby.litnak Colby Litnak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: