Hello,
recently (not sure if 2.2 only or before already) I have a strange problem when showing dialogs. I have a tab panel that shows all kinds of forms. Some of these my have more tab panels. In some of those there is a button that shows a dialog.
That dialog shows correctly (something like “Do you really want to delete this record?”), but in the background Servoy switches to design view. When I click OK in the dialog, I see the design view of the form, but I don’t seem to be in design view really. At least I have to click the design button twice to come back to browse mode.
One other time, I saw the spinning Servoy logo when showing the dialog.
Once, I found this in the log. But although I can demonstrate the above behaviour, I cannot produce this log entry again, so it might be some other error. So basically, everytime I show a dialog with the dialog plugin, I have this problem.
java.lang.NullPointerExceptionjava.lang.NullPointerException
at javax.swing.SwingUtilities.computeIntersection(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.handleBreakpointHit(Unknown Source)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2179)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.cr(Unknown Source)
at com.servoy.j2db.dataui.l.cY(Unknown Source)
at com.servoy.j2db.dataui.l.getComponentCount(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at java.awt.Component.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Dialog.addNotify(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at javax.swing.JOptionPane.createDialog(Unknown Source)
at javax.swing.JOptionPane.showOptionDialog(Unknown Source)
at com.servoy.r2.plugins.dialog.DialogProvider.js_showDialogEx(DialogProvider.java:68)
at com.servoy.r2.plugins.dialog.DialogProvider.js_showErrorDialog(DialogProvider.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:289)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1242)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1242)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.access$14(Unknown Source)
at com.servoy.j2db.develop.debugger.k$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.ArrayIndexOutOfBoundsException: No such child: 0java.lang.ArrayIndexOutOfBoundsException: No such child: 0
at java.awt.Container.getComponent(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.handleBreakpointHit(Unknown Source)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2179)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.cr(Unknown Source)
at com.servoy.j2db.dataui.l.cY(Unknown Source)
at com.servoy.j2db.dataui.l.getComponentCount(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at java.awt.Component.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Dialog.addNotify(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at com.servoy.j2db.util.gui.g.a(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.reportDetailMessage(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.reportError(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.reportError(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.cr(Unknown Source)
at com.servoy.j2db.dataui.l.cY(Unknown Source)
at com.servoy.j2db.dataui.l.getComponentCount(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at sun.awt.windows.WPanelPeer.restack(Unknown Source)
at java.awt.Component.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Dialog.addNotify(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at javax.swing.JOptionPane.createDialog(Unknown Source)
at javax.swing.JOptionPane.showOptionDialog(Unknown Source)
at com.servoy.r2.plugins.dialog.DialogProvider.js_showDialogEx(DialogProvider.java:68)
at com.servoy.r2.plugins.dialog.DialogProvider.js_showErrorDialog(DialogProvider.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:289)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1242)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1242)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.access$14(Unknown Source)
at com.servoy.j2db.develop.debugger.k$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)