- This topic has 10 replies, 3 voices, and was last updated 5 years, 5 months ago by support-swapna.
-
AuthorPosts
-
luc1ParticipantHello,
Live preview doesn’t work, getting a null pointer exception in the logs.
Tried different file types, same issue.Eclipse version is:
Eclipse Java EE IDE for Web Developers.
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
OS: Windows 8.1, v.6.3, x86_64 / win32
Java version: 1.8.0_66Log:
…
!ENTRY org.eclipse.ui 4 0 2019-06-17 09:00:54.895
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.server.ui.editor.preview.DragResizeListener.<init>(DragResizeListener.java:23)
at com.genuitec.eclipse.server.ui.editor.preview.PreviewBrowser.checkResizeListener(PreviewBrowser.java:410)
at com.genuitec.eclipse.server.ui.editor.preview.PreviewBrowser.verifyPositionNow(PreviewBrowser.java:332)
at com.genuitec.eclipse.server.ui.editor.preview.PreviewBrowser.lambda$0(PreviewBrowser.java:228)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3933)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3564)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:628)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
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:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)Regards
Luc
support-swapnaModeratorLuc,
Sorry that you are seeing this problem with Live Preview.
Thank you for the stacktrace and the details.Can you please check if Live Preview works for .md files (like README.md)? Also please share with us the workspace log file which is located at workspace dir/.metadata/.log (save it as .txt file and attach it here) to help us investigate further.
Apologies for inconvenience caused. Thank you for reporting it.
–Swapna
Genuitec Support
luc1ParticipantHi,
Yes, same problem with markdown (.md) files, actually the reason I want to use the live preview.
See attached the workspace log file.Attachments:
You must be logged in to view attached files.
support-swapnaModeratorLuc,
Thank you for the log. The dev team is looking at this issue.
We will keep you posted about the fix soon.–Swapna
Genuitec Support
timwebbKeymasterLuc,
Thank you again for reporting this issue. We’ve made a prerelease build that should fix the exception you are hitting in Live Preview. It would be great to have you try this to confirm this fixes the issue for you — unfortunately, it’s been a bit hard to reproduce the exact break you see but from the details provided, we are fairly confident this build will work for you.
Pre-release is now available:
To use the preview release, follow these steps:
- Add the following line to Eclipse/configuration/config.ini
com.genuitec.code.manifest.url=http\://www.genuitec.com/updates/codemix/prerelease/codemix.json
- Restart Eclipse
- An update will be detected as shown bottom left — when the update is applied, click the Restart icon to reload Eclipse with the prerelease version of CodeMix
luc1ParticipantHello Tim,
Sadly this doesn’t fix the issue, I see the new codemix version nr displayed but preview not working.
We had a similar problem with a collegue, he did a complete fresh install of eclipse (same version I use) + codemix 3, then the live preview does work. So I suppose something in the codemix 3 upgrade procedure didn’t go as expected.
If I find the time I’ll do the same, fresh install eclipse + codemix 3.Regards
Luc
timwebbKeymasterCould you please provide the latest log you see / the current exception? I believe it should be something different. It might give us more of a clue of what is wrong/going on.
Tim
luc1ParticipantSee attachment for the workspace log.
Attachments:
You must be logged in to view attached files.
timwebbKeymasterExcellent, this log has exactly what we need to understand more.
If you have 5 minutes, would you be able to join a quick Live Chat? Help > CodeMix > Live Chat
If not, we can give you a flag to turn off using the more advanced Chromium browser and use the fallback IE default browser in Eclipse.
support-swapnaModeratorLuc,
We released CodeMix 2019.6.19 which has the fix for the Live Preview problems reported by you.
Please update via Help > Check for Updates and let us know how if you see any issues.Thank you for once again for reporting the issue.
–Swapna
Genuitec Support - Add the following line to Eclipse/configuration/config.ini
-
AuthorPosts