ORM (mapping not found) issue with Lucee 4.5.1.000

I keep getting the following error (the table name is sometimes different).
If I do an ORM update via Administrator or ormReload(), I do not get the
error immediately after. However, the error re-appears after a while…
Any thoughts on what could be the issue?
Thanks,
Cage

Lucee 4.5.1.000 Error (org.hibernate.MappingException)MessageAn association
from the table orcases refers to an unmapped class: proceduresettingsCause
org.hibernate.MappingExceptionStacktraceThe Error Occurred in
/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/admin/interface.cfc: line
202

200: function getRoomId(string orname) returntype=“numeric”{
201: orname = trim(orname);
202: result = entityLoad(“roomsettings”, {hospitalorname: orname});
203: writeoutput("ORNAME = " & orname & “
”);
204: if (!isNull(result) and !arrayIsEmpty(result)){

It sounds very similar to an issue I had some time ago when first starting
with Railo. It was extremely frustrating.

The cause turned out to be that I had an Uppercase letter in my sites
folder path, but I had the virtual host mapping (in apache) all lowercase.

Not sure if that is your issue here, but your symptoms seem very similar so
worth checking out.

JasonOn Friday, 17 April 2015 22:33:23 UTC+10, Cage Sarin wrote:

I keep getting the following error (the table name is sometimes different).
If I do an ORM update via Administrator or ormReload(), I do not get the
error immediately after. However, the error re-appears after a while…
Any thoughts on what could be the issue?
Thanks,
Cage

Lucee 4.5.1.000 Error (org.hibernate.MappingException)MessageAn
association from the table orcases refers to an unmapped class:
proceduresettingsCauseorg.hibernate.MappingExceptionStacktraceThe Error
Occurred in
/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/admin/interface.cfc: line
202

200: function getRoomId(string orname) returntype=“numeric”{
201: orname = trim(orname);
202: result = entityLoad(“roomsettings”, {hospitalorname: orname});
203: writeoutput("ORNAME = " & orname & “
”);
204: if (!isNull(result) and !arrayIsEmpty(result)){

I’m not sure this is the case here. It works right after refresh in admin.
In fact, the issue mysteriously disappeared for several days and now it’s
back. i’m wondering if there’s something in my code that would cause it to
lose its mappings?

Any additional thoughts?

Thanks…On Friday, April 17, 2015 at 4:42:43 PM UTC+2, Jason Morris wrote:

It sounds very similar to an issue I had some time ago when first starting
with Railo. It was extremely frustrating.

The cause turned out to be that I had an Uppercase letter in my sites
folder path, but I had the virtual host mapping (in apache) all lowercase.

Not sure if that is your issue here, but your symptoms seem very similar
so worth checking out.

Jason

On Friday, 17 April 2015 22:33:23 UTC+10, Cage Sarin wrote:

I keep getting the following error (the table name is sometimes
different).
If I do an ORM update via Administrator or ormReload(), I do not get the
error immediately after. However, the error re-appears after a while…
Any thoughts on what could be the issue?
Thanks,
Cage

Lucee 4.5.1.000 Error (org.hibernate.MappingException)MessageAn
association from the table orcases refers to an unmapped class:
proceduresettingsCauseorg.hibernate.MappingExceptionStacktraceThe Error
Occurred in
/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/admin/interface.cfc:
line 202

200: function getRoomId(string orname) returntype=“numeric”{
201: orname = trim(orname);
202: result = entityLoad(“roomsettings”, {hospitalorname: orname});
203: writeoutput("ORNAME = " & orname & “
”);
204: if (!isNull(result) and !arrayIsEmpty(result)){

I continue to get these kinds of errors and I’m at a loss to explain. I
don’t think it’s an issue with code (but maybe I missed something).
Wondering if it’s a bug in Lucee or Taffe on Lucee?

For example, now I got the following error - staffworkinfo not found even
though it lists staffworkinfo in the list of available entities…(btw,
persistent is misspelled in error message).

{
“ERROR”:
“No entity (persitent component) with name [staffworkinfo] found, available entities are [staffbypod, rrcasetimes, holidays, messages, orstaffworkinfo_audit, proceduresettings, orcasetimes, staffworkinfo, roomsettings, staffbyroomno, staffnotes, staffbyorcase, stafftypesettings, staffinfo, orcases, staffprefs, staffnotetypes, loginfo, rrcases, surgservicesettings, calltypes, podsettings, patinfo, ornotes, staffbyorno_audit, morestaffinfo] “,
“DETAIL”:””,
“TAGCONTEXT”:
“/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/apiv1/resources/staffworkinfoCollection.cfc [Line 32]”
,
“STACKTRACE”:[
{
“Raw_Trace”:
“resources.staffworkinfocollection_cfc$cf.udfCall(/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/apiv1/resources/staffworkinfoCollection.cfc:32)”
,
“codePrintPlain”:
“30: var staffworkinfoMember = staffworkinfoCollection[a];\n31: if (structKeyExists(staffworkinfoMember, “id”)){\n32: var ormORStaffWorkInfo = entityLoadByPK(“staffworkinfo”, staffworkinfoMember.id);\n33: if (!isNull(ormORStaffWorkInfo)){\n34: ormORStaffWorkInfo.init(argumentCollection=staffworkinfoMember);\n”
,
“column”:0,
“line”:32,
“template”:
“/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/apiv1/resources/staffworkinfoCollection.cfc”
,
“id”:"??",
“type”:“cfml”,
“codePrintHTML”:
“30: var staffworkinfoMember = staffworkinfoCollection[a];
\n31: if (structKeyExists(staffworkinfoMember, “id”)){
\n32: var ormORStaffWorkInfo = entityLoadByPK(“staffworkinfo”, staffworkinfoMember.id);
\n33: if (!isNull(ormORStaffWorkInfo)){
\n34: ormORStaffWorkInfo.init(argumentCollection=staffworkinfoMember);
\n”
},
{
“Raw_Trace”:
“taffy.core.api_cfc$cf.udfCall1(/opt/lucee/tomcat/webapps/ROOT/taffy/core/api.cfc:318)”
,
“codePrintPlain”:
“316: \t\t\t\t\t\tmethod=”#_taffyRequest.method#"\n317: \t\t\t\t\t\targumentcollection="#_taffyRequest.requestArguments#"\n318: \t\t\t\t\t\treturnvariable="_taffyRequest.result"\n319: \t\t\t\t\t/>\n320: \t\t\t\t\t\n"
,
“column”:0,
“line”:318,
“template”:"/opt/lucee/tomcat/webapps/ROOT/taffy/core/api.cfc",
“id”:"??",
“type”:“cfml”,
“codePrintHTML”:
“316: \t\t\t\t\t\tmethod=”#_taffyRequest.method#"
\n317: \t\t\t\t\t\targumentcollection="#_taffyRequest.requestArguments#"
\n318: \t\t\t\t\t\treturnvariable="_taffyRequest.result"
\n319: \t\t\t\t\t/>
\n320: \t\t\t\t\t<cfset m.afterResource = getTickCount() />
\n"
}
]
}

On Friday, April 17, 2015 at 2:33:23 PM UTC+2, Cage Sarin wrote:

I keep getting the following error (the table name is sometimes different).
If I do an ORM update via Administrator or ormReload(), I do not get the
error immediately after. However, the error re-appears after a while…
Any thoughts on what could be the issue?
Thanks,
Cage

Lucee 4.5.1.000 Error (org.hibernate.MappingException)MessageAn
association from the table orcases refers to an unmapped class:
proceduresettingsCauseorg.hibernate.MappingExceptionStacktraceThe Error
Occurred in
/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/admin/interface.cfc: line
202

200: function getRoomId(string orname) returntype=“numeric”{
201: orname = trim(orname);
202: result = entityLoad(“roomsettings”, {hospitalorname: orname});
203: writeoutput("ORNAME = " & orname & “
”);
204: if (!isNull(result) and !arrayIsEmpty(result)){

Hi,

We saw this kind of error when we reload the ORM (with ormreload() ) in a
live system, ie, while there are traffic to the site. The solution we came
was to get the machine off of the load balancer (we have a 4 machine
cluster) and after some seconds do the ormreload().

I don’t know if is the same case as yours. Hope these help.—
David Sedeño

El lunes, 27 de abril de 2015, 18:47:48 (UTC+2), Cage Sarin escribió:

I continue to get these kinds of errors and I’m at a loss to explain. I
don’t think it’s an issue with code (but maybe I missed something).
Wondering if it’s a bug in Lucee or Taffe on Lucee?

For example, now I got the following error - staffworkinfo not found even
though it lists staffworkinfo in the list of available entities…(btw,
persistent is misspelled in error message).

{
“ERROR”:
“No entity (persitent component) with name [staffworkinfo] found, available entities are [staffbypod, rrcasetimes, holidays, messages, orstaffworkinfo_audit, proceduresettings, orcasetimes, staffworkinfo, roomsettings, staffbyroomno, staffnotes, staffbyorcase, stafftypesettings, staffinfo, orcases, staffprefs, staffnotetypes, loginfo, rrcases, surgservicesettings, calltypes, podsettings, patinfo, ornotes, staffbyorno_audit, morestaffinfo] "
,
“DETAIL”:”",
“TAGCONTEXT”:
“/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/apiv1/resources/staffworkinfoCollection.cfc [Line 32]”
,
“STACKTRACE”:[
{
“Raw_Trace”:
“resources.staffworkinfocollection_cfc$cf.udfCall(/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/apiv1/resources/staffworkinfoCollection.cfc:32)”
,
“codePrintPlain”:
“30: var staffworkinfoMember = staffworkinfoCollection[a];\n31: if (structKeyExists(staffworkinfoMember, “id”)){\n32: var ormORStaffWorkInfo = entityLoadByPK(“staffworkinfo”, staffworkinfoMember.id);\n33: if (!isNull(ormORStaffWorkInfo)){\n34: ormORStaffWorkInfo.init(argumentCollection=staffworkinfoMember);\n”
,
“column”:0,
“line”:32,
“template”:
“/opt/lucee/tomcat/webapps/ROOT/orrms2013/server/apiv1/resources/staffworkinfoCollection.cfc”
,
“id”:"??",
“type”:“cfml”,
“codePrintHTML”:
“30: var staffworkinfoMember = staffworkinfoCollection[a];
\n31: if (structKeyExists(staffworkinfoMember, “id”)){
\n32: var ormORStaffWorkInfo = entityLoadByPK(“staffworkinfo”, staffworkinfoMember.id);
\n33: if (!isNull(ormORStaffWorkInfo)){
\n34: ormORStaffWorkInfo.init(argumentCollection=staffworkinfoMember);
\n”
},
{
“Raw_Trace”:
“taffy.core.api_cfc$cf.udfCall1(/opt/lucee/tomcat/webapps/ROOT/taffy/core/api.cfc:318)”
,
“codePrintPlain”:
“316: \t\t\t\t\t\tmethod=”#_taffyRequest.method#"\n317: \t\t\t\t\t\targumentcollection="#_taffyRequest.requestArguments#"\n318: \t\t\t\t\t\treturnvariable="_taffyRequest.result"\n319: \t\t\t\t\t/>\n320: \t\t\t\t\t\n"
,
“column”:0,
“line”:318,
“template”:"/opt/lucee/tomcat/webapps/ROOT/taffy/core/api.cfc",
“id”:"??",
“type”:“cfml”,
“codePrintHTML”: