Editor screen disply error in design mode STUDIO 12

Hi
The studio is unable to display an Editor screen in the design mode, though it is running well. I have recreated the screen but still have the same problem. I’m getting the following error:

    019-10-11 23:21:17,391 [21253203]   WARN - til.ui.update.LazyUiDisposable - use project as a parent disposable 
2019-10-11 23:21:49,005 [21284817]   WARN - ialog.CubaNotificationsManager - Exception during Screen Designer activation. See log for details 
java.lang.NullPointerException
	at com.haulmont.studio.ui.sd.layout.ModelHelper.shorten(SourceFile:179)
	at com.haulmont.studio.ui.sd.layout.ModelHelper.captionLocalized(SourceFile:100)
	at com.haulmont.studio.ui.sd.layout.gui.impl.GroupBox.setComponentCaption(SourceFile:186)
	at com.haulmont.studio.ui.sd.layout.model.prop.CaptionComponentProperty.setValue(SourceFile:33)
	at com.haulmont.studio.intellij.ui.sd.designer.ComponentModelMapper.setComponentProperties(SourceFile:646)
	at com.haulmont.studio.intellij.ui.sd.designer.ComponentModelMapper.updateComponentFromModel(SourceFile:430)
	at com.haulmont.studio.intellij.ui.sd.designer.ComponentModelMapper.updateComponentFromModel(SourceFile:555)
	at com.haulmont.studio.intellij.ui.sd.designer.ComponentModelMapper.updateComponentFromModel(SourceFile:555)
	at com.haulmont.studio.intellij.ui.sd.designer.ComponentModelMapper.updateComponentFromModel(SourceFile:555)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.lambda$updateComponentFromModel$1(SourceFile:162)
	at com.haulmont.studio.ui.util.UiWrapper.lambda$runComponent$0(SourceFile:17)
	at com.haulmont.studio.ui.util.UiWrapper.compute(SourceFile:42)
	at com.haulmont.studio.ui.util.UiWrapper.computeComponent(SourceFile:30)
	at com.haulmont.studio.ui.util.UiWrapper.runComponent(SourceFile:16)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.updateComponentFromModel(SourceFile:162)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.editModel(SourceFile:157)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.lambda$activate$4(SourceFile:327)
	at com.haulmont.studio.ui.util.UiWrapper.lambda$run$1(SourceFile:35)
	at com.haulmont.studio.ui.util.UiWrapper.lambda$compute$2(SourceFile:48)
	at com.vaadin.ui.UI.accessSynchronously(UI.java:1392)
	at com.haulmont.studio.ui.util.UiWrapper.compute(SourceFile:46)
	at com.haulmont.studio.ui.util.UiWrapper.run(SourceFile:34)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.activate(SourceFile:327)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.activate(SourceFile:294)
	at com.haulmont.studio.intellij.ui.sd.designer.ScreenLayoutDesigner.activateWithSavedState(SourceFile:283)
	at com.haulmont.studio.intellij.ui.sd.ScreenDesignerEditor.lambda$activatePanel$0(SourceFile:74)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:53)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:970)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53)
	at com.haulmont.studio.intellij.ui.sd.ScreenDesignerEditor.activatePanel(SourceFile:63)
	at com.haulmont.studio.intellij.ui.sd.ScreenDesignerEditor.selectNotify(SourceFile:122)
	at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$2.selectionChanged(EditorTabbedContainer.java:151)
	at com.intellij.ui.tabs.impl.JBTabsImpl.fireSelectionChanged(JBTabsImpl.java:947)
	at com.intellij.ui.tabs.impl.JBTabsImpl.executeSelectionChange(JBTabsImpl.java:903)
	at com.intellij.ui.tabs.impl.JBTabsImpl.access$1900(JBTabsImpl.java:52)
	at com.intellij.ui.tabs.impl.JBTabsImpl$9.run(JBTabsImpl.java:862)
	at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer.lambda$null$2(EditorTabbedContainer.java:163)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
	at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer.lambda$new$3(EditorTabbedContainer.java:161)
	at com.intellij.ui.tabs.impl.JBTabsImpl._setSelected(JBTabsImpl.java:858)
	at com.intellij.ui.tabs.impl.JBTabsImpl.select(JBTabsImpl.java:849)
	at com.intellij.ui.tabs.impl.TabLabel$1.mousePressed(TabLabel.java:96)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
	at java.awt.Component.processMouseEvent(Component.java:6545)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
	at java.awt.Component.processEvent(Component.java:6313)
	at java.awt.Container.processEvent(Container.java:2237)
	at java.awt.Component.dispatchEventImpl(Component.java:4903)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4523)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
	at java.awt.Container.dispatchEventImpl(Container.java:2281)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.awt.EventQueue$4.run(EventQueue.java:735)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:674)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2019-10-11 23:21:49,016 [21284828]   INFO - tudio.backend.stat.StatManager - Sending usage statistics 
2019-10-11 23:22:00,145 [21295957]   WARN - com.intellij.util.xmlb.Binding - no accessors for class com.aliyun.odps.studio.option.CompilerSettings$MajorVersion 
2019-10-11 23:22:00,200 [21296012]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 88 ms 
2019-10-11 23:22:02,263 [21298075]   INFO - tellij.indexing.menu.MenuIndex - Found menu items in web-menu.xml 
2019-10-11 23:22:34,283 [21330095]   WARN - ialog.CubaNotificationsManager - Exception during Screen Designer activation. See log for details

Thanks, for the bug report! We will fix this problem in the next release.
See: https://youtrack.cuba-platform.com/issue/STUDIO-7071

Thanks Alex. I hope there will be a release soon with this fix as we have been using the studio 12 version and do not want to go back to 11.

In the very near future, or you can use tomorrow’s nightly build.
See: CUBA Studio Nightly Builds Available - CUBA.Platform

1 Like