Studio UI error : java.lang.NullPointerException

When I am clicking the invoke >> button in the action designer of the table which is supposed to take me to the controller,

02%20PM

I am getting the following exception:

17:40	Studio UI Error: java.lang.NullPointerException

Thank you for reporting the problem.
Created issue.

1 Like

It looks like this issue is still existing!

46%20PM

Hi.
Could you please provide more information about your problem? Which version of the Studio do you use? Have you try to reproduce this problem in Studio build 183.9.1?

This is in the latest version of the studio 9.1

Hi Natalia
I think I need to share with you more info that may help you to identify this issue.
The issue i am experiencing with is the project that has been migrated to the new platform from v6.x. This is a large project having more than 800 Entities.

When I have created a brand new project, i get no error but in this large project. The issue might be related to such a large project or a project migrated to v7. Let me know if you need any additional info to investigate it for a fix. Looking forward for your help.

Could you please share idea.log file with us or stacktrace of the exception?

Hi Can you tell me where will this file be located?

In Help menu select Show log in Explorer (if you use macOS, this will be named Show log in Finder).

image

Thanks.

Here is the extracts:

2019-05-13 10:37:15,911 [81052320]   WARN - ialog.CubaNotificationsManager - Studio UI Error 
java.lang.NullPointerException
	at com.haulmont.studio.ui.common.autocomplete.jpql.DomainModelBuilder.addProperty(SourceFile:62)
	at com.haulmont.studio.ui.common.autocomplete.jpql.DomainModelBuilder.produce(SourceFile:45)
	at com.haulmont.studio.ui.common.autocomplete.JpqlSuggestionFactory.requestHint(SourceFile:58)
	at com.haulmont.studio.ui.sd.layout.TabularPropertiesEditor$DsQuerySuggester.getSuggestions(SourceFile:993)
	at org.vaadin.aceeditor.SuggestionExtension$1.suggest(SuggestionExtension.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	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)
	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.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:90)
	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1435)
	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:361)
	at com.haulmont.studio.ui.app.StudioApplicationServlet.service(SourceFile:81)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:258)
	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:745)
2019-05-13 10:37:15,912 [81052321]   WARN - napi.components.ServiceManager - com.haulmont.studio.backend.stat.StatManager requested as a service, but it is a component - convert it to a service or change call to project.getComponent() 
2019-05-13 10:37:15,936 [81052345]   INFO - tudio.backend.stat.StatManager - Sending usage statistics 
2019-05-13 10:37:16,908 [81053317]   INFO - .openapi.util.LowMemoryWatcher - Low memory signal received: afterGc=false 
2019-05-13 10:37:16,911 [81053320]   INFO - .openapi.util.LowMemoryWatcher - Low memory signal received: afterGc=true

Thank you for reporting the problem. We have created a YouTrack issue

1 Like

Thanks for fixing this ASAP as this is slowing down the development.

Hi Natalia
I have experienced exception in updating the database script as attached. I am sharing if you get additional inputs from here.

idea.txt (391.9 KB)

This might be a different issue, Therefore, I have posted separately here to keep things separate.