Hi Ali,

Just make sure you have implements Declarable along with AsyncEventListener
if you are declaring OperationAsyncEventListener in you .xml file.

public class MyAsyncEventListener implements AsyncEventListener,Declarable


please let us know if this help attached a sample.

Thanks and Regards,
Shuvro Das


On Tue, May 17, 2016 at 2:54 PM, Ali Koyuncu <[email protected]> wrote:

> I have implemented as shown in the sample code and only
> implemented AsyncEventListener.
>
> Do you have sample code, so I can modify my code?
>
> Thank you in advance.
>
> On Tue, May 17, 2016 at 12:16 PM, Shuvro Das <[email protected]> wrote:
>
>> Hi Ali,
>>
>> Have you implements Declarable on OperationAsyncEventListener?
>>
>> Thanks and Regards,
>> Shuvro Das
>> Technical Support Engineer
>> Pivotal.
>> TEL: +91 9860311283 (Mobile)
>> TEL: +91 20 662 48392(Work)
>> Working hours: 9:00 - 18:00 IST
>> How to upload artifacts :
>> https://support.pivotal.io/hc/en-us/articles/204369073
>> How to escalate :
>> https://support.pivotal.io/hc/en-us/articles/203809556-Pivotal-How-do-I-escalate-an-existing-case-ref:_00D409hQR._50080cLnsM:ref
>>
>> On Tue, May 17, 2016 at 2:44 PM, Ali Koyuncu <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> Yesterday I defined Asynch Queue Event and it worked well. Today, when I
>>> try to start the server, I got the following exception:
>>>
>>>
>>> gfsh>start server --name=Server1
>>> --classpath=/home/company/product/simulator/lib/somelibrary-0.1.0.jar
>>> --include-system-classpath=true
>>> Starting a GemFire Server in /home/exodus/geode/vq/bin/1DataServer...
>>> The Cache Server process terminated unexpectedly with exit status 1.
>>> Please refer to the log file in /home/exodus/geode/vq/bin/1DataServer for
>>> full details.
>>>
>>> Exception in thread "main" com.gemstone.gemfire.cache.CacheXmlException:
>>> Class "com.acme.events.OperationAsyncEventListener" is not an instance of
>>> Declarable.
>>>     at
>>> com.gemstone.gemfire.internal.cache.xmlcache.CacheXmlParser.createDeclarable(CacheXmlParser.java:2139)
>>>
>>>
>>> CLASSPATH variables are already defined as environment variables.
>>>
>>> How to solve it?
>>>
>>>
>>> --
>>>
>>> Saygılarımla, with my warm regards,
>>>
>>> Ali KOYUNCU
>>>
>>
>>
>
>
> --
>
> Saygılarımla, with my warm regards,
>
> Ali KOYUNCU
>

Attachment: MyAsyncEventListener.java
Description: Binary data

Reply via email to