facebook

Null pointer exception in live preview (preview browser)

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #616133 Reply

    luc1
    Participant

    Hello,

    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_66

    Log:

    !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

    #616139 Reply

    support-swapna
    Moderator

    Luc,

    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

    #616145 Reply

    luc1
    Participant

    Hi,

    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.
    #616159 Reply

    support-swapna
    Moderator

    Luc,

    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

    #616184 Reply

    timwebb
    Keymaster

    Luc,

    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:

    1. Add the following line to Eclipse/configuration/config.ini
      com.genuitec.code.manifest.url=http\://www.genuitec.com/updates/codemix/prerelease/codemix.json
    2. Restart Eclipse
    3. 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
    #616211 Reply

    luc1
    Participant

    Hello 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

    #616233 Reply

    timwebb
    Keymaster

    Could 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

    #616238 Reply

    luc1
    Participant

    See attachment for the workspace log.

    Attachments:
    You must be logged in to view attached files.
    #616241 Reply

    timwebb
    Keymaster

    Excellent, 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.

    #616330 Reply

    support-swapna
    Moderator

    Luc,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Null pointer exception in live preview (preview browser)

You must be logged in to post in the forum log in