java.sql.SQLException: java.sql.Time

This is a discussion on java.sql.SQLException: java.sql.Time within the MySQL Database forums, part of the Database Forums category; I get the following error message... java.sql.SQLException: Value '00:00:00 can not be represented as java.sql....


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-26-2007
mehatespam1085@yahoo.com
 
Posts: n/a
Default java.sql.SQLException: java.sql.Time

I get the following error message...
java.sql.SQLException: Value '00:00:00 can not be represented as
java.sql.Time

>From the following SQL call...

SELECT COUNT(pageurl) AS PageCount, pageurl, MAX(datetime) AS
LastAccess, SUM(VisitLength) as TotalVisitLength, VisitLength,
RecordNum, SUM(CASE WHEN VisitLength IS NULL THEN 1 ELSE 0 END) AS
NullVisits FROM clubvisits WHERE groupid = #clubid# GROUP BY pageurl
ORDER BY #OrderKey#

I am using ColdFusion 7 (not my choice - don't laugh) on MySQL
4.1.12a.

The error refers to the "VisitLength" field which is a "time" data
type in the database. In the MySQL documentation, it says that
00:00:00 is allowable for time (http://dev.mysql.com/doc/refman/4.1/en/
time.html).

So my question is, why is this error coming up if it's an allowable
value?

Reply With Quote
  #2 (permalink)  
Old 07-27-2007
Captain Paralytic
 
Posts: n/a
Default Re: java.sql.SQLException: java.sql.Time

On 26 Jul, 15:56, mehatespam1...@yahoo.com wrote:
> I get the following error message...
> java.sql.SQLException: Value '00:00:00 can not be represented as
> java.sql.Time
>
> >From the following SQL call...

>
> SELECT COUNT(pageurl) AS PageCount, pageurl, MAX(datetime) AS
> LastAccess, SUM(VisitLength) as TotalVisitLength, VisitLength,
> RecordNum, SUM(CASE WHEN VisitLength IS NULL THEN 1 ELSE 0 END) AS
> NullVisits FROM clubvisits WHERE groupid = #clubid# GROUP BY pageurl
> ORDER BY #OrderKey#
>
> I am using ColdFusion 7 (not my choice - don't laugh) on MySQL
> 4.1.12a.
>
> The error refers to the "VisitLength" field which is a "time" data
> type in the database. In the MySQL documentation, it says that
> 00:00:00 is allowable for time (http://dev.mysql.com/doc/refman/4.1/en/
> time.html).
>
> So my question is, why is this error coming up if it's an allowable
> value?


Because it is a java error, not a mysql error!

Reply With Quote
  #3 (permalink)  
Old 07-27-2007
mehatespam1085@yahoo.com
 
Posts: n/a
Default Re: java.sql.SQLException: java.sql.Time

On Jul 27, 4:42 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:

> Because it is a java error, not a mysql error!


But I'm not using Java - I'm not even using ColdFusion, really. When I
take out any ColdFusion from the page except for the <cfquery> wrapper
around the SQL, I still get an error, so it's not like it's related to
processing after the SQL call: it's the call itself.

Reply With Quote
  #4 (permalink)  
Old 07-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: java.sql.SQLException: java.sql.Time

mehatespam1085@yahoo.com wrote:
> On Jul 27, 4:42 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>
>> Because it is a java error, not a mysql error!

>
> But I'm not using Java - I'm not even using ColdFusion, really. When I
> take out any ColdFusion from the page except for the <cfquery> wrapper
> around the SQL, I still get an error, so it's not like it's related to
> processing after the SQL call: it's the call itself.
>


The fact you're getting a java.sql.SQLException shows you're using Java.

Maybe not directly - but at least indirectly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0