java.sql.SQLException: Cannot convert value ’0000-00-00 00:00:00′ from column X to TIMESTAMP

sqlException

[cc lang=”java”]java.sql.SQLException: Cannot convert value ’0000-00-00 00:00:00′ from column X to TIMESTAMP

Caused by: java.sql.SQLException: Value ‘[B@465da37c’ can not be represented as java.sql.Timestamp[/cc]
Ese es el error que me salio hoy, haciendo unas consultillas con java y luego queriendo pasar a String(cadena) el valor 0000-00-00 00:00:00 me saco de onda por que si lo pasaba a string pero salia la exception de sql cannot conver blabla

Solucion
Pasar o asignar NULL al registro que te esta generando esta exception, a mi me funciono.

Facebook Comments

1 comment
  1. Bitacoras.com
    marzo 26, 2011 at 12:01 am

    Información Bitacoras.com…

    Valora en Bitacoras.com: 1 2 3 java.sql.SQLException: Cannot convert value ’0000-00-00 00:00:00′ from column X to TIMESTAMP … Caused by: java.sql.SQLException: Value ‘[B@465da37c’ can not be represented as java.sql.TimestampEse es el error que ……

    Reply
Leave a Reply

Your email address will not be published. Required fields are marked *

Do NOT follow this link or you will be banned from the site!