java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога)

QOS.ch JIRA | Mikhail Mazursky | 3 years ago
  1. 0

    [#LOGBACK-893] Corrupted Joran exception output - QOS.ch JIRA

    qos.ch | 1 year ago
    java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога)
  2. 0

    {noformat} 18:17:52,649 |-ERROR in ch.qos.logback.core.joran.action.IncludeAction - Failed to open [file:/SOME_PATH/logback.xml] java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога) at java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога) at at java.io.FileInputStream.open(Native Method) at at java.io.FileInputStream.<init>(FileInputStream.java:138) at at java.io.FileInputStream.<init>(FileInputStream.java:97) at at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) at at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) at at java.net.URL.openStream(URL.java:1037) at at ch.qos.logback.core.joran.action.IncludeAction.openURL(IncludeAction.java:144) at at ch.qos.logback.core.joran.action.IncludeAction.getInputStream(IncludeAction.java:210) at at ch.qos.logback.core.joran.action.IncludeAction.begin(IncludeAction.java:60) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:38) at at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:32) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at at java.lang.Class.newInstance(Class.java:374) at at org.eclipse.jetty.util.log.Log.initialized(Log.java:172) at at org.eclipse.jetty.util.log.Log.getLogger(Log.java:283) at at org.eclipse.jetty.util.log.Log.getLogger(Log.java:273) at at org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.<clinit>(JettyBootstrapActivator.java:48) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at at java.lang.Class.newInstance(Class.java:374) at at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167) at at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679) at at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) at at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) at at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resumeBundles(PackageAdminImpl.java:317) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:556) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:251) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174) at at java.lang.Thread.run(Thread.java:724) {noformat} As you can see "\tat" is added two times. One time in ch.qos.logback.core.util.StatusPrinter#appendThrowable and one time in ch.qos.logback.core.helpers.ThrowableToStringArray#extract (the first method calls the second).

    QOS.ch JIRA | 3 years ago | Mikhail Mazursky
    java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога)
  3. 0

    {noformat} 18:17:52,649 |-ERROR in ch.qos.logback.core.joran.action.IncludeAction - Failed to open [file:/SOME_PATH/logback.xml] java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога) at java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога) at at java.io.FileInputStream.open(Native Method) at at java.io.FileInputStream.<init>(FileInputStream.java:138) at at java.io.FileInputStream.<init>(FileInputStream.java:97) at at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) at at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) at at java.net.URL.openStream(URL.java:1037) at at ch.qos.logback.core.joran.action.IncludeAction.openURL(IncludeAction.java:144) at at ch.qos.logback.core.joran.action.IncludeAction.getInputStream(IncludeAction.java:210) at at ch.qos.logback.core.joran.action.IncludeAction.begin(IncludeAction.java:60) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:38) at at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:32) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at at java.lang.Class.newInstance(Class.java:374) at at org.eclipse.jetty.util.log.Log.initialized(Log.java:172) at at org.eclipse.jetty.util.log.Log.getLogger(Log.java:283) at at org.eclipse.jetty.util.log.Log.getLogger(Log.java:273) at at org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.<clinit>(JettyBootstrapActivator.java:48) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at at java.lang.Class.newInstance(Class.java:374) at at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167) at at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679) at at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) at at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) at at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resumeBundles(PackageAdminImpl.java:317) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:556) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:251) at at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174) at at java.lang.Thread.run(Thread.java:724) {noformat} As you can see "\tat" is added two times. One time in ch.qos.logback.core.util.StatusPrinter#appendThrowable and one time in ch.qos.logback.core.helpers.ThrowableToStringArray#extract (the first method calls the second).

    QOS.ch JIRA | 3 years ago | Mikhail Mazursky
    java.io.FileNotFoundException: /SOME_PATH/logback.xml (Нет такого файла или каталога)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ImportControl module throws java.io.FileNotFoundException

    GitHub | 3 years ago | oslater
    com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - Cannot set property 'file' in module ImportControl to 'checkstyle_import_control.xml': Unable to load checkstyle_import_control.xml
  6. 0

    Illegal character in path at index 0: \\xsl\\index.xsl

    GitHub | 3 years ago | shailendrasoni
    java.io.FileNotFoundException: D:\Shailendra\pp\projects\tcp2\rultor\rultor-web\target\test-classes\META-INF\MANIFEST.MF (The system cannot find the path specified)
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

    /SOME_PATH/logback.xml (Нет такого файла или каталога)

    at java.io.FileInputStream.open()
  2. Java RT
    URL.openStream
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:138)
    3. java.io.FileInputStream.<init>(FileInputStream.java:97)
    4. sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    5. sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    6. java.net.URL.openStream(URL.java:1037)
    6 frames
  3. Logback Core Module
    GenericConfigurator.doConfigure
    1. ch.qos.logback.core.joran.action.IncludeAction.openURL(IncludeAction.java:144)
    2. ch.qos.logback.core.joran.action.IncludeAction.getInputStream(IncludeAction.java:210)
    3. ch.qos.logback.core.joran.action.IncludeAction.begin(IncludeAction.java:60)
    4. ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275)
    5. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147)
    6. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129)
    7. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
    8. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
    9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
    10. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
    11. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
    11 frames
  4. Logback Classic Module
    ContextInitializer.autoConfig
    1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
    2. ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
    2 frames
  5. SLF4J LOG4J-12 Binding
    StaticLoggerBinder.<clinit>
    1. org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
    2. org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
    2 frames
  6. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
    2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
    3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
    4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
    4 frames
  7. Jetty
    Slf4jLog.<init>
    1. org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:38)
    2. org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:32)
    2 frames
  8. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    5. java.lang.Class.newInstance(Class.java:374)
    5 frames
  9. Jetty
    Log.getLogger
    1. org.eclipse.jetty.util.log.Log.initialized(Log.java:172)
    2. org.eclipse.jetty.util.log.Log.getLogger(Log.java:283)
    3. org.eclipse.jetty.util.log.Log.getLogger(Log.java:273)
    3 frames
  10. org.eclipse.jetty
    JettyBootstrapActivator.<clinit>
    1. org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.<clinit>(JettyBootstrapActivator.java:48)
    1 frame
  11. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    5. java.lang.Class.newInstance(Class.java:374)
    5 frames
  12. Eclipse OSGi
    PackageAdminImpl$1.run
    1. org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)
    2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
    3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    4. org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
    5. org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
    6. org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resumeBundles(PackageAdminImpl.java:317)
    7. org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:556)
    8. org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:251)
    9. org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
    9 frames
  13. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)
    1 frame