beaver.Parser$Exception: Cannot recover from the syntax error

Appcelerator JIRA | Ingo Muschenetz | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    While following the steps for APSTUD-2564, I saw this in my log file when I started typing "body": {code} (Build 3.0.3.qualifier) [ERROR] Cannot recover from the syntax error beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.css.parsing.CSSParser.parse(CSSParser.java:131) at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:231) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:213) at com.aptana.editor.common.AbstractThemeableEditor.getAST(AbstractThemeableEditor.java:1084) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy$2.run(CommonReconcilingStrategy.java:253) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) 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:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) (Build 3.0.3.qualifier) [ERROR] Cannot recover from the syntax error org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:126) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83) at com.aptana.editor.css.contentassist.index.CSSFileIndexingParticipant.index(CSSFileIndexingParticipant.java:42) at com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:306) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:238) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:208) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:396) at com.aptana.editor.common.text.reconciler.CompositeReconcilingStrategy.fullReconcile(CompositeReconcilingStrategy.java:125) at com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) Caused by: beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.css.parsing.CSSParser.parse(CSSParser.java:131) at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:117) ... 10 more ckgroundThread.run(AbstractReconciler.java:206) {code} Those error messages aren't necessary.

    Appcelerator JIRA | 5 years ago | Ingo Muschenetz
    beaver.Parser$Exception: Cannot recover from the syntax error

    1 unregistered visitors

    Root Cause Analysis

    1. beaver.Parser$Exception

      Cannot recover from the syntax error

      at beaver.Parser.recoverFromError()
    2. beaver
      Parser.parse
      1. beaver.Parser.recoverFromError(Parser.java:590)
      2. beaver.Parser.parse(Parser.java:487)
      3. beaver.Parser.parse(Parser.java:428)
      3 frames
    3. com.aptana.editor
      CSSParser.parse
      1. com.aptana.editor.css.parsing.CSSParser.parse(CSSParser.java:131)
      1 frame
    4. com.aptana.parsing
      ParserPoolFactory.parse
      1. com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286)
      2. com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244)
      3. com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:231)
      4. com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:213)
      4 frames
    5. com.aptana.editor
      CommonReconcilingStrategy$2.run
      1. com.aptana.editor.common.AbstractThemeableEditor.getAST(AbstractThemeableEditor.java:1084)
      2. com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy$2.run(CommonReconcilingStrategy.java:253)
      2 frames
    6. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612)
      4 frames
    7. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
      4 frames
    8. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    9. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
      1 frame
    10. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    11. com.appcelerator.titanium
      IDEApplication.start
      1. com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125)
      1 frame
    12. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    13. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      4 frames