[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Andraschko reassigned DELTASPIKE-1355:
---------------------------------------------

    Assignee: Thomas Andraschko

> counfByXXX failed with deltaspike and thorntail arquillian test
> ---------------------------------------------------------------
>
>                 Key: DELTASPIKE-1355
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1355
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Data-Module
>    Affects Versions: 1.8.2
>         Environment: Windows 10 / Maven 3.5 / Java 8 
>            Reporter: Sylvain Bonnemaison
>            Assignee: Thomas Andraschko
>            Priority: Major
>
> The following Repository class is defined :
> {{@Repository public interface UserRepository extends EntityRepository<User, 
> Long> {}}
>  {{   long countByUid(String uid);}}
>  {{   Stream<User> findByUid(String uid);}}
>  {{   ...}}
>  {{}}}
> {{Stackstrace :}}
> {{Caused by: org.apache.deltaspike.data.api.QueryInvocationException: Failed 
> calling Repository: 
> [Repository=com.timm.demo.thorntail.deltaspike.persistence.UserRepository,entity=com.timm.demo.thorntail.deltaspike.entity.User,method=countByUid,exception=class
>  org.apache.deltaspike.data.api.QueryInvocationException,message=Failed 
> calling Repository: 
> [Repository=com.timm.demo.thorntail.deltaspike.persistence.UserRepository,entity=com.timm.demo.thorntail.deltaspike.entity.User,method=countByUid,
>  at 
> org.apache.deltaspike.data.impl.handler.QueryHandler.process(QueryHandler.java:163)
>  at 
> org.apache.deltaspike.data.impl.handler.QueryHandler.invoke(QueryHandler.java:130)
>  at 
> org.apache.deltaspike.data.impl.handler.QueryHandler$Proxy$_$$_WeldClientProxy.invoke(Unknown
>  Source) at 
> org.apache.deltaspike.proxy.spi.invocation.DeltaSpikeProxyInvocationHandler.proceed(DeltaSpikeProxyInvocationHandler.java:97)
>  at 
> org.apache.deltaspike.proxy.spi.invocation.DeltaSpikeProxyInvocationHandler.invoke(DeltaSpikeProxyInvocationHandler.java:78)
>  at 
> org.apache.deltaspike.proxy.spi.invocation.DeltaSpikeProxyInvocationHandler$Proxy$_$$_WeldClientProxy.invoke(Unknown
>  Source) at 
> com.timm.demo.thorntail.deltaspike.persistence.UserRepository$$DSPartialBeanProxy.countByUid(Unknown
>  Source) ... 46 more Caused by: 
> org.apache.deltaspike.data.api.QueryInvocationException: Failed calling 
> Repository: 
> [Repository=com.timm.demo.thorntail.deltaspike.persistence.UserRepository,entity=com.timm.demo.thorntail.deltaspike.entity.User,method=countByUid,
>  at 
> org.apache.deltaspike.data.impl.builder.DelegateQueryBuilder.execute(DelegateQueryBuilder.java:85)
>  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)}}
> The findByXXX method works fine.
> Source code is on GitHub : [https://github.com/ruddy32/thorntail-deltaspike].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to