Multiple errors on Tree Windows

Description

In the development branch. I've found the following errors on tree windows:

1) Sometimes NPE when the window is open and you try to click on a node (NPENode.jpg)
with the following log

SEVERE:
java.lang.NullPointerException
at org.adempiere.webui.adwindow.ADTabpanel.navigateTo(ADTabpanel.java:1178)
at org.adempiere.webui.adwindow.ADTabpanel.onEvent(ADTabpanel.java:1080)
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3030)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3001)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2942)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1826)
at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1611)
at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1321)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:611)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
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.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
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:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
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)

2) The toolbar buttons fail sometimes, it can happen when you try to refresh or to save a new record. (See the images)

SEVERE: Could not invoke Toolbar listener method: onRefresh()
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.adempiere.webui.adwindow.ADWindowToolbar.doOnClick(ADWindowToolbar.java:414)
at org.adempiere.webui.adwindow.ADWindowToolbar.onEvent(ADWindowToolbar.java:378)
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3030)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3001)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2942)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1826)
at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1611)
at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1321)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:611)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
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.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
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:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
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)
Caused by: java.lang.NullPointerException
at org.adempiere.webui.adwindow.ADTabpanel.dataStatusChanged(ADTabpanel.java:1279)
at org.compiere.model.GridTab.fireDataStatusChanged(GridTab.java:2362)
at org.compiere.model.GridTab.dataStatusChanged(GridTab.java:2330)
at org.compiere.model.GridTable.fireDataStatusChanged(GridTable.java:3348)
at org.compiere.model.GridTable.fireDataStatusIEvent(GridTable.java:3376)
at org.compiere.model.GridTable.dataRefreshAll(GridTable.java:2983)
at org.compiere.model.GridTab.dataRefreshAll(GridTab.java:930)
at org.adempiere.webui.adwindow.AbstractADWindowContent.doOnRefresh(AbstractADWindowContent.java:1732)
at org.adempiere.webui.adwindow.AbstractADWindowContent.onRefresh(AbstractADWindowContent.java:1722)
at org.adempiere.webui.adwindow.AbstractADWindowContent.onRefresh(AbstractADWindowContent.java:1756)
... 38 more

In the demo site this error rose when saving
17:23:53.179===========> GridTable.dataSave: Persistency Issue - T3232342: null [872]
java.lang.NullPointerException
at org.adempiere.webui.adwindow.ADTabpanel.addNewNode(ADTabpanel.java:1364)
at org.adempiere.webui.adwindow.ADTabpanel.dataStatusChanged(ADTabpanel.java:1290)
at org.compiere.model.GridTab.fireDataStatusChanged(GridTab.java:2362)
at org.compiere.model.GridTab.dataStatusChanged(GridTab.java:2330)
at org.compiere.model.GridTable.fireDataStatusChanged(GridTable.java:3348)
at org.compiere.model.GridTable.fireDataStatusIEvent(GridTable.java:3376)
at org.compiere.model.GridTable.dataSavePO(GridTable.java:2310)
at org.compiere.model.GridTable.dataSave(GridTable.java:1549)
at org.compiere.model.GridTab.dataSave(GridTab.java:1007)
at org.adempiere.webui.adwindow.ADTabpanel.dataSave(ADTabpanel.java:1623)
at org.adempiere.webui.adwindow.CompositeADTabbox.dataSave(CompositeADTabbox.java:865)
at org.adempiere.webui.adwindow.AbstractADWindowContent.onSave0(AbstractADWindowContent.java:2188)
at org.adempiere.webui.adwindow.AbstractADWindowContent.onSaveCallback(AbstractADWindowContent.java:2181)
at org.adempiere.webui.adwindow.AbstractADWindowContent.access$19(AbstractADWindowContent.java:2150)
at org.adempiere.webui.adwindow.AbstractADWindowContent$29.onCallback(AbstractADWindowContent.java:2124)
at org.adempiere.webui.adwindow.AbstractADWindowContent$29.onCallback(AbstractADWindowContent.java:1)
at org.adempiere.webui.adwindow.validator.WindowValidatorManager$ChainCallback.start(WindowValidatorManager.java:124)
at org.adempiere.webui.adwindow.validator.WindowValidatorManager.fireWindowValidatorEvent(WindowValidatorManager.java:103)
at org.adempiere.webui.adwindow.AbstractADWindowContent.onSave(AbstractADWindowContent.java:2132)
at org.adempiere.webui.adwindow.AbstractADWindowContent.onSave(AbstractADWindowContent.java:2082)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

-------------------------------
17:23:53.194===========> GridTable.saveError: Error - null [872]

Environment

Tested locally and in idempiere demo site

Activity

Show:
Carlos Ruiz
July 4, 2016, 3:30 PM

, the line numbers don't correspond with the latest 3.1 version in my eclipse.

Assignee

Unassigned

Reporter

Diego Ruiz

Labels

None

Tested By

None

Affects versions

Priority

Major
Configure