Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1225

orm: Hibernate cannot find property CFC's which reside in a "Addional Resources" folder

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3.0.006
    • Fix Version/s: None
    • Labels:

      Description

      When I define a folder in "Addional Resources" and then map a property to a cfc inside that folder I get an error.

      I define my property like this:

      property name="somethingCool"
      	fieldtype="one-to-one"
      	cfc="com.coolcompany.SomethingCool"
      	fkcolumn="somethingCoolID"
      	cascade="all-delete-orphan";
      

      Error: entity [com.coolcompany.SomethingCool] does not exist/

      Stacktrace:

      entity [com.coolcompany.SomethingCool] does not exist, existing entities are [SomeThingKindaCool, SomethingSuperCool]
      at railo.runtime.orm.hibernate.HibernateORMEngine.getEntityByCFCName(HibernateORMEngine.java:669):669
      at railo.runtime.orm.hibernate.HBMCreator.setForeignEntityName(HBMCreator.java:1126):1126
      at railo.runtime.orm.hibernate.HBMCreator.createXMLMappingOneToOne(HBMCreator.java:1107):1107
      at railo.runtime.orm.hibernate.HBMCreator.addRelation(HBMCreator.java:444):444
      at railo.runtime.orm.hibernate.HBMCreator.createXMLMapping(HBMCreator.java:167):167
      at railo.runtime.orm.hibernate.HibernateORMEngine.createMapping(HibernateORMEngine.java:357):357
      at railo.runtime.orm.hibernate.HibernateORMEngine.getSessionFactory(HibernateORMEngine.java:188):188
      at railo.runtime.orm.hibernate.HibernateORMEngine.init(HibernateORMEngine.java:103):103
      at railo.runtime.config.ConfigImpl.getORMEngine(ConfigImpl.java:3053):3053
      at railo.runtime.config.ConfigImpl.resetORMEngine(ConfigImpl.java:3039):3039
      at railo.runtime.orm.ORMUtil.resetEngine(ORMUtil.java:35):35
      at railo.runtime.listener.ModernAppListener.initApplicationContext(ModernAppListener.java:537):537
      at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:121):121
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:23):23
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1964):1964
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:282):282
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):717
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290):290
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233):233
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191):191
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127):127
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102):102
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109):109
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298):298
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861):861
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579):579
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584):1584
      at java.lang.Thread.run(Thread.java:619):619

      It works when I remove the com.coolcompany but then it breaks in Adobe ColdFusion 9.0.1.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                jbrunemann Jan BrĂ¼nemann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: