[JIRA] Created: (LBCORE-189) DBAppender swallow NullPointerException

DBAppender swallow NullPointerException --------------------------------------- Key: LBCORE-189 URL: http://jira.qos.ch/browse/LBCORE-189 Project: logback-core Issue Type: Bug Components: Appender Affects Versions: 0.9.26 Reporter: Artyom Kalita Assignee: Logback dev list Priority: Minor logback.xml : <appender name="DB" class="ch.qos.logback.classic.db.DBAppender"> <connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource"> <dataSource class ="com.mchange.v2.c3p0.ComboPooledDataSource"></dataSource> <driverClass>com.mysql.jdbc.Driver</driverClass> <url>jdbc:mysql://localhost:3306/mrb</url> <user>root</user> <password>admin</password> </connectionSource> </appender> Java code (using DBAppender): Date dateFrom = null; log.info("Processing code {}; code type is {}; request date {}; record from date {}",new Object[] { code, codeType, new Date(), dateFrom }); DBAppender had null pointer exception on 141 line because of dateFrom, but this exception is swallowed and not shown. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-189?page=com.atlassian.jira.plugin.system.i... ] Ceki Gulcu reassigned LBCORE-189: --------------------------------- Assignee: Ceki Gulcu (was: Logback dev list)
DBAppender swallow NullPointerException ---------------------------------------
Key: LBCORE-189 URL: http://jira.qos.ch/browse/LBCORE-189 Project: logback-core Issue Type: Bug Components: Appender Affects Versions: 0.9.26 Reporter: Artyom Kalita Assignee: Ceki Gulcu Priority: Minor
logback.xml : <appender name="DB" class="ch.qos.logback.classic.db.DBAppender"> <connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource"> <dataSource class ="com.mchange.v2.c3p0.ComboPooledDataSource"></dataSource> <driverClass>com.mysql.jdbc.Driver</driverClass> <url>jdbc:mysql://localhost:3306/mrb</url> <user>root</user> <password>admin</password> </connectionSource> </appender> Java code (using DBAppender): Date dateFrom = null; log.info("Processing code {}; code type is {}; request date {}; record from date {}",new Object[] { code, codeType, new Date(), dateFrom }); DBAppender had null pointer exception on 141 line because of dateFrom, but this exception is swallowed and not shown.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-239?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu moved LBCORE-189 to LBCLASSIC-239: --------------------------------------------- Project: logback-classic (was: logback-core) Key: LBCLASSIC-239 (was: LBCORE-189) Affects Version/s: 0.9.27 (was: 0.9.26) Component/s: appender (was: Appender)
DBAppender swallow NullPointerException ---------------------------------------
Key: LBCLASSIC-239 URL: http://jira.qos.ch/browse/LBCLASSIC-239 Project: logback-classic Issue Type: Bug Components: appender Affects Versions: 0.9.27 Reporter: Artyom Kalita Assignee: Ceki Gulcu Priority: Minor
logback.xml : <appender name="DB" class="ch.qos.logback.classic.db.DBAppender"> <connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource"> <dataSource class ="com.mchange.v2.c3p0.ComboPooledDataSource"></dataSource> <driverClass>com.mysql.jdbc.Driver</driverClass> <url>jdbc:mysql://localhost:3306/mrb</url> <user>root</user> <password>admin</password> </connectionSource> </appender> Java code (using DBAppender): Date dateFrom = null; log.info("Processing code {}; code type is {}; request date {}; record from date {}",new Object[] { code, codeType, new Date(), dateFrom }); DBAppender had null pointer exception on 141 line because of dateFrom, but this exception is swallowed and not shown.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-239?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu resolved LBCLASSIC-239. ---------------------------------- Fix Version/s: 0.9.28 Resolution: Fixed Fixed in http://github.com/ceki/logback/commit/b8790fc09e
DBAppender swallow NullPointerException ---------------------------------------
Key: LBCLASSIC-239 URL: http://jira.qos.ch/browse/LBCLASSIC-239 Project: logback-classic Issue Type: Bug Components: appender Affects Versions: 0.9.27 Reporter: Artyom Kalita Assignee: Ceki Gulcu Priority: Minor Fix For: 0.9.28
logback.xml : <appender name="DB" class="ch.qos.logback.classic.db.DBAppender"> <connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource"> <dataSource class ="com.mchange.v2.c3p0.ComboPooledDataSource"></dataSource> <driverClass>com.mysql.jdbc.Driver</driverClass> <url>jdbc:mysql://localhost:3306/mrb</url> <user>root</user> <password>admin</password> </connectionSource> </appender> Java code (using DBAppender): Date dateFrom = null; log.info("Processing code {}; code type is {}; request date {}; record from date {}",new Object[] { code, codeType, new Date(), dateFrom }); DBAppender had null pointer exception on 141 line because of dateFrom, but this exception is swallowed and not shown.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (2)
-
Artyom Kalita (JIRA)
-
Ceki Gulcu (JIRA)