• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Oracle timestamp error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Oracle timestamp error


  • Subject: Oracle timestamp error
  • From: Ken Anderson <email@hidden>
  • Date: Wed, 6 Jun 2007 12:11:37 -0400

Everyone,

As you all probably know by now, I've been porting our Sybase app to Oracle.  I have a table that has a valid date in it in Oracle, but when I fetch from that table, I get this error:

[2007-06-06 15:58:36,629] ERROR com.commoditrack.model.CTEditingContext Exception raised prior to save 
com.webobjects.jdbcadaptor.JDBCAdaptorException: oracle.sql.TIMESTAMP@a70e3a of type oracle.sql.TIMESTAMP is not a valid Date type.  You must use java.sql.Timestamp, java.sql.Date, or java.sql.Time
at com.webobjects.jdbcadaptor.JDBCColumn._processValueIfNeeded(JDBCColumn.java:289)
at com.webobjects.jdbcadaptor.JDBCColumn._fetchValue(JDBCColumn.java:323)
at com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.java:307)
at com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.java:1406)
at com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:302)

Does anyone have any idea what could be causing this?  My typeinfo in the model is correct...

Thanks,
Ken

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Oracle timestamp error
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: New Eclipse Project not seeing Model
  • Next by Date: Re: Oracle timestamp error
  • Previous by thread: Re:WWDC Meeting
  • Next by thread: Re: Oracle timestamp error
  • Index(es):
    • Date
    • Thread