java.util.NoSuchElementException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When using the latest Spring Data JPA 1.0.0.RELEASE, my web project suddenly throws multiple exceptions of the type: {code} java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:350) at org.springframework.data.jpa.repository.query.JpaQueryCreator$ParameterExpressionProvider.next(JpaQueryCreator.java:314) at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:213) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:103) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:50) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:107) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:86) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.createQuery(PartTreeJpaQuery.java:145) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.createQuery(PartTreeJpaQuery.java:78) at org.springframework.data.jpa.repository.query.JpaQueryExecution$CollectionExecution.doExecute(JpaQueryExecution.java:81) at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:55) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:100) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:89) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:343) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.findByFirstname(Unknown Source) at org.springframework.data.jpa.repository.UserRepositoryFinderTests.executesPagingMethodToListCorrectly(UserRepositoryFinderTests.java {code} It happens every 5 seconds because I have a scheduler that polls every 5 seconds. It turns out when calling the a Pageable query multiple times, this exception happens. See http://forum.springsource.org/showthread.php?113201-Spring-Data-JPA-bug Also, I have described this problem at http://forum.springsource.org/showthread.php?113598-Spring-Data-JPA-and-Spring-Data-MongoDB-Integration-Hell Even at debug level I'm not getting any reasons why this happens. But when I revert back to 1.0.0.RC1, everything works normal. No errors. Scheduler runs. Queries work as usual. Even at debug level, I ca
    via by Mark Serrano,
  • When using the latest Spring Data JPA 1.0.0.RELEASE, my web project suddenly throws multiple exceptions of the type: {code} java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:350) at org.springframework.data.jpa.repository.query.JpaQueryCreator$ParameterExpressionProvider.next(JpaQueryCreator.java:314) at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:213) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:103) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:50) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:107) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:86) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.createQuery(PartTreeJpaQuery.java:145) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.createQuery(PartTreeJpaQuery.java:78) at org.springframework.data.jpa.repository.query.JpaQueryExecution$CollectionExecution.doExecute(JpaQueryExecution.java:81) at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:55) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:100) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:89) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:343) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.findByFirstname(Unknown Source) at org.springframework.data.jpa.repository.UserRepositoryFinderTests.executesPagingMethodToListCorrectly(UserRepositoryFinderTests.java {code} It happens every 5 seconds because I have a scheduler that polls every 5 seconds. It turns out when calling the a Pageable query multiple times, this exception happens. See http://forum.springsource.org/showthread.php?113201-Spring-Data-JPA-bug Also, I have described this problem at http://forum.springsource.org/showthread.php?113598-Spring-Data-JPA-and-Spring-Data-MongoDB-Integration-Hell Even at debug level I'm not getting any reasons why this happens. But when I revert back to 1.0.0.RC1, everything works normal. No errors. Scheduler runs. Queries work as usual. Even at debug level, I ca
    via by Mark Serrano,
  • NoSuchElementException in audit
    via GitHub by jshiell
    ,
  • Problem arrayList class
    via Stack Overflow by Blanca Hdez
    ,
  • Facing some problems in sqoop-export?
    via Stack Overflow by bks
    ,
  • How to use autoincrement-IDs in Sqoop export
    via Stack Overflow by thomers
    ,
    • java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:350) at org.springframework.data.jpa.repository.query.JpaQueryCreator$ParameterExpressionProvider.next(JpaQueryCreator.java:314) at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:213) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:103) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:50) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:107) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:86) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.createQuery(PartTreeJpaQuery.java:145) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.createQuery(PartTreeJpaQuery.java:78) at org.springframework.data.jpa.repository.query.JpaQueryExecution$CollectionExecution.doExecute(JpaQueryExecution.java:81) at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:55) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:100) at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:89) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:343) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.findByFirstname(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,