Unexpected error when clicking on Deployment Settings in Cuba Studio

See attached screen capture

When opening an existing project, and going clicking “Deployment Options” in Cuba Studio, occasionally an Unexpected error occurs preventing the user from going to that screen. This has happened on two different computers, from two different people, working on different projects.

The only solution that seems to work is to delete the project folder and replace it with one that you had previously backed up.
(if you thought to do that)

The error log reports:

Unexpected error
java.lang.NullPointerException

Studio Version 6.3.1

DeploymentSettingsError

Please attach the whole exception stack trace that appears in the Messages panel.


[15:25:31.353] java.lang.NullPointerException

 at com.haulmont.studio.ui.n.a.j.b(SourceFile:127)

 at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:198)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)

 at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1008)

 at com.vaadin.ui.AbstractField.fireValueChange(AbstractField.java:1159)

 at com.vaadin.ui.AbstractField.setValue(AbstractField.java:570)

 at com.vaadin.ui.AbstractField.setValue(AbstractField.java:468)

 at com.vaadin.ui.AbstractField.setValue(AbstractField.java:453)

 at com.haulmont.studio.ui.n.a.j.d(SourceFile:77)

 at com.haulmont.studio.ui.n.a.j.<init>(SourceFile:58)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

 at java.lang.reflect.Constructor.newInstance(Unknown Source)

 at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)

 ...
[15:25:31.361] Unexpected error
java.lang.NullPointerException
1 Like

Thank you for reporting the problem. The fix will be available in Studio 2.3.2.

As a workaround, set false to includeContextXml property of buildWar task in build.gradle.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/STUDIO-3134