CachedRowSet  Timestamp problem

Posted on 2011-10-27
Last Modified: 2012-05-12
Is there a workaround for exception when attempting to read a timestamp from a CachedRowSet ?

if(type == 93){                                                              //timestamp                                                        cell.setCellValue(outputResultsCrs.getTimestamp(i));

java.lang.ClassCastException: oracle.sql.TIMESTAMP cannot be cast to java.sql.Timestamp
Question by:Waponi
    LVL 86

    Accepted Solution


    Open in new window


    Author Closing Comment

    LVL 86

    Expert Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Delphi selector screen 2 45
    Issues installing SSL certificate into Apache Tomcat 3 49
    Fibonacci challenge 11 61
    countAbc challenge 9 35
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
    This video teaches viewers about errors in exception handling.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now