Site Import: NPE for Chat
GENERAL
TESTING
GENERAL
TESTING
Description
relates to
Activity
Show:

Steve Waldeck April 11, 2022 at 1:09 AM
Verified on 20x: Build: 306f1e03
Verified on 21x: Build: 3d2e3dfa
Win10 (Firefox, Chrome)

Andrea Schmidt January 29, 2022 at 5:26 PM
Verified on 22x: https://qa22-mysql.nightly.sakaiproject.org/, build: f120f06f

Bernardo Garcia Vila August 25, 2021 at 6:44 AMEdited
I think this only happens if the synoptic tool is not present on the destination's Overview tool, I'm going to update the test plan.
EDIT: Am I right thinking we should just catch the exception? Overview has its own "Import" option (and for what is worth it does not seem to do much with the synoptic configuration anyway).
Fixed
Created February 21, 2021 at 8:34 AM
Updated April 11, 2022 at 1:09 AM
Resolved August 26, 2021 at 4:17 AM
I did a site import > replace my data and the originating site had 2 chat rooms. These chat rooms did import into the new site, but I saw a NullPointerException in the server logs.
21-Feb-2021 09:02:13.215 WARN [pool-5-thread-1] org.sakaiproject.chat2.model.impl.ChatEntityProducer.transferSynopticOptions transferSynopticOptions(): exception in handling org.sakaiproject.chat2.model.impl.ChatEntityProducer : 21-Feb-2021 09:02:13.215 WARN [pool-5-thread-1] org.sakaiproject.chat2.model.impl.ChatEntityProducer.transferSynopticOptions transferSynopticOptions(): exception in handling org.sakaiproject.chat2.model.impl.ChatEntityProducer : java.lang.NullPointerException at org.sakaiproject.chat2.model.impl.ChatEntityProducer.transferSynopticOptions(ChatEntityProducer.java:728) at org.sakaiproject.chat2.model.impl.ChatEntityProducer.transferCopyEntities(ChatEntityProducer.java:703) at org.sakaiproject.chat2.model.impl.ChatEntityProducer.transferCopyEntities(ChatEntityProducer.java:785) at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl$1.doInTransactionWithoutResult(SiteManageServiceImpl.java:587) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:36) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.transferCopyEntities(SiteManageServiceImpl.java:580) at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.importToolsIntoSite(SiteManageServiceImpl.java:481) at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.lambda$importToolsIntoSiteThread$0(SiteManageServiceImpl.java:155) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)