Uploaded image for project: 'ZK Studio'
  1. ZK Studio
  2. ZKSTUDIO-43

Visual Editor will be freeze if I close a unsaved ZUL Editor.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 1.0.2
    • None
    • None
    • Eclipse 4.2, XUbuntu 12.04 64Bits, OpenJDK 1.6

      This issue only appear at Eclipse 4.2

      steps for reproducing:

      1. open Visual Editor view
      2. open two ZUL file with ZUL editor
      3. modify one of them without saving
      4. close such modified file and select no save
      5. Eclipse auto jump to another ZUL editor and Visual Editor is freeze with previous screen.
      6. click "refresh" button of Visual Editor will reset it to normal status

      Stack trace from host Eclipse console:

      java.lang.NullPointerException
      	at org.zkoss.eclipse.ve.VeWebAppRuntime.<init>(VeWebAppRuntime.java:41)
      	at org.zkoss.eclipse.ve.VeWebAppRuntime.newInstance(VeWebAppRuntime.java:48)
      	at org.zkoss.eclipse.ve.WebAppFarm.getVeWebApplication(WebAppFarm.java:147)
      	at org.zkoss.eclipse.ve.VeInstructionSender.send(VeInstructionSender.java:80)
      	at org.zkoss.eclipse.ve.model.remote.DirectVEAppController.sendInstruction(DirectVEAppController.java:280)
      	at org.zkoss.eclipse.ve.model.remote.DirectVEAppController.doSelect(DirectVEAppController.java:144)
      	at org.zkoss.eclipse.ve.ui.views.VeViewControl$3.doSuperSelect(VeViewControl.java:178)
      	at org.zkoss.eclipse.ve.ui.views.VeViewControl$3.doSelect(VeViewControl.java:287)
      	at org.zkoss.eclipse.ve.ui.views.VeViewControl$VeViewListener.onSelectionChanged(VeViewControl.java:313)
      	at org.zkoss.eclipse.setting.ZEditorObserver.firePostZulSelectionChanged(ZEditorObserver.java:160)
      	at org.zkoss.eclipse.editor.core.model.ZulContext$1.selectionChanged(ZulContext.java:88)
      	at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2755)
      	at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2703)
      	at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2682)
      	at org.eclipse.swt.widgets.Display.timerProc(Display.java:4121)
      	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
      	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2332)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3177)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      	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:616)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
      

            paowang paowang
            paowang paowang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: