Studio throwing error when changing any Project Properties

Hi,

In the latest version of Studio 6.9.5, which I upgraded to today, seems to throw and error every time I try to click Ok/Apply to any changes I make to the Project Properties. The error thrown from Studio is below.

Is anyone else having this issue?

2018-08-28 19:10:59,243 ERROR [com.haulmont.studio.ui.app.App] Exception occured
com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:160)
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
 at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:444)
 at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:409)
 at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:274)
 at com.vaadin.server.communication.PushHandler$2.run(PushHandler.java:148)
 at com.vaadin.server.communication.PushHandler.callWithUi(PushHandler.java:240)
 at com.vaadin.server.communication.PushHandler.onMessage(PushHandler.java:518)
 at com.vaadin.server.communication.PushAtmosphereHandler.onMessage(PushAtmosphereHandler.java:87)
 at com.vaadin.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
 at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:199)
 at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:107)
 at org.atmosphere.container.Jetty9AsyncSupportWithWebSocket.service(Jetty9AsyncSupportWithWebSocket.java:180)
 at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2075)
 at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:571)
 at org.atmosphere.websocket.DefaultWebSocketProcessor$3.run(DefaultWebSocketProcessor.java:333)
 at org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101)
 at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:328)
 at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:425)
 at org.atmosphere.container.Jetty9WebSocketHandler.onWebSocketText(Jetty9WebSocketHandler.java:125)
 at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:128)
 at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)
 at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:65)
 at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame(JettyListenerEventDriver.java:122)
 at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:161)
 at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:309)
 at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:214)
 at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)
 at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:258)
 at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:632)
 at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:480)
 at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
 at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)
 ... 34 more
Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of method buttonClick in com.haulmont.studio.ui.AbstractPage$3 failed.
 at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:530)
 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)
 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)
 at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1037)
 at com.vaadin.ui.Button.fireClick(Button.java:377)
 at com.vaadin.ui.Button$1.click(Button.java:54)
 ... 38 more
Caused by: java.lang.NullPointerException

Hi,
Which version have you updated from?
Studio Browser- or SE- edition?
Which OS do you use?

Hi @iskandarov

I’m on OSX and I think I was on Studio 6.9.4. I’m on the electron based standalone edition.

I’ve tried both new and old projects and get the same issue.

I tried reinstalling Studio from scratch but that didn’t help.

Hi,
Could you please provide studio.log file with described error stacktrace?
Or just the stacktrace of the java.lang.NullPointerException from the bottom of the error message.

@gaslov

Here is the log file you wanted

studio.log (19.3 KB)

Thanks,

Do you use any custom app components in the projects that fail with exception?

Hi @gaslov

Nothing that weird. It currently builds and runs fine I just can’t do anything with the project properties. Here is my build file.

build.gradle (11.2 KB)

Thanks again, build.gradle file was very helpful.

We have found the problem, it will be fixed in the next maintenance Studio release. Here is the issue.

There is a workaround: put ‘declarativecontrollers’ app component dependency before ‘helpsystem’ app component dependency in your build.gradle file.

Hi @gaslov

Many thanks for looking in to this. The workaround has got me going. :grin:

Thanks again for the great support.