org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?>

Spring JIRA | Kristoffer Peterhänsel | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    The current Spring Data Cassandra documentation section about queries seems to be a direct copy from some other Spring Data project. Specifically it claims that you can define query methods on repositories. But that will specifically throw an exception in the CassandraQueryLookupStrategy. And it also mentions Java 8 Stream support. But trying to create a find method that produces a Stream will fail with an exception like this: {noformat} org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?> at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:313) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:195) at org.springframework.data.cassandra.repository.query.AbstractCassandraQuery.execute(AbstractCassandraQuery.java:145) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) {noformat} Seems it would be better with no documentation than something that is really misleading

    Spring JIRA | 2 years ago | Kristoffer Peterhänsel
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?>
  2. 0

    The current Spring Data Cassandra documentation section about queries seems to be a direct copy from some other Spring Data project. Specifically it claims that you can define query methods on repositories. But that will specifically throw an exception in the CassandraQueryLookupStrategy. And it also mentions Java 8 Stream support. But trying to create a find method that produces a Stream will fail with an exception like this: {noformat} org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?> at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:313) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:195) at org.springframework.data.cassandra.repository.query.AbstractCassandraQuery.execute(AbstractCassandraQuery.java:145) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) {noformat} Seems it would be better with no documentation than something that is really misleading

    Spring JIRA | 2 years ago | Kristoffer Peterhänsel
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?>
  3. 0

    Spring-data-cassandra Java8 Stream support

    Stack Overflow | 2 years ago | JordiJansen
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java - Spring-data-cassandra Java8 Stream support - Stack Overflow

    80bola.com | 2 years ago
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?>
  6. 0

    GitHub comment 1#272110320

    GitHub | 4 months ago | hidetarou2013
    org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [com.datastax.driver.core.ArrayBackedResultSet$SinglePage] to type [java.util.stream.Stream<?>]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.core.convert.ConverterNotFoundException

    No converter found capable of converting from type com.datastax.driver.core.ArrayBackedResultSet$SinglePage to type java.util.stream.Stream<?>

    at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound()
  2. Spring Core
    GenericConversionService.convert
    1. org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:313)
    2. org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:195)
    2 frames
  3. Spring Data Cassandra - Core
    AbstractCassandraQuery.execute
    1. org.springframework.data.cassandra.repository.query.AbstractCassandraQuery.execute(AbstractCassandraQuery.java:145)
    1 frame
  4. Spring Data Core
    RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
    1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    2 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    1 frame
  6. org.springframework.data
    DefaultMethodInvokingMethodInterceptor.invoke
    1. org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)
    1 frame
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    2 frames