Tag Grails

How to find the cause of "deleted object would be re-saved by cascade"

Sometimes if you do not properly delete objects in a Grails/GORM/Hibernate transaction the following error might occur:

deleted object would be re-saved by cascade (remove deleted object from associations)

This message is presented by the org.hibernate.ObjectDeletedException

After some hours of investigation I found a solution to find the cause!

read more

Logstash Log4j broken pipe with MDC attributes

We recently configured some applications to log with log4j's SocketAppender to Logstash.

When we startet to add MDC-Attributes we sometimes lost the connection:

| Error log4j:WARN Detected problem with connection: java.net.SocketException: (broken pipe)

read more

Tandemblog mit neuer Software

Der zweite Blog mit der neuen Grails Blog Software ist online.

read more

Problem mit unvollständigen Objekten

Im Blog verursachte der folgende Code beim generieren der Tag-Seiten Probleme:

${Article.withCriteria{ tags{like('id',tagInstance.id)  } }}

Die hier geladenen Artikel-Objekte hatten bei der anschliessenden Anzeite nur einen Tag, den von der Tag-Seite.

 

read more

Grails Blog Software

Um Grails besser kennen zu lernen und um dem Tandemblog eine optimierte Blogsoftware zu bieten, habe ich mich entschlossen ein neues Projekt zu starten....

read more

Sort 'mappedBy'

Sorting in Grails is easy, but defining the sort order of 'hasMany' children of an object is not obvious...

read more

© 2015 - 2022 Moritz Kobel

Theme by Anders NorenUp ↑