net.sf.jpasecurity.jpql.parser.TokenMgrError: Lexical error at line 1, column 203.  Encountered: "!" (33), after : ""

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 jpasecurity by nurquiza
, 1 year ago
Lexical error at line 1, column 203Encountered: "!" (33), after : ""
net.sf.jpasecurity.jpql.parser.TokenMgrError: Lexical error at line 1, column 203.  Encountered: "!" (33), after : ""
at net.sf.jpasecurity.jpql.parser.JpqlParserTokenManager.getNextToken(JpqlParserTokenManager.java:2115)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_scan_token(JpqlParser.java:11451)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_112(JpqlParser.java:9690)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_33(JpqlParser.java:9770)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_214(JpqlParser.java:11088)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_76(JpqlParser.java:11077)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3_69(JpqlParser.java:11178)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_244(JpqlParser.java:11155)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_98(JpqlParser.java:11193)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_27(JpqlParser.java:11223)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_364(JpqlParser.java:11244)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_324(JpqlParser.java:11264)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_220(JpqlParser.java:11304)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_79(JpqlParser.java:11296)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3_72(JpqlParser.java:11123)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_244(JpqlParser.java:11161)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_98(JpqlParser.java:11193)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_27(JpqlParser.java:11223)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_65(JpqlParser.java:7961)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_130(JpqlParser.java:8329)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_44(JpqlParser.java:8309)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_121(JpqlParser.java:9118)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_42(JpqlParser.java:9127)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_118(JpqlParser.java:9178)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_41(JpqlParser.java:9170)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_252(JpqlParser.java:8934)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_117(JpqlParser.java:9193)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_40(JpqlParser.java:9204)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3_28(JpqlParser.java:9078)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_40(JpqlParser.java:9208)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3_28(JpqlParser.java:9078)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_40(JpqlParser.java:9208)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_39(JpqlParser.java:9229)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_36(JpqlParser.java:9336)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_357(JpqlParser.java:9262)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_228(JpqlParser.java:9271)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_161(JpqlParser.java:8630)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_55(JpqlParser.java:8864)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_140(JpqlParser.java:8889)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_47(JpqlParser.java:8881)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_124(JpqlParser.java:9103)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3R_42(JpqlParser.java:9133)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_3_30(JpqlParser.java:9093)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jj_2_30(JpqlParser.java:7310)
at net.sf.jpasecurity.jpql.parser.JpqlParser.conditionalPrimary(JpqlParser.java:2407)
at net.sf.jpasecurity.jpql.parser.JpqlParser.conditionalFactor(JpqlParser.java:2396)
at net.sf.jpasecurity.jpql.parser.JpqlParser.conditionalTerm(JpqlParser.java:2257)
at net.sf.jpasecurity.jpql.parser.JpqlParser.conditionalExpression(JpqlParser.java:2219)
at net.sf.jpasecurity.jpql.parser.JpqlParser.whereClause(JpqlParser.java:2002)
at net.sf.jpasecurity.jpql.parser.JpqlParser.jpqlAccessRule(JpqlParser.java:153)
at net.sf.jpasecurity.jpql.parser.JpqlParser.parseRule(JpqlParser.java:19)
at net.sf.jpasecurity.security.rules.AbstractAccessRulesProvider.compileRules(AbstractAccessRulesProvider.java:102)
at net.sf.jpasecurity.security.rules.XmlAccessRulesProvider.initializeAccessRules(XmlAccessRulesProvider.java:52)
at net.sf.jpasecurity.security.rules.AbstractAccessRulesProvider.getAccessRules(AbstractAccessRulesProvider.java:69)
at net.sf.jpasecurity.security.rules.DefaultAccessRulesProvider.getAccessRules(DefaultAccessRulesProvider.java:42)
at net.sf.jpasecurity.persistence.EntityManagerFactoryInvocationHandler.createSecureEntityManager(EntityManagerFactoryInvocationHandler.java:104)
at net.sf.jpasecurity.persistence.EntityManagerFactoryInvocationHandler.createEntityManager(EntityManagerFactoryInvocationHandler.java:84)
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 net.sf.jpasecurity.util.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:55)
at net.sf.jpasecurity.util.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:48)
at org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:400)
at org.springframework.test.context.transaction.TransactionalTestExecutionListener$TransactionContext.startTransaction(TransactionalTestExecutionListener.java:507)
at org.springframework.test.context.transaction.TransactionalTestExecutionListener.startNewTransaction(TransactionalTestExecutionListener.java:269)
at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:162)
at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:374)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

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.