Paul Darling wrote:
> I've read on this list that to have getTimestamp()
> use the Calendar object parameter, useTimezone
> must be true in the connection URL. However,
> including useTimezone=true in the URL is causing a
> java.lang.ExceptionInInitializerError to be thrown
> when using the URL.
>
> I don't see the exception if
> serverTimezone=<some TZ value> is also
> included included in URL. Does serverTimezone
> need to be included if useTimezone=true? I
> wouldn't have thought so, because I want the
> actual timezone of the server to be used, not some
> value that I define that may not always match the
> server time zone.
>
> Any help appreciated. Thanks,
> Paul
Paul,
I've never heard of an ExceptionInInitializerError being thrown with this feature. In general, when asking for help, it is good to post the entire stack trace, rather than "editorialize" down to the error message alone, as often key information in solving the problem is present in a full stack trace. Also, it helps if you post an example section of your code that shows _exactly_ how you've configured things. Would you mind getting back to us with this information?
-Mark
Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html