Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Current Situation
- The Inventory Plugin doesn't update the Inventory properly
- If a new folder is added which contains jobs, job chains and orders then orders are missing in JOC and the error message
25 17:01:34.205 com.sos.jitl.inventory.data.InventoryEventUpdateUtil [WARN ] - [inventory] processing of DB transactions not finished due to errors: com.sos.hibernate.exceptions.SOSHibernateTransactionException: TransactionException Cannot rollback transaction in current status [COMMITTED] com.sos.hibernate.exceptions.SOSHibernateTransactionException: TransactionException Cannot rollback transaction in current status [COMMITTED] at com.sos.hibernate.classes.SOSHibernateSession.rollback(SOSHibernateSession.java:918) at com.sos.jitl.dailyplan.db.Calendar2DB.rollback(Calendar2DB.java:82) at com.sos.jitl.dailyplan.db.Calendar2DB.processDailyplan2DBFilter(Calendar2DB.java:220) at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.updateDailyPlan(InventoryEventUpdateUtil.java:737) at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processDbTransaction(InventoryEventUpdateUtil.java:672) at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processGroupedEvents(InventoryEventUpdateUtil.java:452) at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processEventType(InventoryEventUpdateUtil.java:752) at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.execute(InventoryEventUpdateUtil.java:241) at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.execute(InventoryEventUpdateUtil.java:208) at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin.executeEventBasedInventoryProcessing(InitializeInventoryInstancePlugin.java:269) at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin.access$200(InitializeInventoryInstancePlugin.java:44) at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin$2.run(InitializeInventoryInstancePlugin.java:133) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.hibernate.TransactionException: Cannot rollback transaction in current status [COMMITTED] at org.hibernate.engine.transaction.internal.TransactionImpl.rollback(TransactionImpl.java:95) at com.sos.hibernate.classes.SOSHibernateSession.rollback(SOSHibernateSession.java:914) ... 16 more
is logged.
- After a JobScheduler restart the Inventory Plugin ignores still the new orders but no error message is logged.
Desired Behavior
- The Inventory plugin should work for all objects also on start as well for updates.
- The Inventory plugin should log an error if an object cannot write to the Inventory tables.