Log4j:error Setfile (null,true) call failed

Source: Internet
Author: User
Tags apache tomcat

1. Error description

Usage:java Org.apache.catalina.startup.Catalina [-config {pathname}] [-nonaming] {-help | start | stop} April 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener Log information: Server version:apache tomcat/7.0.57 April 28, 20 15 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener log information: Server Built:nov 3 08:39:16 UTC April 2 8, 2015 11:38:00 pm org.apache.catalina.startup.VersionLoggerListener Log information: Server number:7.0.57.0 April 28, 2015 11  : 38:00 pm Org.apache.catalina.startup.VersionLoggerListener Log info: OS name:windows 74 months 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener Log Info: OS version:6.1 April 28, 2015 11:38:00 pm Org.apache.cat Alina.startup.VersionLoggerListener Log Info: ARCHITECTURE:AMD64 April 28, 2015 11:38:00 pm Org.apache.catalina.startup . Versionloggerlistener Log Info: Java_home:d:\java\jdk1.7.0_67\jre April 28, 2015 11:38:00 pm Org.apache.catalina.sta Rtup. VersionloggerlisteNER Log info: JVM VERSION:1.7.0_67-B01 April 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener LO G Info: JVM Vendor:oracle Corporation April 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener LO G Info: catalina_base:d:\myeclipse10\apache-tomcat-7.0.57 April 28, 2015 11:38:00 pm org.apache.catalina.startup.Version Loggerlistener Log Info: catalina_home:d:\myeclipse10\apache-tomcat-7.0.57 April 28, 2015 11:38:00 pm Org.apache.catalin A.startup.versionloggerlistener Log message: Command line argument:-dcatalina.home=d:\myeclipse10\apache-tomcat-7.0.57 April 28, 2015 11:38:00 pm org.apache.catalina.startup.VersionLoggerListener Log info: Command line argument:-dcatalina.base=d : \myeclipse10\apache-tomcat-7.0.57 April 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener Log Info: Command line argument:-djava.endorsed.dirs=d:\myeclipse10\apache-tomcat-7.0.57/common/endorsed April 28, 2015 11:38:00 Afternoon Org.apache.catalina.startup.VersionLoggerLisTener Log Info: Command line argument:-djava.io.tmpdir=d:\myeclipse10\apache-tomcat-7.0.57\temp April 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-djava.library.path=d:\java\ Jdk1.7.0_67\bin;d:\myeclipse10\apache-tomcat-7.0.57\bin April 28, 2015 11:38:00 pm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-dsun.io.usecanoncaches=false April 28, 2015 11:38:00 pm Org.apache.catalina.core.AprLifecycleListener lifecycleevent Info: Loaded APR based Apache Tomcat Native Li Brary 1.1.32 using APR version 1.5.1. April 28, 2015 11:38:00 pm Org.apache.catalina.core.AprLifecycleListener lifecycleevent Info: APR Capabilities:ipv6 [true], sendfile [true], accept filters [FALSE], random [true]. April 28, 2015 11:38:01 pm ORG.APAC He.catalina.core.AprLifecycleListener Initializessl Info: OpenSSL successfully initialized (OpenSSL 1.0.1j 2014) April 28, 2015 11:38:02 pm org.apache.coyote.AbstractProtocol init info: Initializing Protocolhandler ["HTtp-apr-8080 "] April 28, 2015 11:38:02 pm org.apache.coyote.AbstractProtocol init info: Initializing Protocolhandler [" ajp-apr-8009 "] April 28, 2015 11:38:02 pm Org.apache.catalina.startup.Catalina LOAD Info: Initialization processed in 4215 Ms April 2 8, 2015 11:38:02 pm Org.apache.catalina.core.StandardService startinternal Info: Starting service Catalina April 28, 2015 11:38: 02 pm Org.apache.catalina.core.StandardEngine startinternal Info: Starting Servlet engine:apache tomcat/7.0.57 April 28, 2015 1 1:38:02 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory D:\ Myeclipse10\apache-tomcat-7.0.57\webapps\docs April 28, 2015 11:38:04 pm org.apache.catalina.util.SessionIdGenerator Createsecurerandom Info: Creation of SecureRandom instance for session ID generation using [sha1prng] took [238] milliseconds . April 28, 2015 11:38:04 pm org.apache.catalina.startup.HostConfig deploydirectory Info: Deployment of Web application director Y D:\MyEclipse10\apache-tomcat-7.0.57\webapps\docs has finishEd in 1,334 Ms April 28, 2015 11:38:04 pm org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web Application Directory D:\MyEclipse10\apache-tomcat-7.0.57\webapps\echarts April 28, 2015 11:38:05 pm Com.sun.faces.config.ConfigureListener contextinitialized Info: Initialize context '/echarts ' Mojarra 2.0.3 (FCS b03) April 28, 2015 11:38 : 06 pm Com.sun.faces.spi.InjectionProviderFactory CreateInstance Info: JSF1048: There are postconstruct/predestroy comments. The Managedbeans method labeled with these comments will indicate that the comment has been processed.  April 28, 2015 11:38:07 pm org.apache.catalina.startup.HostConfig deploydirectory Info: Deployment of Web application directory D:\MyEclipse10\apache-tomcat-7.0.57\webapps\echarts have finished in 3,232 Ms April 28, 2015 11:38:07 pm Org.apache.catalina. Startup. Hostconfig deploydirectory Info: Deploying Web application Directory D:\MyEclipse10\apache-tomcat-7.0.57\webapps\ Examples April 28, 2015 11:38:08 pm org.apache.catalina.core.ApplicationContext Log Info: contextlistener:contextinitialized () April 28, 2015 11:38:08 pm org.apache.catalina.core.AppliCationcontext Log Info: sessionlistener:contextinitialized () April 28, 2015 11:38:09 pm Org.apache.catalina.core.ApplicationContext Log information: contextlistener:attributeadded (' Org.apache.jasper.compiler.TldLocationsCache ', ' [email protected] ') April 28, 2015 11:38:09 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deployment of Web application directory D:\MyEclipse10\ Apache-tomcat-7.0.57\webapps\examples have finished in 1,538 Ms April 28, 2015 11:38:09 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory D:\MyEclipse10\ Apache-tomcat-7.0.57\webapps\fusioncharts April 28, 2015 11:38:10 pm Com.sun.faces.config.ConfigureListener Contextinitialized Info: Initialize context '/fusioncharts ' of Mojarra 2.0.3 (FCS b03) April 28, 2015 11:38:10 pm Com.sun.faces.spi.InjectionP Roviderfactory CreateInstance Information: JSF1048: There is Postconstruct/predestroy comment. The Managedbeans method labeled with these comments will indicate that the comment has been processed. April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger INFO: parsing ConfiguratIon file [Struts-default.xml] April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger INFO: Parsing configuration file [Struts-plugin.xml] April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger Info: Unable to locate configuration files of the name Struts.xml, skipping April 28, 2015 11:38:11 pm com.opensymphony.xwor K2.util.logging.jdk.JdkLogger Info: Parsing configuration file [Struts.xml] April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.ObjectFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger Info: Choosing bean (Struts) for (com.opensymphony.xwork2.factory.ActionFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.factory.ResultFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for (Com.opensymphony.xwork2.factory.ConverterFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.factory.InterceptorFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.factory.ValidatorFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.factory.UnknownHandlerFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.FileManagerFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.impl.XWorkConverter) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for (Com.opensymphony.xwork2.conVersion.impl.CollectionConverter) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger INFO: Choosing bean (Struts) for (Com.opensymphony.xwork2.conversion.impl.ArrayConverter) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.impl.DateConverter) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.impl.NumberConverter) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.impl.StringConverter) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for (Com.opensymphonY.xwork2.conversion.conversionfileprocessor) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.TypeConverterCreator) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.conversion.TypeConverterHolder) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.TextProvider) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger Info: Choosing bean (Struts) for (Com.opensymphony.xwork2.LocaleProvider) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.ActionProxyFacTory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger Info: Choosing bean (Struts) for (COM.O Pensymphony.xwork2.conversion.ObjectTypeDeterminer) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Org.apache.struts2.dispatcher.mapper.ActionMapper) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing Bean (Jakarta) for ( Org.apache.struts2.dispatcher.multipart.MultiPartRequest) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Org.apache.struts2.views.freemarker.FreemarkerManager) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Org.apache.struts2.components.UrlRenderer) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.validator.ActionValidatorManager) April 28, 201511:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger Info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.util.ValueStackFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.util.reflection.ReflectionProvider) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.util.PatternMatcher) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Org.apache.struts2.dispatcher.StaticContentLoader) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.UnknownHandlerManager) April 28, 2015 11:38:11 pm com.opensymPhony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for (Org.apache.struts2.views.util.UrlHelper) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger Info: Choosing bean (Struts) for (Com.opensy Mphony.xwork2.util.TextParser) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger INFO: Choosing bean (Struts) for (Org.apache.struts2.dispatcher.DispatcherErrorHandler) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.security.ExcludedPatternsChecker) April 28, 2015 11:38:11 pm Com.opensymphony.xwork2.util.logging.jdk.JdkLogger info: Choosing bean (Struts) for ( Com.opensymphony.xwork2.security.AcceptedPatternsChecker) Log4j:error Setfile (null,true) call Failed.java.io.FileNotFoundException:at Java.io.FileOutputStream.open (Native Method) at Java.io.FileOutputStream. <init> (fileoutputstream.java:221) at java.io.fileoutputstream.<init> (Fileoutputstream.java:142) at Org.apache.log4j.FileAppender.setFile (fileappender.java:294) at Org.apache.log4j.FileAppender.activateOptions (fileappender.java:165) at Org.apache.log4j.DailyRollingFileAppender.activateOptions (dailyrollingfileappender.java:223) at Org.apache.log4j.config.PropertySetter.activate (propertysetter.java:307) at Org.apache.log4j.config.PropertySetter.setProperties (propertysetter.java:172) at Org.apache.log4j.config.PropertySetter.setProperties (propertysetter.java:104) at Org.apache.log4j.PropertyConfigurator.parseAppender (propertyconfigurator.java:842) at Org.apache.log4j.PropertyConfigurator.parseCategory (propertyconfigurator.java:768) at Org.apache.log4j.PropertyConfigurator.configureRootCategory (propertyconfigurator.java:648) at Org.apache.log4j.PropertyConfigurator.doConfigure (propertyconfigurator.java:514) at Org.apache.log4j.PropertyConfigurator.doConfigure (propertyconfigurator.java:580) at Org.apache.log4j.helpers.OptionConverter.selectAndConfigure (Optionconverter.java:5At Org.apache.log4j.logmanager.<clinit> (logmanager.java:127) at Org.apache.log4j.Logger.getLogger ( logger.java:104) at Freemarker.log.Log4JLoggerFactory.getLogger (log4jloggerfactory.java:65) at Freemarker.log.Logger.getLogger (logger.java:284) at freemarker.template.utility.securityutilities.<clinit> (securityutilities.java:67) at freemarker.ext.beans.beanswrapper.<clinit> (beanswrapper.java:147) at Freemarker.template.objectwrapper.<clinit> (objectwrapper.java:69) at Freemarker.core.configurable.<init > (configurable.java:139) at freemarker.template.configuration.<init> (configuration.java:142) at Freemarker.template.configuration.<clinit> (configuration.java:127) at Org.apache.struts2.views.freemarker.FreemarkerManager.createConfiguration (freemarkermanager.java:331) at Org.apache.struts2.views.freemarker.FreemarkerManager.init (freemarkermanager.java:282) at Org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration (freemarkermanager.java:269) at org. Apache.struts2.dispatcher.DefaultDispatcherErrorHandler.init (defaultdispatchererrorhandler.java:47) at Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:488) at Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:74) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.init (strutspreparefilter.java:56) at Org.apache.catalina.core.ApplicationFilterConfig.initFilter (applicationfilterconfig.java:279) at Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:260) at Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:105) at Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:4830) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5510) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBAse.addchild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run ( futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) Log4j:error either File or Datepattern options is not set for Appender [Servicerollingfile].log4j:error C Ould not find value for key Log4j.appender.stdoutlog4j:ERROR Could not instantiate appender named "stdout". April 28, 2015 11: 38:13 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deployment of Web application directory D:\ Myeclipse10\apache-tomcat-7.0.57\webapps\fusioncharts hAs finished in 4,155 Ms April 28, 2015 11:38:13 pm org.apache.catalina.startup.HostConfig deploydirectory info: deploying Web App Lication directory D:\MyEclipse10\apache-tomcat-7.0.57\webapps\host-manager April 28, 2015 11:38:13 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deployment of Web application directory D:\MyEclipse10\ Apache-tomcat-7.0.57\webapps\host-manager have finished in April 28, 2015 11:38:13 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory D:\MyEclipse10\ Apache-tomcat-7.0.57\webapps\manager April 28, 2015 11:38:13 pm org.apache.catalina.startup.HostConfig deploydirectory Info  : Deployment of Web application directory D:\MyEclipse10\apache-tomcat-7.0.57\webapps\manager have finished in 103 Ms April 28, 2015 11:38:13 pm Org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory D:\ Myeclipse10\apache-tomcat-7.0.57\webapps\root April 28, 2015 11:38:13 pm Org.apache.catalina.startup.HostConfig DeploydiRectory Info: Deployment of Web application directory D:\MyEclipse10\apache-tomcat-7.0.57\webapps\ROOT have finished in 94 MS  April 28, 2015 11:38:13 pm org.apache.coyote.AbstractProtocol Start Info: Starting Protocolhandler ["http-apr-8080"] April 28, 2015  11:38:13 pm Org.apache.coyote.AbstractProtocol Start Info: Starting Protocolhandler ["ajp-apr-8009"] April 28, 2015 11:38:13 pm Org.apache.catalina.startup.Catalina Start Information: Server Startup in 10851 MS

2. Cause of error


3. Solutions

Log4j:error Setfile (null,true) call failed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.