java.lang.IllegalArgumentException: Cannot find a suitable method named [quickstart.ContinuousQueryListenerImpl#handleEvent] - is the method public and has the proper arguments?

Spring JIRA | Dave Roberts | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The Continuous Query Container calls the implementing class twice. Once for the interface method and again for the handleEvent method (which doesn't exist) Attached is a STS project that demonstrates the issue. First start the quickstart.CacheServerApp continuous-query-cache-context.xml Second start the quickstart.CqClientApp then follow the direction on screen. Snippet of expected output: ************************************* This client will update the server cache and its CQ listener will get events for any changes to the CQ result set. CQ events provide the base operation (the change to the server's cache), and the query operation (the change to the CQ's result set). Press Enter to continue. ___________________________________________________________________ CQ looking for entries whose value is 'ClientFirstValue'... Putting key1 with value 'ClientFirstValue' This satisfies the query, so the CqListener will report a query creation event from the server cache. CqListener: Received cq event for entry: key1, ClientFirstValue With BaseOperation = Create and QueryOperation = Create May 4, 2012 11:39:22 AM org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter handleListenerException SEVERE: Listener execution failed java.lang.IllegalArgumentException: Cannot find a suitable method named [quickstart.ContinuousQueryListenerImpl#handleEvent] - is the method public and has the proper arguments? at org.springframework.util.Assert.isTrue(Assert.java:65) at org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter$MethodInvoker.<init>(ContinuousQueryListenerAdapter.java:136) at org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter.onEvent(ContinuousQueryListenerAdapter.java:278) at org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer.executeListener(ContinuousQueryListenerContainer.java:234) at org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer$1.run(ContinuousQueryListenerContainer.java:416) at java.lang.Thread.run(Thread.java:680)

    Spring JIRA | 5 years ago | Dave Roberts
    java.lang.IllegalArgumentException: Cannot find a suitable method named [quickstart.ContinuousQueryListenerImpl#handleEvent] - is the method public and has the proper arguments?
  2. 0

    The Continuous Query Container calls the implementing class twice. Once for the interface method and again for the handleEvent method (which doesn't exist) Attached is a STS project that demonstrates the issue. First start the quickstart.CacheServerApp continuous-query-cache-context.xml Second start the quickstart.CqClientApp then follow the direction on screen. Snippet of expected output: ************************************* This client will update the server cache and its CQ listener will get events for any changes to the CQ result set. CQ events provide the base operation (the change to the server's cache), and the query operation (the change to the CQ's result set). Press Enter to continue. ___________________________________________________________________ CQ looking for entries whose value is 'ClientFirstValue'... Putting key1 with value 'ClientFirstValue' This satisfies the query, so the CqListener will report a query creation event from the server cache. CqListener: Received cq event for entry: key1, ClientFirstValue With BaseOperation = Create and QueryOperation = Create May 4, 2012 11:39:22 AM org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter handleListenerException SEVERE: Listener execution failed java.lang.IllegalArgumentException: Cannot find a suitable method named [quickstart.ContinuousQueryListenerImpl#handleEvent] - is the method public and has the proper arguments? at org.springframework.util.Assert.isTrue(Assert.java:65) at org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter$MethodInvoker.<init>(ContinuousQueryListenerAdapter.java:136) at org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter.onEvent(ContinuousQueryListenerAdapter.java:278) at org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer.executeListener(ContinuousQueryListenerContainer.java:234) at org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer$1.run(ContinuousQueryListenerContainer.java:416) at java.lang.Thread.run(Thread.java:680)

    Spring JIRA | 5 years ago | Dave Roberts
    java.lang.IllegalArgumentException: Cannot find a suitable method named [quickstart.ContinuousQueryListenerImpl#handleEvent] - is the method public and has the proper arguments?
  3. 0

    Application startup failed with org.hibernate:hibernate-search-orm.XYZ on class path

    GitHub | 3 years ago | dirkrathje
    java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unit tests using redisTemplate fail

    GitHub | 3 years ago | wxlund
    java.lang.IllegalArgumentException: template not initialized; call afterPropertiesSet() before using it
  6. 0

    spring open jpa db2 error

    Stack Overflow | 3 years ago | Fryder
    java.lang.IllegalArgumentException: Interface must be annotated with @org.springframework.data.repository.RepositoryDefinition!

  1. SteVio1989 3 times, last 2 weeks ago
  2. stigkj 1 times, last 2 weeks ago
  3. batwalrus76 1 times, last 3 weeks ago
  4. kjhdofjosvs 1 times, last 3 months ago
  5. j.kienzle 1 times, last 4 months ago
6 more registered users
29 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. java.lang.IllegalArgumentException

    Cannot find a suitable method named [quickstart.ContinuousQueryListenerImpl#handleEvent] - is the method public and has the proper arguments?

    at org.springframework.util.Assert.isTrue()
  2. Spring Core
    Assert.isTrue
    1. org.springframework.util.Assert.isTrue(Assert.java:65)
    1 frame
  3. Spring Data GemFire
    ContinuousQueryListenerContainer$1.run
    1. org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter$MethodInvoker.<init>(ContinuousQueryListenerAdapter.java:136)
    2. org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter.onEvent(ContinuousQueryListenerAdapter.java:278)
    3. org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer.executeListener(ContinuousQueryListenerContainer.java:234)
    4. org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer$1.run(ContinuousQueryListenerContainer.java:416)
    4 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:680)
    1 frame