Hi,
I have decompiled some of the OTB Jar classes and found log.isErrorEnabled() method. Please let me know if you have any idea on how to enable this error mode in logging in TS7.1.
TS7.1 hosted on Solaris.
Thanks,
It depends a bit on what you are trying to code for.
If you're working on code that lives in IWHOME/local/config/lib/content_center/customer_src - then you should find a log4j.xml in the subdirectory etc/conf/customer - which allows you to specify logging levels for custom code - and then, assuming you are using the correct logger class - you should be able to use that method to determine if the logging of errors is enabled (it would be a questionable configuration if that weren't the case) - and thus surround error logging with that conditional clause to omit such lines from being called if error logging is not enabled.
Thanks for quick reply. It is not custom code, it is Interwoven OTB class.
What I explained is how the code is used - you're looking at a library - that library is generally used for both OOTB and custom code. What I described is essentially the same thing that would occur in the OOTB code - except that the logging levels would be defined in a different location - but if you go through the Admin UI - you will find a link for the loggers - which will provide you a long list of configured loggers that are either in the 'default' or 'verbose' mode - and I think it is reasonably safe to assume that the 'default' mode for all the OOTB loggers includes error logging.
Since you haven't provided any explanation of what you are attempting to do / why you are attempting to do it - there's not really much more that I can tell you.
It is possible that changed from default to debug here may do it,
http://INSERT-YOUR-TEAMSITE-SERVER-HERE/iw-cc/command/iw.base.loggers
Thanks Ghoti and Nipper.
The reason for doing this is,
we are continuously getting below errors in App Dynamics as we integrated servletd with AppD.
/iw-cc/livesite/javascript/i18n/Messages.class.jsp
Exception Message: JSONObject["type"] not found.Exception Message: JSONObject["delete_branches"] not found.Exception Message: JSONObject["confirm_nolock"] not found.Exception Message: JSONObject["create"] not found.Exception Message: JSONObject["add_group_managers"] not found.Exception Message: JSONObject["cant_create_cmd"] not found.Exception Message: JSONObject["description"] not found.Exception Message: JSONObject["shared"] not found.Exception Message: JSONObject["edit_heading"] not found.Exception Message: JSONObject["segment"] not found.Exception Message: JSONObject["form_settings"] not found.Exception Message: JSONObject["invalid_file"] not found.Exception Message: JSONObject["merger_reader"] not found.Exception Message: JSONObject["bookmark"] not found.Exception Message: JSONObject["list_file_versions"] not found.Exception Message: JSONObject["save"] not found.Exception Message: JSONObject["add_multiple_users_individually"] not found.
rg.json.JSONException.JSONObject["type"] not found. at org.json.JSONObject.get(JSONObject.java:474) at org.json.JSONObject.getJSONObject(JSONObject.java:564) at com.interwoven.livesite.common.struts.JavaScriptMessageResourcesHelper.buildJsonParentTree(JavaScriptMessageResourcesHelper.java:265) at com.interwoven.livesite.common.struts.JavaScriptMessageResourcesHelper.appendResourceBundleJson(JavaScriptMessageResourcesHelper.java:212) at com.interwoven.livesite.common.struts.JavaScriptMessageResourcesHelper.buildLocalizedMessages(JavaScriptMessageResourcesHelper.java:152) at com.interwoven.livesite.common.struts.JavaScriptMessageResourcesHelper.getJsonMessages(JavaScriptMessageResourcesHelper.java:293) at org.apache.jsp.livesite.javascript.i18n.Messages_class_jsp._jspService(Messages_class_jsp.java:98) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.interwoven.livesite.spring.hibernate.web.filter.OpenSessionsInViewFilter.doFilterInternal(OpenSessionsInViewFilter.java:108) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.interwoven.ui.base.impl.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:203) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.interwoven.ui.base.util.SetRequestEncodingFilter.doFilter(SetRequestEncodingFilter.java:106) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)
TS version 7.1 and Solaris OS