Re: Re: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2011-12-20 Thread Tim Peierls
Sounds like a documentation bug. It's reasonable to require application services to be set up prior to the first call to createInboundRoot, but it's important for the docs to say so. Just curious: Does it work if you override start() and call setXxxService before calling super.start()? --tim On

RE: Re: Re: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2011-12-20 Thread Lee Nave
Yes, putting the setStatusService call in start() does the trick as well. Lee -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2895184

RE: Re: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2011-12-19 Thread Lee Nave
I just ran into this problem, cost me an hour of head-scratching. Is this considered a bug? If so, has it been fixed and in what release? Thanks, Lee -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2894873

Re: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-11 Thread Thierry Boileau
Hello Sam, Can you set the statusService at instantiation time? Best regards, Thierry Boileau Please ignore the weird comments and code in the getRepresentation method body. My brain was going a couple different directions at the time I posted originally, and I realize it doesn't make much

RE: Re: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-11 Thread Sam Bloomquist
Yep, putting it in my Application class' constructor fixed it for me. Thanks. Hello Sam, Can you set the statusService at instantiation time? Best regards, Thierry Boileau Please ignore the weird comments and code in the getRepresentation method body. My brain was going a couple

RE: Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-10 Thread Sam Bloomquist
Please ignore the weird comments and code in the getRepresentation method body. My brain was going a couple different directions at the time I posted originally, and I realize it doesn't make much sense now. My issue is just that the method is never called. Thanks, Sam

Custom StatusService#getRepresentation() not invoked with GAE M6 build

2010-01-09 Thread Sam Bloomquist
I have a custom StatusService class, and the overridden getRepresentation(Status, Request, Response) method is never getting invoked when exceptions are thrown. I tried overriding getStatus(Throwable,Request,Response) temporarily as a test, and it is called and receives a valid Throwable.