mongodb - Grails: Event listener never stop (with websocket plugin) -


i have problem listener (platform core plugin). never stop after event (afterinsert) triggered (mongo standalone)

my service catch event , use simpmessagingtemplate (websocket plugin) send on topic data (a news user registration). data saved, listener triggered again , again.

p.s. data not saved, consequent exception, rollback transaction. in debug mode can see assigned id.

@transactional class messageeventservice {      simpmessagingtemplate brokermessagingtemplate      @listener(topic = 'afterinsert',namespace = 'gorm')     void afterinsert(user user) {        log.info("diobo")        brokermessagingtemplate.convertandsend("/topic/myeventtopic", "myevent: user add ${user.name}")     }  } 

and @ end...

    .[grails] servlet.service() servlet grails threw exception java.lang.outofmemoryerror: java heap space     @ java.util.arrays.copyof(arrays.java:2367) 

why happens?!?!?

thanks!


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -