How to fix it? (error when configured moqui_vi_VN components)

Hello everyone! Have a good day.
I configured moqui_vi_VN component and ran gradlew load and received these errors.

11:48:51.279 ERROR oquiWorker-4          o.moqui.i.c.MessageFacadeImpl Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@3a5f95cd rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@2351df6b[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]
11:48:51.279 ERROR oquiWorker-4             o.moqui.i.e.EntityDataFeed Error calling DataFeed MyAccountNotifications service mantle.party.PartyServices.send#DataDocumentNotifications: Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@3a5f95cd rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@2351df6b[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]

and

11:50:57.662 ERROR RequireNewTx       o.moqui.i.e.EntityDataLoaderImpl Skipping to next file after error: org.moqui.BaseException: Error loading entity data from file:/Users/anh7moqui/moqui/runtime/component/moqui_vi_VN/data/vi_VN_L10nMessages.xml org.xml.sax.SAXException: Error storing entity [moqui.basic.LocalizedMessage] value (file file:/Users/anh7moqui/moqui/runtime/component/moqui_vi_VN/data/vi_VN_L10nMessages.xml line 1058): Error creating LocalizedMessage [original:Newer or same revision (${existingOrder.externalRevision}) order ${orderId} found for customer ID ${header.customerPartyId}, other party order ID ${header.otherPartyOrderId}, external order ID ${header.externalId}; attempted revision ${header.externalRevision}, locale:vi_VN]: text value too long [22001]
Error creating LocalizedMessage [original:Newer or same revision (${existingOrder.externalRevision}) order ${orderId} found for customer ID ${header.customerPartyId}, other party order ID ${header.otherPartyOrderId}, external order ID ${header.externalId}; attempted revision ${header.externalRevision}, locale:vi_VN]: text value too long [22001]

11:50:58.668 ERROR oquiWorker-8                  o.moqui.i.a.XmlAction Error running groovy script (java.util.concurrent.RejectedExecutionException: Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@4ed5efc7 rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@1eb785ba[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]): 

and error

11:51:01.913 ERROR oquiWorker-8          o.moqui.i.c.MessageFacadeImpl Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@4735ad05 rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@1eb785ba[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]
11:51:01.913 ERROR oquiWorker-8             o.moqui.i.e.EntityDataFeed Error calling DataFeed MyAccountNotifications service mantle.party.PartyServices.send#DataDocumentNotifications: Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@4735ad05 rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@1eb785ba[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]

11:51:01.913  WARN oquiWorker-8      o.moqui.i.c.TransactionFacadeImpl Tried to commit transaction but marked rollback only, doing rollback instead; rollback-only was set here:
org.moqui.BaseException: Set rollback only location
        at org.moqui.impl.context.TransactionFacadeImpl.setRollbackOnly(TransactionFacadeImpl.groovy:498) ~[moqui_temp10366088731239672340WEB-INF_lib_moqui-framework-3.1.0-rc2.jar.:3.1.0-rc2]
        at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:449) [moqui_temp10366088731239672340WEB-INF_lib_moqui-framework-3.1.0-rc2.jar.:3.1.0-rc2]
        at org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.java:347) ~[moqui_temp10366088731239672340WEB-INF_lib_moqui-framework-3.1.0-rc2.jar.:3.1.0-rc2]
        at org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.java:125) ~[moqui_temp10366088731239672340WEB-INF_lib_moqui-framework-3.1.0-rc2.jar.:3.1.0-rc2]
        at org.moqui.impl.entity.EntityDataFeed$FeedRunnable.feedDataDocument(EntityDataFeed.groovy:768) [moqui_temp10366088731239672340WEB-INF_lib_moqui-framework-3.1.0-rc2.jar.:3.1.0-rc2]
        at org.moqui.impl.entity.EntityDataFeed$FeedRunnable.run(EntityDataFeed.groovy:543) [moqui_temp10366088731239672340WEB-INF_lib_moqui-framework-3.1.0-rc2.jar.:3.1.0-rc2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
11:51:02.328 ERROR oquiWorker-8                  o.moqui.i.a.XmlAction Error running groovy script (java.util.concurrent.RejectedExecutionException: Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@69d7ba2f rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@1eb785ba[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]): 
11:51:02.330 ERROR oquiWorker-8          o.moqui.i.c.MessageFacadeImpl Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@69d7ba2f rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@1eb785ba[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]
11:51:02.330 ERROR oquiWorker-8             o.moqui.i.e.EntityDataFeed Error calling DataFeed MyAccountNotifications service mantle.party.PartyServices.send#DataDocumentNotifications: Task org.moqui.impl.context.ExecutionContextImpl$ThreadPoolRunnable@69d7ba2f rejected from org.moqui.impl.context.ContextJavaUtil$WorkerThreadPoolExecutor@1eb785ba[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 24]

1 Like

This looks like a race condition error due to multiple threads. You should be able to just restart the server and that should fix the problem. Another solution is to run (Warning this will kill all data on the local environment make sure to gradle save for a backup zip file if needed) gradle cleanDb to clean the database and reload. If that the error keeps happening, then we might have a bigger problem.

With another error that has a string that is too long at /Users/anh7moqui/moqui/runtime/component/moqui_vi_VN/data/vi_VN_L10nMessages.xml line 1058. Shorten the string for testing, and see if that fixes the error.

In the future, it’s better to post all the non-sensitive text in one output instead of picking and choosing which to keep. Sometimes the information that you may not find relevant actually is vital.