Home > Archive > PostgreSQL Bugs > February 2006 > BUG #2288: bad value for type timestamp using JDBC Type2 Driver version 8.1-405









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author BUG #2288: bad value for type timestamp using JDBC Type2 Driver version 8.1-405
Jonathan Albert C. Vallar

2006-02-28, 8:33 pm


The following bug has been logged online:

Bug reference: 2288
Logged by: Jonathan Albert C. Vallar
Email address: jonathan.vallar@gmail.com
PostgreSQL version: 8.1.3
Operating system: Centronix Linux
Description: bad value for type timestamp using JDBC Type2 Driver
version 8.1-405
Details:

My program reports "bad value for type timestamp" when I am accessing a
table with a field that is defined of type "Timestamp" through a java
program that uses the JDBC of postgres. The JDBC Driver is a type2 driver
with version, 8.1-405.

Below is the stack trace of the error:

Retrieve Operation failed on the BusinessObject Bad value for type timestamp
: [C@56c55d28 Exception: java.lang. NumberFormatExceptio
n: Expected time to
be colon-separated, got ' Stack Trace: java.lang. NumberFormatExceptio
n:
Expected time to be colon-separated, got ' at
org.postgresql.jdbc2.TimestampUtils. loadCalendar(Timesta
mpUtils.java:151)
at org.postgresql.jdbc2.TimestampUtils. toTimestamp(Timestam
pUtils.java:307)
at
org.postgresql.jdbc2. AbstractJdbc2ResultS
et. getTimestamp(Abstrac
tJdbc2Result
Set.java:419) at
org.postgresql.jdbc2. AbstractJdbc2ResultS
et. getTimestamp(Abstrac
tJdbc2Result
Set.java:2088) at
com.crossworlds.connectors.JDBC.JDBCBOhandler. doContainerRetrieve(
JDBCBOhand
ler.java:3697) at
com.crossworlds.connectors.JDBC.JDBCBOhandler. doRecursiveRetrieve(
JDBCBOhand
ler.java:3316) at
com.crossworlds.connectors.JDBC.JDBCBOhandler. doRetrieve(JDBCBOhan
dler.java:
3265) at
com.crossworlds.connectors.JDBC.JDBCBOhandler. doVerbFor(JDBCBOhand
ler.java:1
346) at
com.crossworlds.cwconnectorapi. CWConnectorBOHandler
. doVerbFor(CWConnecto
rBOH
andler.java:127) at
CxCommon.BusinessObject. doVerbFor(BusinessOb
ject.java:2128) at
com.crossworlds.cwconnectorapi.CWConnectorBusObj. doVerbFor(CWConnecto
rBusObj
..java:126) at
com.crossworlds.connectors.JDBC.JDBCConnectorAgent. pollForEvents(JDBCCo
nnect
orAgent.java:1137) at
AppSide_Connector.BusObjJavaInterface. poll(BusObjJavaInter
face.java:355)
at AppSide_Connector.AppCalls.poll(AppCalls.java:191) at
AppSide_Connector. AgentBusinessObjectM
anager. poll(AgentBusinessOb
jectManager
..java:719) at AppSide_Connector.AppPolling.poll(AppPolling.java:294) at
AppSide_Connector.AppPolling. doPollingContinuousW
ait(AppPolling.java:556)
at AppSide_Connector.AppPolling.run(AppPolling.java:121) at
java.lang.Thread.run(Thread.java:513) End of Stack Trace SQLException
{2}]

The Schema of the table is:

(1 row)

wbi_db=> \d xworlds_events;
Table "public.xworlds_events"
Column | Type | Modifiers
----------------+-----------------------------+-----------
event_id | bigint | not null
connector_id | character varying(40) |
object_key | character varying(80) | not null
object_name | character varying(40) | not null
object_verb | character varying(40) | not null
event_priority | real | not null
event_time | timestamp without time zone |
event_status | integer |
event_comment | character varying |


I have one record:

wbi_db=> select * from xworlds_events;
event_id | connector_id | object_key | object_name | object_verb |
event_priority | event_time | event_status | event_comment
----------+--------------+------------+----------------------+-------------+
----------------+---------------------------+--------------+---------------
1 | PostgreSQL | 8100000000 | POS_to_SAP_1_WRAPPER
| Create |
1 | 2006-02-27 19:51:22.58118 | 0 | Test
(1 row)


Is there a problem with the JDBC Driver? Specifically in the method
loadDriver?


Thanks in advance :)

Best Regards,

Jonathan

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com