[prev in list] [next in list] [prev in thread] [next in thread] 

List:       logback-dev
Subject:    [logback-dev] [JIRA] Assigned: (LBCLASSIC-216)
From:       "Ceki Gulcu (JIRA)" <noreply-jira () qos ! ch>
Date:       2010-07-28 8:16:16
Message-ID: 1864158605.1280304976596.JavaMail.ceki () pixie
[Download RAW message or body]


     [ http://jira.qos.ch/browse/LBCLASSIC-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Ceki Gulcu reassigned LBCLASSIC-216:
------------------------------------

    Assignee: Ceki Gulcu  (was: Logback dev list)

> java.lang.NullPointerException in ThrowableProxyUtil.java:42
> ------------------------------------------------------------
> 
> Key: LBCLASSIC-216
> URL: http://jira.qos.ch/browse/LBCLASSIC-216
> Project: logback-classic
> Issue Type: Bug
> Components: Other
> Affects Versions: 0.9.24
> Environment: IDE WebSphere 6.1 , IBM JDK 1.5
> Reporter: Luciano Canè
> Assignee: Ceki Gulcu
> 
> {code:title=test example}
> import org.slf4j.LoggerFactory;
> public class TestLogBack {
> 	public TestLogBack() {
> 		super();
> 	}
> 	public static void main(String[] args) {
> 		TestLogBack test = new TestLogBack();
> 		test.execute();
> 	}
> 	private void execute() {
> 		org.slf4j.Logger logger = LoggerFactory.getLogger(TestLogBack.class);
> 		//test
> 		try {
> 			throw new TestLogBackException("Test: getStackTrace() return null"); \
> //$NON-NLS-1$  } catch (Throwable t) {
> 			logger.error("Messaggio di Test di {}", t.getMessage(), t); //$NON-NLS-1$
> 		}
> 	}
> 	class TestLogBackException
> 			extends Exception {
> 		private static final long serialVersionUID = 1L;
> 		public TestLogBackException(String message) {
> 			super(message);
> 		}
> 		@Override
> 		public StackTraceElement[] getStackTrace() {
> 			return null;
> 		}
> 	}
> }
> {code}
> {code:title=exception stack trace}
> Exception in thread "main" java.lang.NullPointerException
> 	at ch.qos.logback.classic.spi.ThrowableProxyUtil.steArrayToStepArray(ThrowableProxyUtil.java:42)
>   at ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:35)
> 	at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:123)
> 	at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:469)
> 	at ch.qos.logback.classic.Logger.filterAndLog_2(Logger.java:462)
> 	at ch.qos.logback.classic.Logger.error(Logger.java:580)
> 	at z_prove.logback.TestLogBack.execute(TestLogBack.java:28)
> 	at z_prove.logback.TestLogBack.main(TestLogBack.java:13)
> {code}

-- 
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

       
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://qos.ch/mailman/listinfo/logback-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic