try {
var stat = orm.new("UsageStat");
stat.setTypeID(arguments.type);
stat.setUserID(arguments.userid);
stat.setTstamp(now());
if (structKeyExists(arguments,'ip'))
stat.setRemoteIP(arguments.ip);
if (structKeyExists(arguments,'string1'))
stat.setString1(arguments.string1);
if (structKeyExists(arguments,'ref1') and isNumeric(arguments.ref1))
stat.setRef1(arguments.ref1);
if (structKeyExists(arguments,'ref2') and isNumeric(arguments.ref2))
stat.setRef2(arguments.ref2);
stat.save();
} catch(any excVar){
logbox.error( "ERROR: at usagestatsservice.log" );
logbox.error( excVar.stacktrace );
}
Given it is in a try block, I would expect it to be contained here and not effect further excecution, but then we get another error "null id in UsageStat entry (don't flush the Session after an exception occurs)", which seems to be part of the same session.
Can anyone suggest what might be happening here? It is very inermittent and only happening to some users so very hard to isolate.
Many Thanks for any advice
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/3fdeafd1-df51-4a4c-a652-80d8537e73e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.