java.lang.NullPointerException

QOS.ch JIRA | Eugene Fedotov | 2 years ago
  1. 0

    Such configuration {code:xml} <configuration> <evaluator name="HIDE_EX_EVAL"> <expression>throwable instanceof com.acme.MyException</expression> </evaluator> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>[%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n%red(%rEx{full, HIDE_EX_EVAL})</pattern> </encoder> </appender> ... </configuration> {code} leads to NullPointerException {noformat} 00:32:38,188 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 00:32:38,191 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 00:32:38,212 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 00:32:38,250 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@12:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at ch.qos.logback.classic.pattern.ThrowableProxyConverter.start(ThrowableProxyConverter.java:74) at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37) at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:33) at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91) at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28) at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317) at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196) at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182) at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) ... {noformat}

    QOS.ch JIRA | 2 years ago | Eugene Fedotov
    java.lang.NullPointerException
  2. 0

    Such configuration {code:xml} <configuration> <evaluator name="HIDE_EX_EVAL"> <expression>throwable instanceof com.acme.MyException</expression> </evaluator> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>[%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n%red(%rEx{full, HIDE_EX_EVAL})</pattern> </encoder> </appender> ... </configuration> {code} leads to NullPointerException {noformat} 00:32:38,188 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 00:32:38,191 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 00:32:38,212 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 00:32:38,250 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@12:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at ch.qos.logback.classic.pattern.ThrowableProxyConverter.start(ThrowableProxyConverter.java:74) at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37) at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:33) at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91) at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28) at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317) at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196) at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182) at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) ... {noformat}

    QOS.ch JIRA | 2 years ago | Eugene Fedotov
    java.lang.NullPointerException
  3. 0

    Trying filtering out stack traces feature introduced in 1.1.3. In general it works fine, but find out that it doesn't work much for our case, i.e. we use %replace to flatter stack trace, and expression like: {code}%replace(%ex{full, org.springframework}){'\n', '|||'}%nopex{code} leads to null pointer exception: {code} 11:18:31,018 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@47:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at at ch.qos.logback.classic.pattern.ThrowableProxyConverter.start(ThrowableProxyConverter.java:75) at at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37) at at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:33) at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91) at at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28) 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:317) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) 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:77) at at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:119) {code} However following expression works fine: {code}%replace(%ex{full}){'\n', '|||'}%nopex{code}

    QOS.ch JIRA | 10 months ago | Andriy Tkach
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trying filtering out stack traces feature introduced in 1.1.3. In general it works fine, but find out that it doesn't work much for our case, i.e. we use %replace to flatter stack trace, and expression like: {code}%replace(%ex{full, org.springframework}){'\n', '|||'}%nopex{code} leads to null pointer exception: {code} 11:18:31,018 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@47:19 - RuntimeException in Action for tag [encoder] java.lang.NullPointerException at java.lang.NullPointerException at at ch.qos.logback.classic.pattern.ThrowableProxyConverter.start(ThrowableProxyConverter.java:75) at at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37) at at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:33) at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91) at at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28) 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:317) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) 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:77) at at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:119) {code} However following expression works fine: {code}%replace(%ex{full}){'\n', '|||'}%nopex{code}

    QOS.ch JIRA | 10 months ago | Andriy Tkach
    java.lang.NullPointerException
  6. 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.classic.pattern.ThrowableProxyConverter.start()
    2. Logback Classic Module
      ThrowableProxyConverter.start
      1. ch.qos.logback.classic.pattern.ThrowableProxyConverter.start(ThrowableProxyConverter.java:74)
      1 frame
    3. Logback Core Module
      PatternLayoutBase.start
      1. ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37)
      2. ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:33)
      3. ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91)
      3 frames
    4. Logback Classic Module
      PatternLayoutEncoder.start
      1. ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28)
      1 frame
    5. Logback Core Module
      EventPlayer.play
      1. ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167)
      2. ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
      3. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
      4. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
      5. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
      5 frames