java.lang.RuntimeException: Cannot extract single value from Iterable with more than one elements.

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 Spring JIRA by Timmy Storms, 1 year ago
Cannot extract single value from Iterable with more than one elements.
via Spring JIRA by Timmy Storms, 1 year ago
Cannot extract single value from Iterable with more than one elements.
via Stack Overflow by Nolwenn Stephan
, 2 years ago
Cannot extract single value from Iterable with more than one elements.
via Google Groups by Gwendal Mousset, 4 months ago
Cannot extract single value from Iterable with more than one elements.
java.lang.RuntimeException: Cannot extract single value from Iterable with more than one elements.
at org.springframework.data.neo4j.conversion.DefaultConverter.extractSingle(DefaultConverter.java:60)
at org.springframework.data.neo4j.conversion.DefaultConverter.extractValue(DefaultConverter.java:51)
at org.springframework.data.neo4j.conversion.DefaultConverter.convert(DefaultConverter.java:40)
at org.springframework.data.neo4j.support.conversion.EntityResultConverter.convert(EntityResultConverter.java:99)
at org.springframework.data.neo4j.conversion.QueryResultBuilder$1.convert(QueryResultBuilder.java:102)
at org.springframework.data.neo4j.conversion.QueryResultBuilder$1.access$300(QueryResultBuilder.java:81)
at org.neo4j.helpers.collection.IteratorWrapper.next(IteratorWrapper.java:47)
at org.neo4j.helpers.collection.IteratorUtil.addToCollection(IteratorUtil.java:353)
at org.springframework.data.neo4j.conversion.ContainerConverter.toContainer(ContainerConverter.java:34)
at org.springframework.data.neo4j.conversion.QueryResultBuilder$1.as(QueryResultBuilder.java:127)
at org.springframework.data.neo4j.repository.AbstractGraphRepository.query(AbstractGraphRepository.java:442)
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 org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:333)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.