RE: ERROR messages in log file

2009-12-09 Thread Denys Hryvastov
Hi Jerome -

I am sorry for such a long delay in my response.

I am using ServerServlet in my application. I have one class which extends
Application and several classes which extends Resource class.
In my web.xml I have
  
  RestletServlet
  
 com.noelios.restlet.ext.servlet.ServerServlet
  
  

In my case restlet functionality is working perfect by error messages appear
in log file after each call.

I can't use getLogService().setEnabled(false) because I do not inherit from
Component. 

I make lots of debugging and have found out that Restlet Log has one Handler
- Console handler. I have removed it and this helped to solve my problem,
but this is not very good solution. 

Could you please help me?
If you need more information, please let me know.

Thanks,
   Denys


jlouvel wrote:
> 
> Denys,
> 
> Could you give us more details about your Restlet configuration? For
> example, do you deploy in a Servlet container? Do you use ServerServlet or
> ServletAdapter (ex-ServletConverter)?
> 
> Best regards,
> Jerome Louvel
> --
> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
> 
> -----Message d'origine-
> De : Denys Hryvastov [mailto:dhryvas...@serena.com] 
> Envoyé : vendredi 12 juin 2009 15:47
> À : discuss@restlet.tigris.org
> Objet : RE: ERROR messages in log file
> 
> Thank you for response, Jerome -
> 
> One more question: am I doing something wrong? What may be the reasons of
> this ERROR messages?
> 
> Thank you for help,
> - Denys
> 
> 
> jlouvel wrote:
>> 
>> Hi Denys,
>> 
>> This is produced by the LogService. It is similar to regular Web servers
>> logging except that it goes in the console by default. To customize
>> logging
>> level and output formats, check:
>> http://wiki.restlet.org/docs_1.2/13-restlet/48-restlet/101-restlet.html
>> 
>> You can also turn it off altogether by calling
>> getLogService().setEnabled(false) on your Component instance.
>> 
>> Best regards,
>> Jerome Louvel
>> --
>> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
>> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
>> 
>> 
>> -Message d'origine-
>> De : Denys Hryvastov [mailto:dhryvas...@serena.com] 
>> Envoyé : mardi 2 juin 2009 09:44
>> À : discuss@restlet.tigris.org
>> Objet : ERROR messages in log file
>> 
>> Hi All!
>> I am using restlet 1.2-M2 and I am faced with such problem:
>> I make calls to restlet services and get correct response, but after each
>> call I get such messages in log file:
>> ERROR 2009-06-02 10:33:57,654 STDERR -- 2/6/2009 10:33:57
>> org.restlet.engine.LogFilter afterHandle
>> 
>> Can somebody tell me what is the reason why this messages appear? 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3010777.html
>> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>> 
>> --
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23586
>> 79
>> 
>> --
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2360905
>> 
>> 
> 
> -- 
> View this message in context:
> http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3067726.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
> 
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2361605
> 
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2362578
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p4140039.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2428883


RE: ERROR messages in log file

2009-06-12 Thread Denys Hryvastov
Thank you for response, Jerome -

One more question: am I doing something wrong? What may be the reasons of
this ERROR messages?

Thank you for help,
- Denys


jlouvel wrote:
> 
> Hi Denys,
> 
> This is produced by the LogService. It is similar to regular Web servers
> logging except that it goes in the console by default. To customize
> logging
> level and output formats, check:
> http://wiki.restlet.org/docs_1.2/13-restlet/48-restlet/101-restlet.html
> 
> You can also turn it off altogether by calling
> getLogService().setEnabled(false) on your Component instance.
> 
> Best regards,
> Jerome Louvel
> --
> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
> 
> 
> -Message d'origine-
> De : Denys Hryvastov [mailto:dhryvas...@serena.com] 
> Envoyé : mardi 2 juin 2009 09:44
> À : discuss@restlet.tigris.org
> Objet : ERROR messages in log file
> 
> Hi All!
> I am using restlet 1.2-M2 and I am faced with such problem:
> I make calls to restlet services and get correct response, but after each
> call I get such messages in log file:
> ERROR 2009-06-02 10:33:57,654 STDERR -- 2/6/2009 10:33:57
> org.restlet.engine.LogFilter afterHandle
> 
> Can somebody tell me what is the reason why this messages appear? 
> -- 
> View this message in context:
> http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3010777.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
> 
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23586
> 79
> 
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2360905
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3067726.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2361605


PROBLEM WITH org.restlet.representation.InputRepresentation IN 1.2-M2

2009-06-10 Thread Denys Hryvastov
Hi all -

I am using Restlet 1.2-M2 and I have some troubles. Let me describe briefly:

The problem that happens with me occurs because the 
org.restlet.representation.InputRepresentation class makes a reference to the 
org.apache.catalina.connector.CoyoteInputStream, which Tomcat uses, and on 
finalization it closes it.
CoyoteInputStream internally uses a recyclable
org.apache.catalina.connector.InputBuffer which is marked as closed when close 
is called on the CoyoteInpuStream.
So what happens is that the InputBuffer is recycled followed by a close from 
the InputRepresentation finalizer. The next HttpRequest that comes along will 
retrieve the now closed InputStream and will fail.


Any thoughts or ideas on any workarounds are greatly appreciated.
Thanks in advance.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2360692


PROBLEM WITH org.restlet.representation.InputRepresentation IN 1.2-M2

2009-06-10 Thread Denys Hryvastov
Hi all -

I am using Restlet 1.2-M2 and I have some troubles. Let me describe briefly:

The problem that happens with me occurs because the org.restlet.represen
tation.InputRepresen​tation class makes a reference to the
org.apache.catalina.​connector.CoyoteInpu​tStream, which Tomcat uses, and on
finalization it closes it.
CoyoteInputStream internally uses a recyclable
org.apache.catalina.​connector.InputBuffe​r which is marked as closed when
close is called on the CoyoteInpuStream.
So what happens is that the InputBuffer is recycled followed by a close from
the InputRepresentation finalizer. The next HttpRequest that comes along
will retrieve the now closed InputStream and will fail.

Any thoughts or ideas on any workarounds are greatly appreciated.
Thanks in advance. 
-- 
View this message in context: 
http://n2.nabble.com/PROBLEM-WITH-org.restlet.representation.InputRepresentation-IN-1.2-M2-tp3050953p3050953.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2360693


ERROR messages in log file

2009-06-02 Thread Denys Hryvastov
Hi All!
I am using restlet 1.2-M2 and I am faced with such problem:
I make calls to restlet services and get correct response, but after each call 
I get such messages in log file:
ERROR 2009-06-02 10:33:57,654 STDERR -- 2/6/2009 10:33:57 
org.restlet.engine.LogFilter afterHandle

Can somebody tell me what is the reason why this messages appear?

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2358675


ERROR messages in log file

2009-06-02 Thread Denys Hryvastov
Hi All!
I am using restlet 1.2-M2 and I am faced with such problem:
I make calls to restlet services and get correct response, but after each
call I get such messages in log file:
ERROR 2009-06-02 10:33:57,654 STDERR -- 2/6/2009 10:33:57
org.restlet.engine.LogFilter afterHandle

Can somebody tell me what is the reason why this messages appear? 
-- 
View this message in context: 
http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3010777.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2358679