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
Yes, putting the setStatusService call in start() does the trick as well.
Lee
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2895184
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
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
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
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
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.
7 matches
Mail list logo