facebook

CodeMix error opening any .css file

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

    davidhedley
    Participant

    Following a recent CodeMix update I am now seeing the attached whenever I try to open a .css file.

    Relevant bits from the workspace log below:

    !ENTRY com.genuitec.eclipse.code.server 4 0 2019-06-27 08:19:10.677
    !MESSAGE <null>
    !STACK 0
    java.lang.reflect.InvocationTargetException
    	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 com.genuitec.eclipse.code.server.projects.ProjectsResourceServlet.checkInjectionFor(ProjectsResourceServlet.java:264)
    	at com.genuitec.eclipse.server.ui.editor.preview.PreviewController$9.run(PreviewController.java:1143)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.genuitec.eclipse.code.livepreview.common.LPMappingService
    	at com.genuitec.eclipse.code.livepreview.deploy.LivePreviewLocalServerDelegate.injectIfNeeded(LivePreviewLocalServerDelegate.java:46)
    	... 7 more
    Root exception:
    java.lang.NoClassDefFoundError: Could not initialize class com.genuitec.eclipse.code.livepreview.common.LPMappingService
    	at com.genuitec.eclipse.code.livepreview.deploy.LivePreviewLocalServerDelegate.injectIfNeeded(LivePreviewLocalServerDelegate.java:46)
    	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 com.genuitec.eclipse.code.server.projects.ProjectsResourceServlet.checkInjectionFor(ProjectsResourceServlet.java:264)
    	at com.genuitec.eclipse.server.ui.editor.preview.PreviewController$9.run(PreviewController.java:1143)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    
    !ENTRY org.eclipse.ui.workbench 4 2 2019-06-27 08:19:57.975
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NoClassDefFoundError: Could not initialize class com.genuitec.eclipse.code.livepreview.common.LPMappingService
    	at com.genuitec.eclipse.code.livepreview.common.LPCodeEditorHandler.editorActivated(LPCodeEditorHandler.java:208)
    	at com.genuitec.eclipse.code.livepreview.listeners.LPEditorManager.lambda$0(LPEditorManager.java:35)
    	at java.util.ArrayList.forEach(Unknown Source)
    	at com.genuitec.eclipse.code.livepreview.listeners.LPEditorManager.partActivated(LPEditorManager.java:35)
    	at org.eclipse.ui.internal.PartService$6.run(PartService.java:146)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    	at org.eclipse.ui.internal.PartService.partActivated(PartService.java:143)
    	at org.eclipse.ui.internal.WorkbenchPage$4.run(WorkbenchPage.java:5083)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:5080)
    	at org.eclipse.ui.internal.WorkbenchPage.access$3(WorkbenchPage.java:5056)
    	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:214)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:253)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:250)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:775)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:684)
    	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:679)
    	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3325)
    	at org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.java:3216)
    	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3213)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3177)
    	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3167)
    	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:570)
    	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:525)
    	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:363)
    	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:170)
    	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:287)
    	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:252)
    	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
    	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:252)
    	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:382)
    	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:554)
    	at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:49)
    	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:853)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    	at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47)
    	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176)
    	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:850)
    	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1165)
    	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:277)
    	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
    	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:312)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
    	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    	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:400)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    	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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
    
    !ENTRY com.genuitec.eclipse.code.server 4 0 2019-06-27 08:19:58.079
    !MESSAGE <null>
    !STACK 0
    java.lang.reflect.InvocationTargetException
    	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 com.genuitec.eclipse.code.server.projects.ProjectsResourceServlet.checkInjectionFor(ProjectsResourceServlet.java:264)
    	at com.genuitec.eclipse.server.ui.editor.preview.PreviewController$9.run(PreviewController.java:1143)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.genuitec.eclipse.code.livepreview.common.LPMappingService
    	at com.genuitec.eclipse.code.livepreview.deploy.LivePreviewLocalServerDelegate.injectIfNeeded(LivePreviewLocalServerDelegate.java:46)
    	... 7 more
    Root exception:
    java.lang.NoClassDefFoundError: Could not initialize class com.genuitec.eclipse.code.livepreview.common.LPMappingService
    	at com.genuitec.eclipse.code.livepreview.deploy.LivePreviewLocalServerDelegate.injectIfNeeded(LivePreviewLocalServerDelegate.java:46)
    	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 com.genuitec.eclipse.code.server.projects.ProjectsResourceServlet.checkInjectionFor(ProjectsResourceServlet.java:264)
    	at com.genuitec.eclipse.server.ui.editor.preview.PreviewController$9.run(PreviewController.java:1143)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    
    Attachments:
    You must be logged in to view attached files.
    #616930 Reply

    support-swapna
    Moderator

    David,

    Sorry that you are seeing this problem. Thank you for the stacktrace.

    Can you please clarify if this problem is specific to CSS files in a particular project or all CSS files in the workspace?
    Please share with us the full workspace log which is located at workspace dir/.metadata/log (save it as .txt and attach it here).

    Till we figure it out, you can exclude the CSS files from Live Preview as a workaround. Go to Window > Preferences > CodeMix > Miscellaneous > Live Preview > Includes/Excludes. Remove the css entry from the Includes list to turn off Live Preview for CSS files.

    Apologies for inconvenience caused. Thank you for reporting it.

    –Swapna
    Genuitec Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: CodeMix error opening any .css file

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