Liquibase script generation problem: Composite proj

I am working on a composite project for FlowUI. As we know it will be released in Feb 2023, I found it is already working in platform version 1.5.999-SNAPSHOT, so I started my project which was going well until recently. I am also using the Studio plug-in nightly update version. I know I am using a version which is not released yet, I took that risk, no complains.

When I try to run the project or build database script, I get the following error without a detail of the origin of the issue.

image

Is there any way I can find which entity generation is originating this problem?

After I have moved my project to Studio and Platform version 1.4.2 the abovementioned the message showed the table/field definition related errors so I could fix them.

However, it has been stopped showing the root cause (entity ref) again in this version (1.4.2 with SQL server database at the backend). I am getting the exact same message as message when I changed some Entity definition. Now I can not see the root cause of the issue to fix.

Interestingly, it works when I freshly create a new database but not with the existing database that was working earlier. Thanks Jmix team for any help fixing this issue.

Here is idea.log snapshot:

2022-12-31 00:14:13,957 [3170622] SEVERE - #c.i.u.ExecutorsQuery - IntelliJ IDEA 2022.3.1  Build #IC-223.8214.52
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - IntelliJ IDEA 2022.3.1  Build #IC-223.8214.52
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - JDK: 17.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - JDK: 17.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - OS: Windows 11
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - Plugin to blame: Jmix version: 1.4.2-223
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - OS: Windows 11
2022-12-31 00:14:13,958 [3170623] SEVERE - #c.i.u.ExecutorsQuery - Plugin to blame: Jmix version: 1.4.2-223
2022-12-31 00:14:13,961 [3170626] SEVERE - #c.i.u.ExecutorsQuery - Psi element(xml descriptor or ViewController class) not found for FlowView
java.lang.RuntimeException: Psi element(xml descriptor or ViewController class) not found for FlowView
	at com.haulmont.jmixstudio.flowui.backend.model.FlowView.getPsiElement(FlowView.kt:159)
	at com.haulmont.jmixstudio.flowui.backend.model.FlowView.getContainingFile$lambda$8(FlowView.kt:153)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860)
	at com.haulmont.jmixstudio.util.EntityUtil.ra(EntityUtil.java:803)
	at com.haulmont.jmixstudio.flowui.backend.model.FlowView.getContainingFile(FlowView.kt:153)
	at com.haulmont.jmixstudio.flowui.psi.reference.FlowViewAliasReference.multiResolve$lambda$0(FlowViewAliasReference.kt:51)
	at com.haulmont.jmixstudio.flowui.backend.view.FlowViewLoader$processViewsWithAlias$1.invoke(FlowViewLoader.kt:40)
	at com.haulmont.jmixstudio.flowui.backend.view.FlowViewLoader$processViewsWithAlias$1.invoke(FlowViewLoader.kt:39)
	at com.haulmont.jmixstudio.flowui.backend.view.FlowViewLoader.processViewsWithAlias$lambda$2(FlowViewLoader.kt:39)
	at com.haulmont.jmixstudio.flowui.backend.view.FlowViewLoader.processScreens$lambda$1(FlowViewLoader.kt:34)
	at com.intellij.util.AbstractQuery.lambda$threadSafeProcessor$1(AbstractQuery.java:73)
	at com.haulmont.jmixstudio.util.HUniqueResultsQuery$MyProcessor.process(HUniqueResultsQuery.java:60)
	at com.intellij.util.InstanceofQuery$MyProcessor.process(InstanceofQuery.java:43)
	at com.intellij.psi.impl.search.AnnotatedElementsSearcher.execute(AnnotatedElementsSearcher.java:59)
	at com.intellij.psi.impl.search.AnnotatedElementsSearcher.execute(AnnotatedElementsSearcher.java:21)
	at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:30)
	at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88)
	at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:105)
	at com.intellij.util.InstanceofQuery.processResults(InstanceofQuery.java:22)
	at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88)
	at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:105)
	at com.haulmont.jmixstudio.util.HUniqueResultsQuery.processResults(HUniqueResultsQuery.java:31)
	at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88)
	at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:80)
	at com.haulmont.jmixstudio.flowui.util.FlowAnnotationSearch.process(FlowAnnotationSearch.kt:30)
	at com.haulmont.jmixstudio.flowui.backend.view.FlowViewLoader.processScreens(FlowViewLoader.kt:33)
	at com.haulmont.jmixstudio.flowui.backend.view.FlowViewLoader.processViewsWithAlias(FlowViewLoader.kt:39)
	at com.haulmont.jmixstudio.flowui.psi.reference.FlowViewAliasReference.multiResolve(FlowViewAliasReference.kt:41)
	at com.intellij.codeInsight.TargetElementUtil.getTargetCandidates(TargetElementUtil.java:210)
	at com.intellij.model.psi.impl.TargetsKt.fromTargetEvaluator(targets.kt:176)
	at com.intellij.model.psi.impl.TargetsKt.declarationsOrReferences(targets.kt:134)
	at com.intellij.model.psi.impl.TargetsKt.declaredReferencedData(targets.kt:41)
	at com.intellij.model.psi.impl.TargetsKt.targetSymbols(targets.kt:23)
	at com.intellij.model.psi.impl.TargetSymbolsDataRule.getData(TargetSymbolsDataRule.kt:14)
	at com.intellij.ide.impl.DataManagerImpl.getRulesData(DataManagerImpl.java:210)
	at com.intellij.ide.impl.DataManagerImpl.lambda$getDataRuleInner$8(DataManagerImpl.java:183)
	at com.intellij.ide.impl.DataManagerImpl.getDataFromRuleInner(DataManagerImpl.java:112)
	at com.intellij.ide.impl.DataManagerImpl.getDataFromRulesInner(DataManagerImpl.java:99)
	at com.intellij.ide.impl.DataManagerImpl.getDataFromRules(DataManagerImpl.java:67)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.getDataInner(PreCachedDataContext.java:224)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.getData(PreCachedDataContext.java:166)
	at com.intellij.openapi.actionSystem.DataContext.getData(DataContext.java:42)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$ensureSlowDataKeysPreCached$20(ActionUpdater.java:471)
	at com.intellij.diagnostic.telemetry.TraceKt.runWithSpan(trace.kt:74)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.ensureSlowDataKeysPreCached(ActionUpdater.java:466)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$callAction$6(ActionUpdater.java:201)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1086)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:201)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:161)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:137)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:124)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:705)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:556)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$23(ActionUpdater.java:529)
	at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1406)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:529)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:606)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$23(ActionUpdater.java:529)
	at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1406)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:529)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:309)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$14(ActionUpdater.java:377)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$15(ActionUpdater.java:396)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1086)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$tryRunReadActionAndCancelBeforeWrite$19(ActionUpdater.java:428)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:128)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.tryRunReadActionAndCancelBeforeWrite(ActionUpdater.java:424)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$16(ActionUpdater.java:396)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:589)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:664)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:620)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:588)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:366)
	at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroupAsync$17(ActionUpdater.java:395)
	at io.opentelemetry.context.Context.lambda$wrap$1(Context.java:212)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:243)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:216)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:205)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
2022-12-31 00:14:13,961 [3170626] SEVERE - #c.i.u.ExecutorsQuery - Psi element(xml descriptor or ViewController class) not found for FlowView
java.lang.RuntimeException: Psi element(xml descriptor or ViewController class) not found for FlowView
	at com.haulmont.jmixstudio.flowui.backend.model.FlowView.getPsiElement(FlowView.kt:159)
	at com.haulmont.jmixstudio.flowui.backend.model.FlowView.getContainingFile$lambda$8(FlowView.kt:153)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860)
	at com.haulmont.jmixstudio.util.EntityUtil.ra(EntityUtil.java:803)
	at com.haulmont.jmixstudio.flowui.backend.model.FlowView.getContainingFile(FlowView.kt:153)
	at 

Hi

The message in the “Changelog Generation Error” notification dialog is actually the message from exception being caught during changelog generation process. So it depends on the type of the exception and can be almost useless sometimes unfortunately. As we see it on the screenshot.
Except showing notification Studio logs this exception to the idea.log with SyncDbBeforeRunProcess logger. So you can check log file if there is something helpful.

The idea.log frament attached doesn’t relate to changelog generation process.

So What is the solution, any wayout? This is a painful situation repeating again and again.