This is a migrated thread and some comments may be shown as answers.

antlr.MismatchedTokenException occurred

1 Answer 336 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Urs
Top achievements
Rank 2
Urs asked on 13 Dec 2010, 09:28 AM
Dear all

When I break on all Exceptions I get following exception when executing an OQL statement.
The Statements finally executes anyway and is getting data also. Where does the exception come from?

antlr.MismatchedTokenException occurred
  Message=expecting "right parenthesis", found '=='
  Source=Telerik.OpenAccess.Runtime
  column=82
  line=1
  expecting=8
  upper=0
  StackTrace:
       bei antlr.Parser.match(Int32 t)
  InnerException:


OQL was:
SELECT * FROM TEmployeeExtent AS TEmployee WHERE 1=1  AND ((TEmployee.dtExitDate = nil) OR (TEmployee.dtExitDate >= $1))

Version of OpenAccess:
V2010.02

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Thomas
Telerik team
answered on 13 Dec 2010, 04:00 PM
Hello Urs,

this comes from the internal usage of the ANTLR v2 generated  OQL parser. This implementation uses exceptions for it's own internal backtracking purposes.

Kind regards,
Thomas
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
General Discussions
Asked by
Urs
Top achievements
Rank 2
Answers by
Thomas
Telerik team
Share this question
or