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 | 1 year ago
  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 | 1 year 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 | 1 year 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 | 1 year 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 | 1 year 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

    spring converter not registering

    Stack Overflow | 5 months ago | Dortmds
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read an object of type class com.mapp.database.entity.Customer from the request!; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1034E:(pos 0): A problem occurred whilst attempting to set the property 'serviceDate': Type conversion failure

  1. shiva768 1 times, last 12 months ago
9 unregistered visitors
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