Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlTimestampConverter doesn't handle parsing strings without fractional second #53

msvticket opened this issue Apr 22, 2016 · 0 comments


Copy link

commented Apr 22, 2016

With a string of "2018-10-11 11:35:17" I get the error below. Apparently fractional seconds are required though the message indicate them as optional. Also java.sql.Timestamp#valueOf(java.lang.String) handles strings without fractional seconds so it would be expected that SqlTimestampConverter would as well.

---- Debugging information ----
message             : Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
class               : java.sql.Timestamp
required-type       : java.sql.Timestamp
converter-type      : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.extended.SqlTimestampConverter
line number         : 13
class[1]            : se.ticket.order.domain.Order
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
version             : 1.4.9
@joehni joehni added the bug label Apr 22, 2016
@joehni joehni self-assigned this Apr 22, 2016
@joehni joehni added this to the 1.4.x milestone Apr 22, 2016
@joehni joehni closed this in 1cec223 Nov 9, 2016
joehni added a commit that referenced this issue Nov 9, 2016
@joehni joehni modified the milestones: 1.4.x, 1.4.10 Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.