[
https://issues.apache.org/jira/browse/DELTASPIKE-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16861050#comment-16861050
]
Thomas Andraschko commented on DELTASPIKE-1381:
-----------------------------------------------
Can you provide the full stacktrace with caused by?
> Method Expressions not validated at deployment time
> ---------------------------------------------------
>
> Key: DELTASPIKE-1381
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1381
> Project: DeltaSpike
> Issue Type: Bug
> Components: Data-Module
> Affects Versions: 1.9.0
> Environment: JDK 8
> Postgres 10
> Hibernate 5.3.6
> WildFly 13.0.0
> Reporter: Ehsan Zaery Moghaddam
> Priority: Minor
>
> In the documentation it's explicitly mentioned that method expressions are
> validated upon deployment to see if there is any typo in them:
> *_Note that DeltaSpike will validate those expressions during startup, so you
> will notice early in case you have a typo in those expressions_*.
>
> But seems this validation doesn't happen during deployment and the code fails
> when the given method is being called. In the following example, the
> "LessThan" comparator is misspelled and the stack trace of the runtime error
> is as below:
>
> *Caused by: org.apache.deltaspike.data.api.QueryInvocationException: Failed
> calling Repository:
> [Repository=com.one.paymentgateway.persistence.repository.PendingCaptureRepository,entity=com.one.paymentgateway.persistence.entity.PendingCaptureEntity,method=findAnyByPendingTimeLesThanEqualsOrderByPendingTime,*
> at
> org.apache.deltaspike.data.impl.builder.DelegateQueryBuilder.execute(DelegateQueryBuilder.java:83)
> at
> org.apache.deltaspike.data.impl.builder.QueryBuilder.executeQuery(QueryBuilder.java:57)
> at
> org.apache.deltaspike.data.impl.builder.DelegateQueryBuilder$Proxy$_$$_WeldClientProxy.executeQuery(Unknown
> Source)
> at
> org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner.executeNonTransactional(TransactionalQueryRunner.java:62)
> at
> org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner.executeQuery(TransactionalQueryRunner.java:57)
> at
> org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner$Proxy$_$$_WeldClientProxy.executeQuery(Unknown
> Source)
> at
> org.apache.deltaspike.data.impl.handler.QueryHandler.process(QueryHandler.java:151)
> ... 161 more
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)