<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>
<div>java.lang.ClassCastException: ch.qos.logback.classic.spi.LoggingEvent cannot be cast to ch.qos.logback.access.spi.AccessEvent</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.access.db.DBAppender.subAppend(DBAppender.java:36)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.core.db.DBAppenderBase.append(DBAppenderBase.java:107)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:64)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:285)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.classic.Logger.callAppenders(Logger.java:272)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:473)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:427)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>at ch.qos.logback.classic.Logger.info(Logger.java:631)</div>
</div>
</div>
<div><br>
</div>
<div>Steph</div>
<div><br>
<div>
<div>On Jun 6, 2011, at 5:18 PM, Ceki Gülcü wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hello Stephen,<br>
<br>
LoggingEvent is an instance of ILoggingEvent so you should not get class <br>
cast exceptions. Could you send the stack trace?<br>
--<br>
Ceki<br>
<br>
On 06/06/2011 10:50 PM, Stephen Schaeffer wrote:<br>
<blockquote type="cite">Hi all,<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I'm attempting to use the DBAppender, with the MySQL dialect.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I am unable to actually put any records into my DB however. It seems<br>
</blockquote>
<blockquote type="cite">that the culprit is that in DBAppenderBase:append, there is a call to<br>
</blockquote>
<blockquote type="cite">subAppend, which is implemented either in Access, in which case it takes<br>
</blockquote>
<blockquote type="cite">an AccessEvent as it's first argument, or in Classic, in which case it<br>
</blockquote>
<blockquote type="cite">takes an ILoggingEvent as it's first argument. What it is actually<br>
</blockquote>
<blockquote type="cite">passing is a LoggingEvent (no initial I) object, and so I'm getting<br>
</blockquote>
<blockquote type="cite">ClassCastExceptions, and nothing in my DB.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I'm assuming that someone out there has this working, and I'm just<br>
</blockquote>
<blockquote type="cite">wondering what I'm doing wrong.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Thanks for any help.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">*Stephen Schaeffer*<br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
http://qos.ch/mailman/listinfo/logback-user<br>
<br>
</div>
</blockquote>
</div>
<br>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); ">
<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">Stephen
 Schaeffer</strong>&nbsp;<br>
IntercontinentalExchange | ICE<br>
2100 RiverEdge Pkwy | 5th Floor | Atlanta, GA 30328<br>
Tel: 203.599.1881</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); ">
<a href="mailto:stephen.schaeffer@theice.com">stephen.schaeffer@theice.com</a></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; min-height: 8pt; height: 8pt; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); ">
&nbsp;<br class="webkit-block-placeholder">
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 1em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); ">
24-hour ice helpdesk 770.738.2101<br>
<a class="jive-link-external-small" href="http://www.theice.com/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(53, 84, 145); text-decoration: none; ">http://www.theice.com/</a></div>
<div style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(51, 51, 51); ">
<br>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete
 it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this
 message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.<br>
</font>
</body>
</html>