java.io.FileNotFoundException: C:Usersjhinkey\liferay\logs\liferay.2012-12-11.log (The system cannot find the path specified)

Liferay Issues | James Hinkey | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    On startup of a bundle on Windows the following error occurs. The liferay log file path is using the user's home directory incorrectly, not accounting for the backslashes used in Windows file paths. OS: Windows Steps to reproduce: 1. build a clean tomcat bundle from trunk 2. Create a portal-ext.properties to specify database information only. See attached. Be sure NOT to specify a liferay.home. 3. Execute startup.bat Tested on commit: 9741331a07b220cba5079904f59267700dd06550 Stack trace: Loading file:/D:/git-stuff/bundles/portal-ext.properties log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: C:Usersjhinkey\liferay\logs\liferay.2012-12-11.log (The system cannot find the path specified) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) at java.io.FileOutputStream.<init>(FileOutputStream.java:102) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) at org.apache.log4j.rolling.RollingFileAppender.activateOptions(RollingFileAppender.java:179) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176) at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191) at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523) at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492) at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:815) at com.liferay.util.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:113) at com.liferay.util.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:60) at com.liferay.portal.util.InitUtil.init(InitUtil.java:99) at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:157) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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)

    Liferay Issues | 4 years ago | James Hinkey
    java.io.FileNotFoundException: C:Usersjhinkey\liferay\logs\liferay.2012-12-11.log (The system cannot find the path specified)
  2. 0

    Deploying Liferay on Cloudbees

    Stack Overflow | 4 years ago | Linda van der Pal
    java.io.FileNotFoundException: /tmp/liferay/logs/liferay.2012-09-17.log (Permission denied)
  3. 0

    Is document wrong or my setup?

    GitHub | 1 year ago | prasadnh
    java.io.FileNotFoundException: /gobblin-current.log (Permission denied)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Quickstart exception due to log path

    GitHub | 4 years ago | hectcastro
    java.io.FileNotFoundException: /var/log/riemann/riemann.log (No such file or directory)
  6. 0

    Why I obtain this FileNotFoundException when I try to use log4j to write into a file?

    Stack Overflow | 2 years ago
    java.io.FileNotFoundException: \log.out (Accesso negato)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    C:Usersjhinkey\liferay\logs\liferay.2012-12-11.log (The system cannot find the path specified)

    at java.io.FileOutputStream.openAppend()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.openAppend(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    3 frames
  3. Apache Log4j
    FileAppender.activateOptions
    1. org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
    2. org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
    2 frames
  4. Apache Extras™ for Apache log4j™.
    RollingFileAppender.activateOptions
    1. org.apache.log4j.rolling.RollingFileAppender.activateOptions(RollingFileAppender.java:179)
    1 frame
  5. Apache Log4j
    DOMConfigurator.doConfigure
    1. org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    2. org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
    3. org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
    4. org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
    5. org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
    6. org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
    7. org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)
    8. org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)
    9. org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:815)
    9 frames
  6. Liferay Util Java
    Log4JUtil.configureLog4J
    1. com.liferay.util.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:113)
    2. com.liferay.util.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:60)
    2 frames
  7. Liferay Portal Service
    InitUtil.init
    1. com.liferay.portal.util.InitUtil.init(InitUtil.java:99)
    1 frame
  8. Liferay Portal Impl
    PortalContextLoaderListener.contextInitialized
    1. com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:157)
    1 frame
  9. Glassfish Core
    HostConfig$DeployDescriptor.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
    8 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:662)
    6 frames