org.antlr.v4.runtime.misc.ParseCancellationException

line 1:0 no viable alternative at input '<EOF>'

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via GitHub by koppor
    , 10 months ago
    line 1:0 no viable alternative at input '<EOF>'
  • via GitHub by koppor
    , 10 months ago
    line 1:0 no viable alternative at input '<EOF>'
  • offending symbol: [@2512,18234:18234=')',<58>,236:44]line 236:44 extraneous input ')' expecting {'++', '--'}, e=null
  • Stack trace

    • org.antlr.v4.runtime.misc.ParseCancellationException: line 1:0 no viable alternative at input '<EOF>' at net.sf.jabref.model.search.rules.GrammarBasedSearchRule$ThrowingErrorListener.syntaxError(GrammarBasedSearchRule.java:50)[main/:?] at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:65)[antlr4-runtime-4.5.3.jar:4.5.3] at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:564)[antlr4-runtime-4.5.3.jar:4.5.3] at org.antlr.v4.runtime.DefaultErrorStrategy.reportNoViableAlternative(DefaultErrorStrategy.java:308)[antlr4-runtime-4.5.3.jar:4.5.3] at org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:145)[antlr4-runtime-4.5.3.jar:4.5.3] at net.sf.jabref.search.SearchParser.expression(SearchParser.java:283)[main/:?] at net.sf.jabref.search.SearchParser.start(SearchParser.java:108)[main/:?] at net.sf.jabref.model.search.rules.GrammarBasedSearchRule.init(GrammarBasedSearchRule.java:91)[main/:?] at net.sf.jabref.model.search.rules.GrammarBasedSearchRule.validateSearchStrings(GrammarBasedSearchRule.java:108)[main/:?] at net.sf.jabref.model.search.rules.SearchRules.getSearchRuleByQuery(SearchRules.java:12)[main/:?] at net.sf.jabref.logic.search.SearchQuery.<init>(SearchQuery.java:29)[main/:?] at net.sf.jabref.gui.search.GlobalSearchBar.getSearchQuery(GlobalSearchBar.java:348)[main/:?] at net.sf.jabref.gui.search.GlobalSearchBar.clearSearch(GlobalSearchBar.java:271)[main/:?] at net.sf.jabref.gui.search.GlobalSearchBar.performSearch(GlobalSearchBar.java:304)[main/:?] at net.sf.jabref.gui.JabRefFrame.lambda$init$0(JabRefFrame.java:648)[main/:?] at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:416)[?:1.8.0_102] at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:270)[?:1.8.0_102] at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:132)[?:1.8.0_102] at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:67)[?:1.8.0_102] at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:616)[?:1.8.0_102] at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:591)[?:1.8.0_102] at javax.swing.JTabbedPane.insertTab(JTabbedPane.java:731)[?:1.8.0_102] at javax.swing.JTabbedPane.addTab(JTabbedPane.java:798)[?:1.8.0_102] at javax.swing.JTabbedPane.add(JTabbedPane.java:835)[?:1.8.0_102] at net.sf.jabref.gui.JabRefFrame.addTab(JabRefFrame.java:1646)[main/:?] at net.sf.jabref.gui.JabRefFrame.addTab(JabRefFrame.java:1663)[main/:?] at net.sf.jabref.gui.JabRefFrame.addParserResult(JabRefFrame.java:1386)[main/:?] at net.sf.jabref.JabRefGUI.openWindow(JabRefGUI.java:126)[main/:?] at net.sf.jabref.JabRefGUI.<init>(JabRefGUI.java:63)[main/:?] at net.sf.jabref.JabRefMain.lambda$start$1(JabRefMain.java:116)[main/:?] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)[?:1.8.0_102] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)[?:1.8.0_102] at java.awt.EventQueue.access$500(EventQueue.java:97)[?:1.8.0_102] at java.awt.EventQueue$3.run(EventQueue.java:709)[?:1.8.0_102] at java.awt.EventQueue$3.run(EventQueue.java:703)[?:1.8.0_102] at java.security.AccessController.doPrivileged(Native Method)[?:1.8.0_102] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)[?:1.8.0_102] at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)[?:1.8.0_102] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)[?:1.8.0_102] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)[?:1.8.0_102] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)[?:1.8.0_102] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)[?:1.8.0_102] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)[?:1.8.0_102] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)[?:1.8.0_102]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.