ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Le Roux <jacques.le.r...@les7arts.com>
Subject Re: How to set log levels in 12.0
Date Sat, 01 Jun 2013 13:55:31 GMT
See https://issues.apache.org/jira/browse/OFBIZ-5207 if interested in more

Jacques

From: "Jacques Le Roux" <jacques.le.roux@les7arts.com>
> The setting below works perfectly locally with R12.04 untouched
> 
> # These top level switches are used before calling Log4J, or if Log4J is not used
> print.verbose=false
> print.timing=false
> print.info=false
> print.important=false
> print.warning=false
> print.error=false
> print.fatal=false
> 
> Here are the only lines I get in terminal using ant start, even after running in some
screens
> 
> D:\workspace\release12.04>"C:\Program Files\Java\jdk1.6.0_22\bin\java" -jar framework/base/lib/ant-launcher-1.8.3.jar
-lib framework/base/lib/ant start
> Buildfile: D:\workspace\release12.04\build.xml
> 
> start:
>     [java] Start.java using configuration file org/ofbiz/base/start/start.properties
>     [java] Set OFBIZ_HOME to - D:/workspace/release12.04
>     [java] Admin socket configured on - /127.0.0.1:10523
>     [java] Warning : Module classpath component '"C:\Program Files\Java\jdk1.6.0_22\lib\tools.jar"'
is not valid and will be ignored...
>     [java] Warning : Module classpath component '"C:\Program Files\Java\jdk1.6.0_22\jre\lib\comm.jar"'
is not valid and will be ignored...
>     [java] Warning : Module classpath component 'C:\WINDOWS\Sun\Java\bin' is not valid
and will be ignored...
>     [java] Warning : Module classpath component 'C:\Program Files\Fichiers communs\Acronis\SnapAPI'
is not valid and will be ignored...
>     [java] Warning : Module classpath component 'C:\apache-maven-2.1.0\bin' is not valid
and will be ignored...
>     [java] Loaded ESAPI properties from classpath
>     [java]   ========Master Configuration========
>     [java]   |   LogEncodingRequired=false
>     [java]   |   LogLevel=ALL
>     [java]   |   MaxUploadFileBytes=500000000
>     [java]   |   ResponseContentType=text/html; charset=UTF-8
>     [java]   |   ValidExtensions=.zip,.pdf,.doc,.docx,.ppt,.pptx,.tar,.gz,.tgz,.rar,.war,.jar,.ear,.xls,.rtf,.properties,.java,.class,.txt,.xml,.jsp,.jsf,.exe,.dll
>     [java]   |   Validator.AccountName=^[a-zA-Z0-9]{3,20}$
>     [java]   |   Validator.CreditCard=^(\d{4}[- ]?){3}\d{4}$
>     [java]   |   Validator.DirectoryName=^[a-zA-Z0-9.-\_ ]{0,255}$
>     [java]   |   Validator.Email=^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[a-zA-Z]{2,4}$
>     [java]   |   Validator.FileName=^[a-zA-Z0-9.\-_ ]{0,255}$
>     [java]   |   Validator.HTTPCookieName=^[a-zA-Z0-9\-_]{0,32}$
>     [java]   |   Validator.HTTPCookieValue=^[a-zA-Z0-9\-\/+=_ ]*$
>     [java]   |   Validator.HTTPHeaderName=^[a-zA-Z0-9\-_]{0,32}$
>     [java]   |   Validator.HTTPHeaderValue=^[a-zA-Z0-9()\-=\*\.\?;,+\/:&_ ]*$
>     [java]   |   Validator.HTTPParameterName=^[a-zA-Z0-9_]{0,32}$
>     [java]   |   Validator.HTTPParameterValue=^[a-zA-Z0-9.\-\/+=_ ]*$
>     [java]   |   Validator.IPAddress=^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
>     [java]   |   Validator.Redirect=^\/test.*$
>     [java]   |   Validator.RoleName=^[a-z]{1,20}$
>     [java]   |   Validator.SSN=^(?!000)([0-6]\d{2}|7([0-6]\d|7[012]))([ -]?)(?!00)\d\d\3(?!0000)\d{4}$
>     [java]   |   Validator.SafeString=^[p{L}p{N}.]{0,1024}$
>     [java]   |   Validator.SystemCommand=^[a-zA-Z\-\/]{0,64}$
>     [java]   |   Validator.URL=^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\:\'\/\\\+=&amp;%\$#_]*)?$
>     [java]   |   event.test.actions=disable,log
>     [java]   |   event.test.count=2
>     [java]   |   event.test.interval=10
>     [java]   |   org.owasp.esapi.errors.IntegrityException.actions=log,disable,logout
>     [java]   |   org.owasp.esapi.errors.IntegrityException.count=10
>     [java]   |   org.owasp.esapi.errors.IntegrityException.interval=5
>     [java]   |   org.owasp.esapi.errors.IntrusionException.actions=log,disable,logout
>     [java]   |   org.owasp.esapi.errors.IntrusionException.count=1
>     [java]   |   org.owasp.esapi.errors.IntrusionException.interval=1
>     [java] 2013-05-31 15:37:52,750 (main) [        ModelReader.java:436:INFO ] FINISHED
LOADING ENTITIES - ALL FILES; #Entities=863 #ViewEntities=300 #Fields=9049 #Relationships=2961
#AutoRelationships=2186
> 
> I though found that when you change the levels back on the webtools/Log Configuration
page then you get. 
> 
> 2013-05-31 15:34:12,437 (http-bio-0.0.0.0-8443-exec-6) [StandardWrapperValve.java:269:ERROR]
Servlet.service() for servlet [ControlServlet] in context with path [/webtools] threw exception
> java.lang.NullPointerException
>        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:324)
>        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:86)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:314)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
>        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> 
> This does not prevent to dynamically reset the levels
> 
> Jacques
> 
> From: "Skip" <skip@thedevers.org>
>> Doesnt look like a bug, just a change that needs some documentation.
>> 
>> Skip
>> 
>> -----Original Message-----
>> From: Atul Vani [mailto:atul.vani@hotwaxmedia.com]
>> Sent: Tuesday, May 28, 2013 9:59 PM
>> To: user@ofbiz.apache.org; Pravin Patil
>> Subject: Re: How to set log levels in 12.0
>> 
>> 
>> Is this a bug?
>> 
>> On Wed, 29 May 2013 09:12:38 +0530, Pravin Patil  
>> <pravin.patil@hotwaxmedia.com> wrote:
>> 
>>> change threshold value in appender named "stdout"
>>>
>>> Kind Regards
>>>
>>> Pravin Patil
>>> HotWax Media Pvt Ltd.
>>>
>>>
>>> On 05/29/2013 09:08 AM, Pravin Patil wrote:
>>>> Hi skip,
>>>>
>>>> try this - go to log4j.xml and set the threshold value to "error"
>>>>
>>>> HTH
>>>>
>>>> Kind Regards
>>>>
>>>> Pravin Patil
>>>> HotWax Media Pvt Ltd.
>>>>
>>>>
>>>> On 05/29/2013 02:33 AM, Skip wrote:
>>>>> I have changed print.info and print.timing to =false in  
>>>>> debug.properties.
>>>>> However, I am still getting tons of INFO messages in the log.  Is  
>>>>> there some
>>>>> additional thing I have to do?
>>>>>
>>>>
>> 
>> 
>> -- 
>> Using Opera's revolutionary email client: http://www.opera.com/mail/
>>
>

Mime
View raw message