org.antlr.v4.runtime.misc.ParseCancellationException: line 1:0 no viable alternative at input '<EOF>'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.