Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1355

counfByXXX failed with deltaspike and thorntail arquillian test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.8.2
    • None
    • Data-Module
    • None
    • Windows 10 / Maven 3.5 / Java 8

    Description

      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.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            ruddy32 Sylvain Bonnemaison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: