Re: REST view and weird error

2013-02-27 Thread Francesco Chicchiriccò
On 27/02/2013 01:18, Thorsten Scherler wrote: [...] I had some problems to find the important change though between the checkstyle/formating changes. It would be great if you could separate those in the future. ...I knew you would have said that :-) I did my best about that with 1450163,

Re: REST view and weird error

2013-02-26 Thread Thorsten Scherler
On 02/25/2013 02:10 PM, Thorsten Scherler wrote: ... Passing pipeline parameter as attribute: key=cocoon, value=[FAILED toString()] in MessageFormatter.arrayFormat. still investigating salu2 Actually you can see it if you start the cocoon-sample block and request

RE: REST view and weird error

2013-02-26 Thread Robby Pelssers
:43 PM To: dev@cocoon.apache.org Subject: Re: REST view and weird error On 02/25/2013 02:10 PM, Thorsten Scherler wrote: ... Passing pipeline parameter as attribute: key=cocoon, value=[FAILED toString()] in MessageFormatter.arrayFormat. still investigating salu2 Actually you can see

RE: REST view and weird error

2013-02-26 Thread Robby Pelssers
, February 26, 2013 3:13 PM To: dev@cocoon.apache.org Subject: RE: REST view and weird error To be more precise it happens when processing the map entry cocoon. So in this case there must be some circular reference.. finding that needle is a bit more difficult :( Robby -Original Message

Re: REST view and weird error

2013-02-26 Thread Francesco Chicchiriccò
On 26/02/2013 13:43, Thorsten Scherler wrote: On 02/25/2013 02:10 PM, Thorsten Scherler wrote: ... Passing pipeline parameter as attribute: key=cocoon, value=[FAILED toString()] in MessageFormatter.arrayFormat. still investigating salu2 Actually you can see it if you start the

Re: REST view and weird error

2013-02-26 Thread Thorsten Scherler
On 02/26/2013 03:13 PM, Robby Pelssers wrote: To be more precise it happens when processing the map entry cocoon. So in this case there must be some circular reference.. finding that needle is a bit more difficult :( Jupp, look at this:

RE: REST view and weird error

2013-02-26 Thread Robby Pelssers
@cocoon.apache.org Subject: Re: REST view and weird error On 26/02/2013 13:43, Thorsten Scherler wrote: On 02/25/2013 02:10 PM, Thorsten Scherler wrote: ... Passing pipeline parameter as attribute: key=cocoon, value=[FAILED toString()] in MessageFormatter.arrayFormat. still investigating salu2

Re: REST view and weird error

2013-02-26 Thread Thorsten Scherler
On 02/26/2013 03:21 PM, Francesco Chicchiriccò wrote: On 26/02/2013 13:43, Thorsten Scherler wrote: On 02/25/2013 02:10 PM, Thorsten Scherler wrote: ... Passing pipeline parameter as attribute: key=cocoon, value=[FAILED toString()] in MessageFormatter.arrayFormat. still investigating

RE: REST view and weird error

2013-02-26 Thread Robby Pelssers
http://robbypelssers.blogspot.nl/2013/02/debugging-circular-references-in-maps.html Another useful lesson learned :) -Original Message- From: Thorsten Scherler [mailto:scher...@gmail.com] Sent: Tuesday, February 26, 2013 3:25 PM To: dev@cocoon.apache.org Subject: Re: REST view and weird

Re: REST view and weird error

2013-02-26 Thread Francesco Chicchiriccò
On 26/02/2013 15:25, Thorsten Scherler wrote: On 02/26/2013 03:21 PM, Francesco Chicchiriccò wrote: On 26/02/2013 13:43, Thorsten Scherler wrote: On 02/25/2013 02:10 PM, Thorsten Scherler wrote: ... Passing pipeline parameter as attribute: key=cocoon, value=[FAILED toString()] in

Re: REST view and weird error

2013-02-26 Thread Thorsten Scherler
On 02/26/2013 04:36 PM, Francesco Chicchiriccò wrote: as you have already found, the problem is the cocoon entry in the sitemap's ObjectModel, always passed among parameters. I have been able to actually print the content of the cocoon entry via common-collection's MapUtils:

Re: REST view and weird error

2013-02-25 Thread Thorsten Scherler
-Original Message- From: Nathaniel, Alfred [mailto:alfred.nathan...@six-group.com] Sent: Friday, February 22, 2013 3:07 PM To: 'dev@cocoon.apache.org' Subject: RE: REST view and weird error Wild guess: somewhere you add the map to itself map.put(map, map); creating an infinite

Re: REST view and weird error

2013-02-25 Thread Thorsten Scherler
On 02/25/2013 12:08 PM, Thorsten Scherler wrote: Hi all, actually I tried with HashMapString, Object data = new HashMapString, Object(); data.put(xxx, xxx); return new URLResponse(VIEW, data); so not really a problem of the hashmap within hasmap. Further I need to inject the hashmap to

Re: REST view and weird error

2013-02-25 Thread Thorsten Scherler
On 02/25/2013 12:36 PM, Thorsten Scherler wrote: On 02/25/2013 12:08 PM, Thorsten Scherler wrote: Hi all, actually I tried with HashMapString, Object data = new HashMapString, Object(); data.put(xxx, xxx); return new URLResponse(VIEW, data); so not really a problem of the hashmap within

REST view and weird error

2013-02-22 Thread Thorsten Scherler
Hi all, in one view of a REST service of mine I get: SLF4J: Failed toString() invocation on an object of type [java.util.HashMap] java.lang.StackOverflowError at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:639) at

RE: REST view and weird error

2013-02-22 Thread Robby Pelssers
in another hashmap just for the sake of it ;-) Robby -Original Message- From: Thorsten Scherler [mailto:scher...@gmail.com] Sent: Friday, February 22, 2013 10:13 AM To: dev@cocoon.apache.org Subject: REST view and weird error Hi all, in one view of a REST service of mine I get: SLF4J

RE: REST view and weird error

2013-02-22 Thread Nathaniel, Alfred
: REST view and weird error Hi Thorsten, Just one question. I'm a making a few assumptions here but is Settings not a HashMap already? Can't you just do @Override public RestResponse doGet() throws Exception { return new URLResponse(VIEW, getProps()); } I don't see the point

RE: REST view and weird error

2013-02-22 Thread Robby Pelssers
] Sent: Friday, February 22, 2013 3:07 PM To: 'dev@cocoon.apache.org' Subject: RE: REST view and weird error Wild guess: somewhere you add the map to itself map.put(map, map); creating an infinite recursion in map.toString(). HTH, Alfred. -Original Message- From: Robby Pelssers