Upvote 1

Lots of NullPointerException

Solved Laurent Barbareau 8 years ago

Hello,


JIM works fine enough but I have frequent bugs.

One that always occurs is when I open a prototype, I close it and I open another prototype or the same one.

At this time, I get lots of "Widget is disposed" errors and NullPointException into the .metadata/.log file...


  1. !ENTRY org.eclipse.ui.workbench 4 2 2016-10-25 19:28:12.202
  2. !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
  3. !STACK 0
  4. java.lang.NullPointerException
  5. at com.justinmind.evc.igu.main.editor.actions.m.selectionChanged(m.java)
  6. at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
  7. at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
  8. at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144)
  9. at com.justinmind.evc.igu.gef.a.b(a.java)
  10. at com.justinmind.evc.igu.gef.a.a(a.java)
  11. at com.justinmind.evc.igu.gef.a.deselectAll(a.java)
  12. at org.eclipse.gef.ui.parts.AbstractEditPartViewer.deselectAll(AbstractEditPartViewer.java:209)
  13. at com.justinmind.evc.igu.main.editor.LayoutEditor.partDeactivated(LayoutEditor.java)
  14. at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117)
  15. at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  16. at org.eclipse.core.runtime.Platform.run(Platform.java:857)
  17. at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
  18. at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115)
  19. at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238)
  20. at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
  21. at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
  22. at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
  23. at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3640)
  24. at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691)
  25. at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663)
  26. at com.justinmind.evc.igu.actions.db.run(db.java)
  27. at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
  28. at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
  29. at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
  30. at com.justinmind.evc.igu.actions.te.b(te.java)
  31. at com.justinmind.teamwork.kb.run(kb.java)
  32. at com.justinmind.teamwork.nb.a(nb.java)
  33. at com.justinmind.teamwork.pb.run(pb.java)
  34. at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  35. at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
  36. at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
  37. at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
  38. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  39. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
  40. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
  41. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
  42. at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
  43. at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
  44. at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
  45. at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
  46. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  47. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
  48. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  49. at com.justinmind.evc.igu.main.Application.run(Application.java)
  50. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  51. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  52. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  53. at java.lang.reflect.Method.invoke(Method.java:483)
  54. at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
  55. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
  56. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  57. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  58. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
  59. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
  60. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  61. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  62. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  63. at java.lang.reflect.Method.invoke(Method.java:483)
  64. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
  65. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
  66. at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
  67. !ENTRY org.eclipse.ui.workbench 4 2 2016-10-25 19:28:12.206
  68. !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
  69. !STACK 0
  70. java.lang.NullPointerException
  71. at com.justinmind.evc.igu.main.editor.actions.m.selectionChanged(m.java)
  72. at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
  73. at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
  74. at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144)
  75. at com.justinmind.evc.igu.gef.a.b(a.java)
  76. at com.justinmind.evc.igu.gef.a.a(a.java)
  77. at com.justinmind.evc.igu.gef.a.deselectAll(a.java)
  78. at org.eclipse.gef.ui.parts.AbstractEditPartViewer.deselectAll(AbstractEditPartViewer.java:209)
  79. at com.justinmind.evc.igu.main.editor.LayoutEditor.partDeactivated(LayoutEditor.java)
  80. at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117)
  81. at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  82. at org.eclipse.core.runtime.Platform.run(Platform.java:857)
  83. at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
  84. at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115)
  85. at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238)
  86. at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
  87. at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
  88. at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
  89. at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3640)
  90. at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691)
  91. at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663)
  92. at com.justinmind.evc.igu.actions.db.run(db.java)
  93. at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
  94. at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
  95. at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
  96. at com.justinmind.evc.igu.actions.te.b(te.java)
  97. at com.justinmind.teamwork.kb.run(kb.java)
  98. at com.justinmind.teamwork.nb.a(nb.java)
  99. at com.justinmind.teamwork.pb.run(pb.java)
  100. at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  101. at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
  102. at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
  103. at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
  104. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  105. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
  106. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
  107. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
  108. at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
  109. at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
  110. at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
  111. at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
  112. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  113. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
  114. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  115. at com.justinmind.evc.igu.main.Application.run(Application.java)
  116. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  117. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  118. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  119. at java.lang.reflect.Method.invoke(Method.java:483)
  120. at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
  121. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
  122. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  123. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  124. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
  125. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
  126. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  127. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  128. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  129. at java.lang.reflect.Method.invoke(Method.java:483)
  130. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
  131. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
  132. at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
  133. !ENTRY org.eclipse.ui.workbench 4 2 2016-10-25 19:29:04.184
  134. !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
  135. !STACK 0
  136. java.lang.NullPointerException
  137. at com.justinmind.evc.igu.main.editor.actions.m.selectionChanged(m.java)
  138. at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
  139. at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
  140. at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144)
  141. at com.justinmind.evc.igu.gef.a.b(a.java)
  142. at com.justinmind.evc.igu.gef.a.a(a.java)
  143. at com.justinmind.evc.igu.gef.a.deselectAll(a.java)
  144. at org.eclipse.gef.ui.parts.AbstractEditPartViewer.deselectAll(AbstractEditPartViewer.java:209)
  145. at com.justinmind.evc.igu.main.editor.LayoutEditor.partDeactivated(LayoutEditor.java)
  146. at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117)
  147. at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  148. at org.eclipse.core.runtime.Platform.run(Platform.java:857)
  149. at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
  150. at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115)
  151. at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238)
  152. at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
  153. at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
  154. at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
  155. at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3640)
  156. at org.eclipse.ui.internal.WorkbenchPage.makeActive(WorkbenchPage.java:1322)
  157. at org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1308)
  158. at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1500)
  159. at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1489)
  160. at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1463)
  161. at org.eclipse.ui.internal.WorkbenchPage.closeAllEditors(WorkbenchPage.java:1266)
  162. at com.justinmind.evc.igu.actions.cd.d(cd.java)
  163. at com.justinmind.evc.igu.actions.cd.run(cd.java)
  164. at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  165. at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
  166. at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
  167. at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
  168. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  169. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
  170. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
  171. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
  172. at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
  173. at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
  174. at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
  175. at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
  176. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  177. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
  178. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  179. at com.justinmind.evc.igu.main.Application.run(Application.java)
  180. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  181. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  182. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  183. at java.lang.reflect.Method.invoke(Method.java:483)
  184. at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
  185. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
  186. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  187. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  188. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
  189. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
  190. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  191. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  192. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  193. at java.lang.reflect.Method.invoke(Method.java:483)
  194. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
  195. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
  196. at org.eclipse.equinox.launcher.Main.run(Main.java:1438)


It also seems that synchronizing shared prototypes is not properly managed. I have difficulties to discard changes and unlock Screens. Even after a restart of JIM.


I can supply more logs if you want.


I would be surprised to be the only one facing those issues.


Please, do your best to fix all that.


Thank you.

Replies (2)
photo
1

Hi Laurent,


This is a very unusual bug. We suggest reinstalling Justinmind as a preliminary step. You can reinstall from here: justinmind.com/download


If you're still seeing this after reinstalling, please see the proposed solution below:1. Close Justinmind application.

2. Open a new Hard drive search window and navigate to your user folder.

3. Delete the "Justinmind" folder.

4. Restart the application.

Best,

Danielle

photo
1

Ok, I have removed my justinmind user directory and it seems to be sufficient to avoid "Widget is disposed" errors. After that I also have uninstalled completely JIM, downloaded it again and reinstalled it (after a restart of my computer). Until now, it works fine. Btw, if I take a look into the logs files, I can still see lots of Exceptions. Cf. attached files.


Those errors are not reported into the JIM UI so this is not blocking but it's not reassuring for product reliability...


I'll continue to watch the unlock, discard and synchronization problems.


thx

photo
1

Hi Laurent,


Our development team is analysing the logs. We'll get back to you assap.


Best,


Sonia Durán

photo
1

Unfortunately, "Widget is disposed" errors have came back. It can be relative to the modification of my preferences or more likely to the reinstallation of the Widget libraries. That's the only things I've done since.

I don't know which one of the libraries may cause these errors, I had installed lots of them. Moreover it has been very very difficult to deactivate or remove them. Currently I've removed each one of them except Font Awesome that is unremovable. It looks like to disappear and after a restart of JIM it reappears and it can't be reactivated (cf. attached picture)...


Just for information, here is the list of the widget libraries I've been installed and finally removed from my prototype:

  • charts-widgets.jpl
  • facebook-library.jpl
  • FontAwesome.jpl
  • oracle-adf-faces.jpl
  • sap-widgets.jpl
  • sketching-shapes.jpl
  • sketching-widgets.jpl
  • twitter-bootstrap.jpl
  • web-widgets-library.jpl
  • Windows 10 Icons.jpl
  • Windows 10 Light.jpl

photo
photo
2

I installed the latest version (7.9.2) and I confirm it looks good.

Leave a Comment
 
Attach a file