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)){