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
  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 | 2 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

    Issue of pagination in Spring Data JPA

    Stack Overflow | 5 years ago | Tom
    java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter!
  6. 0

    SubProtocolWebSocketHandler - No handlers

    Stack Overflow | 2 years ago
    org.springframework.web.context.ContextLoaderListener: org.springframework.context.ApplicationContextException: Failed to start bean 'subProtocolWebSocketHandler'; nested exception is java.lang.IllegalArgumentException: No handlers

  1. batwalrus76 1 times, last 2 weeks ago
  2. kjhdofjosvs 1 times, last 4 weeks ago
  3. j.kienzle 1 times, last 1 month ago
  4. Luka 2 times, last 2 months ago
  5. andyglick 1 times, last 3 months ago
4 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