java.lang.NullPointerException

QOS.ch JIRA | B. K. Oxley (binkley) | 6 years ago
  1. 0

    I get an NPE parsing the below logback.xml when upgrading from 0.9.26 to 0.9.27: <configuration debug="${log.debug:-false}"> <property resource="configuration.properties"/> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%date %level [%thread] %logger(%file:%line\) - %msg%n </pattern> </encoder> </appender> <logger name="scratch" level="${log.level:-INFO}"/> <root level="${log-all.level:-WARN}"> <appender-ref ref="STDOUT"/> </root> </configuration> 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/cygwin/home/boxley/src/scratch/target/classes/logback.xml] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 09:12:58,992 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 09:12:59,008 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at at ch.qos.logback.core.pattern.parser.Parser.COMPOSITE(Parser.java:196) at at ch.qos.logback.core.pattern.parser.Parser.C(Parser.java:164) at at ch.qos.logback.core.pattern.parser.Parser.T(Parser.java:142) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:97) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.parse(Parser.java:92) at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:83) at at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:27) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) 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:121) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272) at at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160) at at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89) at at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at at scratch.spring.MynsMain.main(MynsMain.java:18) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115) 09:12:59,008 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Encoder has not been set. Cannot invoke its init method. 09:12:59,008 |-ERROR in ch.qos.logback.core.ConsoleAppender[STDOUT] - No encoder set for the appender named "STDOUT". 09:12:59,008 |-WARN in ch.qos.logback.core.joran.action.AppenderAction - The object at the of the stack is not the appender named [STDOUT] pushed earlier. 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [scratch] to INFO 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN 09:12:59,008 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/cygwin/home/boxley/src/scratch/target/classes/logback.xml] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 09:12:58,992 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 09:12:59,008 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at at ch.qos.logback.core.pattern.parser.Parser.COMPOSITE(Parser.java:196) at at ch.qos.logback.core.pattern.parser.Parser.C(Parser.java:164) at at ch.qos.logback.core.pattern.parser.Parser.T(Parser.java:142) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:97) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.parse(Parser.java:92) at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:83) at at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:27) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) 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:121) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272) at at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160) at at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89) at at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at at scratch.spring.MynsMain.main(MynsMain.java:18) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115) 09:12:59,008 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Encoder has not been set. Cannot invoke its init method. 09:12:59,008 |-ERROR in ch.qos.logback.core.ConsoleAppender[STDOUT] - No encoder set for the appender named "STDOUT". 09:12:59,008 |-WARN in ch.qos.logback.core.joran.action.AppenderAction - The object at the of the stack is not the appender named [STDOUT] pushed earlier. 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [scratch] to INFO 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN 09:12:59,008 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.

    QOS.ch JIRA | 6 years ago | B. K. Oxley (binkley)
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I get an NPE parsing the below logback.xml when upgrading from 0.9.26 to 0.9.27: <configuration debug="${log.debug:-false}"> <property resource="configuration.properties"/> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%date %level [%thread] %logger(%file:%line\) - %msg%n </pattern> </encoder> </appender> <logger name="scratch" level="${log.level:-INFO}"/> <root level="${log-all.level:-WARN}"> <appender-ref ref="STDOUT"/> </root> </configuration> 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/cygwin/home/boxley/src/scratch/target/classes/logback.xml] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 09:12:58,992 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 09:12:59,008 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at at ch.qos.logback.core.pattern.parser.Parser.COMPOSITE(Parser.java:196) at at ch.qos.logback.core.pattern.parser.Parser.C(Parser.java:164) at at ch.qos.logback.core.pattern.parser.Parser.T(Parser.java:142) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:97) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.parse(Parser.java:92) at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:83) at at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:27) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) 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:121) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272) at at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160) at at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89) at at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at at scratch.spring.MynsMain.main(MynsMain.java:18) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115) 09:12:59,008 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Encoder has not been set. Cannot invoke its init method. 09:12:59,008 |-ERROR in ch.qos.logback.core.ConsoleAppender[STDOUT] - No encoder set for the appender named "STDOUT". 09:12:59,008 |-WARN in ch.qos.logback.core.joran.action.AppenderAction - The object at the of the stack is not the appender named [STDOUT] pushed earlier. 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [scratch] to INFO 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN 09:12:59,008 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 09:12:58,914 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/cygwin/home/boxley/src/scratch/target/classes/logback.xml] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 09:12:58,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 09:12:58,992 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 09:12:59,008 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at at ch.qos.logback.core.pattern.parser.Parser.COMPOSITE(Parser.java:196) at at ch.qos.logback.core.pattern.parser.Parser.C(Parser.java:164) at at ch.qos.logback.core.pattern.parser.Parser.T(Parser.java:142) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:97) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116) at at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101) at at ch.qos.logback.core.pattern.parser.Parser.parse(Parser.java:92) at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:83) at at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:27) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) 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:121) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272) at at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160) at at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89) at at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136) at at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at at scratch.spring.MynsMain.main(MynsMain.java:18) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115) 09:12:59,008 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Encoder has not been set. Cannot invoke its init method. 09:12:59,008 |-ERROR in ch.qos.logback.core.ConsoleAppender[STDOUT] - No encoder set for the appender named "STDOUT". 09:12:59,008 |-WARN in ch.qos.logback.core.joran.action.AppenderAction - The object at the of the stack is not the appender named [STDOUT] pushed earlier. 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [scratch] to INFO 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN 09:12:59,008 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 09:12:59,008 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.

    QOS.ch JIRA | 6 years ago | B. K. Oxley (binkley)
    java.lang.NullPointerException
  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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.lang.NullPointerException

      No message provided

      at ch.qos.logback.core.pattern.parser.Parser.COMPOSITE()
    2. Logback Core Module
      PatternLayoutBase.start
      1. ch.qos.logback.core.pattern.parser.Parser.COMPOSITE(Parser.java:196)
      2. ch.qos.logback.core.pattern.parser.Parser.C(Parser.java:164)
      3. ch.qos.logback.core.pattern.parser.Parser.T(Parser.java:142)
      4. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:97)
      5. ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116)
      6. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101)
      7. ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116)
      8. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101)
      9. ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116)
      10. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101)
      11. ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116)
      12. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101)
      13. ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116)
      14. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101)
      15. ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:116)
      16. ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:101)
      17. ch.qos.logback.core.pattern.parser.Parser.parse(Parser.java:92)
      18. ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:83)
      18 frames
    3. Logback Classic Module
      PatternLayoutEncoder.start
      1. ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:27)
      1 frame
    4. Logback Core Module
      GenericConfigurator.doConfigure
      1. ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167)
      2. ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315)
      3. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194)
      4. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180)
      5. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52)
      6. ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332)
      7. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126)
      8. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93)
      9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
      9 frames
    5. Logback Classic Module
      ContextInitializer.autoConfig
      1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
      2. ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
      2 frames
    6. 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
    7. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
      2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
      3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
      4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
      4 frames
    8. Apache Commons Logging
      LogFactory.getLog
      1. org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156)
      2. org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
      3. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272)
      3 frames
    9. Spring Context
      ClassPathXmlApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:160)
      2. org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89)
      3. org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59)
      4. org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61)
      5. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136)
      6. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
      6 frames
    10. scratch.spring
      MynsMain.main
      1. scratch.spring.MynsMain.main(MynsMain.java:18)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    12. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
      1 frame