HI, we are trying to update the average price on stockLocationline get follow exceptions. Check the link for detail error.
Any help much appreciated Thank you.
HI, we are trying to update the average price on stockLocationline get follow exceptions. Check the link for detail error.
Any help much appreciated Thank you.
Hello,
did you experience the same problem with the new version of Aos?
Regards,
I’ve caught that error, trying to save record of MetaJsonRecord type.
at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.NullPointerException: Cannot invoke "com.axelor.apps.base.tracking.GlobalAuditTracker.addLog(com.axelor.auth.db.AuditableModel, int)" because the return value of "java.lang.ThreadLocal.get()" is null
MetaJsonRecordRepository repo = new MetaJsonRecordRepository(); Context priceControlRuleContext = repo.create("priceControlRules");
…
MetaJsonRecord priceControlRule = repo.save(priceControlRuleContext);
AOS Version: 8.4.6, SDK 7.4.3
Finally, I have found working solution for my case.
I’ve changed class GlobalAuditInterceptor, it’s definition of
protected static final Class BACKLISTED_CLASSES = {
I added those lines:
... MetaJsonRecord.class, MetaJsonModel.class, ...
It looks like these models are supposed to be ignored by logger.