I am using Spring Roo 1.2.1 and Jackson 1.9.7. I get a Jason Mapping Expression with my class QiOut Jason on the serialization.
I've read the following post, but I did not find any solution:
I do not know that Jason Enzor Qiot's The class is not working in the queue. I also tried JsonManagedReference but the same error. There is no solution for Jackson 2.0.0 because it is not supported by Spring 3.1
Any suggestions?
Here's a part of my Staktrres:
org.springframework.amqp.support.converter.MessageConversionException: the org on because org.springframework.amqp.support. Failed to change the content of the message on springframework.amqp.support.converter.JsonMessageConverter.createMessage (JsonMessageConverter.java181) Converter. Special message converter. Message (abstractMessageConverter.java1) org.springframework.amqp.rabbit.core.RabbitTemplate.convertMessageIf (rabbit template org.springframework.amqp.rabbit.core.RabbitTemplate.convertAndSend required (RabbitTemplate.java:482). Java: 358) .springframework.amqp the organization org.springframework.amqp.rabbit.core.RabbitTemplate.convertAndSend (RabbitTemplate.java:346) de.company.prs.admin.server.amqp.AdminQueueConsumer.onMessage (in AdminQueueConsumer.java:52) .rabbit.listener.adapter.MessageListenerAdapter.onMessage (MessageListenerAdapter.java:32 8) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener (Abstmasej Listnr Contaner. Java: 505) ... 10 and due by: org .codehaus.jackson.map.JsonMappingException: Infinite Replay (Stack Over Loarr) (through the reference range): de.company.prs.admin.server.domain.Queue [ "queueOuts"] - & gt; Org.hibernate.collection.PersistentSet [0] - & gt; De.company.prs.admin.server.domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server.domain.Queue ["queueOuts"] - & gt; Org.hibernate.collection.PersistentSet [0] - & gt; De.company.prs.admin.server. Domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server.domain.Queue ["queueOuts"] - & gt; Org.hibernate.collection.PersistentSet [0] - & gt; De.company.prs .admin.server.domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server.domain.Queue ["queueOuts"] - & gt; Org.hibernate.collection.PersistentSet [0] - & gt; De.company.prs.admin.server.domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server.domain.Queue ["queueOuts"] - & gt; Org.hibernate.collecti on.PersistentSet [0] - & gt; De.company.prs.admin.server.domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server.domain.Queue ["queueOuts"] - & gt; Org.hibernate.collection.PersistentSet [0] - & gt; De.company.prs.admin.server.domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server.domain.Queue ["queueOuts"] - & gt; Org.hibernate.collection.PersistentSet [0] - & gt; De.company.prs.admin.server.domain.QueueOut ["Queue"] - & gt; De.company.prs.admin.server. Domain.Queue ["queueOuts"] - & gt; org.hibernate.collection.PersistentSet [0] .map.ser.BeanSerializer.serialize org.codehaus on org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields org.codehaus.jackson (BeanSerializerBase.java:164) on .jackson.map.ser.BeanPropertyWriter.serializeAsField (BeanPropertyWriter.java:446) (BeanSerializer.java:112) .serializeFields on org.codehaus.jackson.map.ser.std.BeanSerializerBase org.codehaus.jackson.map.ser Here are my classes: fi rst @ Ruzawine @ RoutoString Public Class QUUUT {Name of Private String; Private string description; @JsonIgnore @ManyToOnePrivate Generic Queen Genericues; @ManyToOne (fetch = FetchType.EAGER) Personal queue queue; } second
@Ru Jawabin @ RoutoString @ Ruja Active Records public class line {Private string Name; Private string description; @JsonIgnore @OneToMany (cascade = CascadeType.ALL, mapped = "Q", fetch = FetchType.EAGER) Private set & lt; QueueOut & gt; QueueOuts = New Hashet & lt; QueueOut & gt; (); }
use @JsonIgnore on getter od @JsonIgnoreProperties (value = {"PropertyName "})
Comments
Post a Comment