Problem in Rowset

I was using rowset.jar in my application i.e in weblogic 5.1, it was working fine.
Now i've upgraded my weblogic version to 6.1 it has some problem in rowset.jar.
rowset.jar has CachedRowSet.class. it has a method getDate(int i),
In this method it's getting a columntype using RowSetMetaData
In weblogic 5.1 the type returned is 93,but in 6.1 it is returning 91.
So while type casting it throws ClassCastException.
Actually for both of the versions,the reference object is java.sql.TimeStamp.

hari wrote:
I was using rowset.jar in my application i.e in weblogic 5.1, it was working fine.
Now i've upgraded my weblogic version to 6.1 it has some problem in rowset.jar.Who's RowSet Implementation are you using? WLS ships a RowSet
implementation in WLS 8.1 that you might want to check out.
>
rowset.jar has CachedRowSet.class. it has a method getDate(int i),
In this method it's getting a columntype using RowSetMetaData
In weblogic 5.1 the type returned is 93,but in 6.1 it is returning 91.91 is a Date
93 is a Timestamp
Are you using the same JDBC driver on both versions? (I suspect not
given the different results.)
>
So while type casting it throws ClassCastException.Can you show me the ClassCastException?
-- Rob
>
Actually for both of the versions,the reference object is java.sql.TimeStamp.

Similar Messages

  • Still problems with RowSet Sun implementation

    In a topic I previoulsy posted I shown my inability to make JoinRS work:
    http://forum.java.sun.com/thread.jsp?thread=523969&forum=48&message=2540269
    I was told the new realease, due to be out sometime in June, would have included corrections for my problem.
    Do you have any info about the new realease of Rowset RI by Sun?
    I downloaded JDBC RowSet Implementations 1.0 JWSDP 1.4 Co-Bundle, hoping that would be it, but the RI included in it is still 1.0 (though the jar lib files have different size)
    Please help me with any info you can provide. My university thesis would greatly benefit from it.
    Thank you in advance.

    Yes Neo, sometime in the next two weeks, we will release it.
    There is some formalities to be done as soon as they are done we will be out.
    Please saty tuned. :)

  • Problem with Rowsets

    Hi folks
    I am trying to implement RowSet interface but I am facing problem in implementing CachedRowSet and WebRowSet. Can someone tell me form where I can get some code for these and also some example for running that code.
    Thanx in advance
    Nitin

    You asked for some sample code :
    http://www.geocities.com/sundar_rajan_in/java/servlets/databasecaching.html

  • Problem with rowset query

    hi,
    i work whith oracle 8.1.7 . when i define this query
    SELECT ALL CREATOR.ARTICLE.SOC_CODE,
    LIBELLE.ACT_LIB(ARTICLE.ACT_CODE) BR_ACT_LIB,
    LIBELLESYSTBLN_LIB('LGN_CODE',ARTICLE.LGN_CODE) LNG_LIB,
    substr(LIBELLE.MRQ_LIB(ARTICLE.MRQ_CODE),1,35) MRQ_LIB,
    and click run query i have the folowing error encountered"(" at line 2 ...
    if i remove "LIBELLESYSTBLN_LIB('LGN_CODE',ARTICLE.LGN_CODE) "
    the query run normally.
    LIBELLE and LIBELLESYSTBLN_LIB are stored packages.
    the problem is the constant argument 'LGN_CODE'
    when i run the same query with other client tools, it succeful.
    thanks in advance

    Hi Jim,
    thanks for your replay.
    I use creator early access 2 and now the ide don't start, it stop in starting modules phase(i uninstall jsc, download new version, rename the folder that contain the project. Nothing change).
    I create query by drag and drop the table, i open the query editor and i add the two lines
    if i add only the line that no contain the constant it work fine
    i have two information message (parsing query) if i click i found '' added at the end of constant like this LIBELLESYSTBLN_LIB('LGN_CODE''',ARTICLE.LGN_CODE).
    Thanks

  • ApplyChanges Problem in RowSet with SQLServer

    Hi
    I m using CachedRowSet and trying to update,insert and delete operation on it.When i try to update in the database by calling applyChanges(cn) then the following exception arises.
    Rememnber this problem is with Microsoft SQLServer.Same operations are executing successfully with Oracle Database.
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Source)
    I m wiating for your reply.
    Good Bye
    Abdul Qadeer

    That is, you have to say SelectMethod=Cursor in the connection URL.

  • Types problem with rowset control and generated pageflow

    Hello,
    I made a rowset control from a flat table. Some of the columns where DATE type.
    In the associated pageflow, it generated a Databaseform bean and for the dates, it used a timestamp type.
    Which format should I use in the input of the form field ??
    each time i submit, the value in the action form is null ...
    what to do ? what should I modify in the rowset control, if I want to deal with string values til the real insert ?
    Thank you indeed

    Hello,
    I made a rowset control from a flat table. Some of the columns where DATE type.
    In the associated pageflow, it generated a Databaseform bean and for the dates, it used a timestamp type.
    Which format should I use in the input of the form field ??
    each time i submit, the value in the action form is null ...
    what to do ? what should I modify in the rowset control, if I want to deal with string values til the real insert ?
    Thank you indeed

  • Problem with populating ROWSET

    Hi ,
    I have a problem with ROWSET.
    I have a table with 6 columns and approximately more than 200 records.
    I reterive them in a ResultSet and resultset gets populated.
    But I populate Rowset with that ResultSet then it hangs for atleast 1 minuate and then it comes back to its original state.
    Can anyone have thge idea why it happens....?
    Is therer any issue with the Rowset ?
    Why it takes too much time to populate the rowset..?
    Thanks
    Tariq

    Here it is....
    CachedRowSetImpl crs = new CachedRowSetImpl();
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet result = stmt.executeQuery(sql); // Here we have 250 records in ResultSet
    crs.populate(result); // This is the problem. This line takes atleast 1min to executeAny solution u gurus have ....

  • ROWSET taking too much time to populate

    Hi ,
    I have a problem with ROWSET.
    I have a table with 6 columns and approximately more than 200 records.
    I reterive them in a ResultSet and resultset gets populated.
    But when I populate Rowset with that ResultSet then it hangs for atleast 1 minuate and then it comes back to its original state.
    Can anyone have the idea why it happens....?
    Is there any issue with the Rowset ?
    Why it takes too much time to populate the rowset..?
    CachedRowSetImpl crs = new CachedRowSetImpl();
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet result = stmt.executeQuery(sql); // Here we have 250 records in ResultSet
    crs.populate(result); // This is the problem. This line takes atleast 1min to executeThanks
    Tariq

    I think this Java Forum is not the right FORUM for
    me.....I think you are right. This is NOT the FORUM for YOU.
    I think u (So Called GURUS) all need to work on JDBC
    more and on large application so that u should be
    able to solve complex problem.
    THIS is PROBABLY not the BEST way for YOU to get HELP
    I hope u will work on my suggestion...
    I HOPE you CHOKE on a TURNIP and DIE.
    Thx
    Muhammad TariqFuck you.
    On your way out please make sure to stop in at Google and search for "Forums for arrogant fuckwits". That's the kind of resource you need.

  • OracleXMLSQLException

    I'm posting this msg again.
    I'd like to get an answer ASAP.
    Please...
    Thanks.
    I'm trying to load XML file into Oracle.
    After I download the beta version (9.0.0.0.0 Beta release of the XDK), I got this error :
    oracle.xml.sql.OracleXMLSQLException: 'java.lang.NumberFormatException: 12.5' encountered during processing ROW element 0.
    All prior XML row changes were rolled back. in the XML document.
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2196)
    at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1269)
    at load_company.main(load_company.java:613)
    It was successfully loaded with the previous version of XSU. But, there was a XML file size limit. That's why I got the latest version of XSU. The XML file is same as before.
    * input file (a small sample)
    <?xml version="1.0" ?>
    <ROWSET>
    <ROW>
    <value1>330000</value1>
    <date1>09-FEB-1998</date2>
    <price>12.5</price> ==> this's causing a problem
    <state>NJ</state>
    <value2>-1200</value2> ==> this's causing a problem
    </ROW>
    </ROWSET>
    * target table
    column : price
    datatype : number(11,2)
    column : value2
    datatype : number(11,2)
    I think if the number value has decimal point (e.g. 23.01) or negative number (e.g. -300), then it cause an error.
    null

    This must be a new bug. I can reproduce with Oracle8i 8.1.7 using either the 8.1.7 JDBC driver or the Oracle9i Beta JDBC driver (not publically available yet).
    Here's what I did:
    create table testtab( name varchar2(10), val number(11,2));The XML I try to insert is:
    <ROWSET>
    <ROW>
    <NAME>Steve</NAME>
    <VAL>12.5</VAL>
    </ROW>
    </ROWSET>The command I try to execute is:
    E:\xml\xdk9_0_0_0>java OracleXML putXML
    -user "scott/tiger"
    -conn "jdbc:oracle:thin:@localhost:1521:ORCL"
    -fileName test.xml
    testtab
    oracle.xml.sql.OracleXMLSQLException: 'java.lang.NumberFormatException: 12.5' en
    countered during processing ROW element 0. All prior XML row changes were rolled back. in the XML document.
    oracle.xml.sql.dml.OracleXMLSave.saveXML(org.w3c.dom.Document, int)The workaround is to create a view that "casts" these number columns to strings like this:
    create view testtabview as select name, to_char(val) as val from testtab;
    SQL> create trigger testtabviewtrig
    2 instead of insert on testtabview for each row
    3 begin
    4 insert into testtab(name,val) values (:new.name, :new.val);
    5 end;
    6 .
    SQL> /
    Trigger created.Then repeat the OracleXML command above against the testtabview instead.
    Then I get:
    successfully inserted 1 rows into testtabview

  • OracleXMLSQLException : NumberFormatException

    I'm trying to load XML file into Oracle.
    After I download the beta version (9.0.0.0.0 Beta release of the XDK), I got this error :
    oracle.xml.sql.OracleXMLSQLException: 'java.lang.NumberFormatException: 12.5' encountered during processing ROW element 0.
    All prior XML row changes were rolled back. in the XML document.
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2196)
    at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1269)
    at load_company.main(load_company.java:613)
    It was successfully loaded with the previous version of XSU. But, there was a XML file size limit. That's why I got the latest version of XSU. The XML file is same as before.
    Please, Any Idea?
    null

    * input file (a small sample)
    illustrating the part ). What does the look like ().
    <?xml version="1.0" ?>
    <ROWSET>
    <ROW>
    <value1>330000</value1>
    <date1>09-FEB-1998</date2>
    <price>12.5</price> ==> this's causing a problem
    <state>NJ</state>
    <value2>-1200</value2> ==> this's causing a problem
    </ROW>
    </ROWSET>
    * target table
    column : price
    datatype : number(11,2)
    column : value2
    datatype : number(11,2)
    I think if the number value has decimal point (e.g. 23.01) or negative number (e.g. -300), then it cause an error.
    null

  • Problems with cached rowsets:  execute() not called

    I'm using sun studio creator and am trying to use a cached rowset. The code for creating it and accessing it has been created by studio creator.
    The CachedRowSetXImpl is created by the session bean _init method (see below) and is accessed via the jsf web page via a value= attribute on a data table.
    The problem is is that the first time the cached rowset is accessed, it generates the error 'java.sql.SQLException execute() never called. After this is works properly. I've already posted this iin the JSF forum, but didn't get a response. Any ideas?
    private void _init() throws Exception {
    System.err.println ( ClassName + " _init start");
    arg_info_prvdrRowSet.setDataSourceName("java:comp/env/jdbc/isisdev1");
    arg_info_prvdrRowSet.setCommand("SELECT * FROM ISIS_APP.ARG_INFO_PRVDR");
    arg_info_prvdrRowSet.setTableName("ARG_INFO_PRVDR");
    System.err.println ( ClassName + " _init end");
    private CachedRowSetXImpl arg_info_prvdrRowSet = new CachedRowSetXImpl();
    public CachedRowSetXImpl getArg_info_prvdrRowSet() {
    System.err.println ( ClassName + " getArg_info_prvdrRowSet start*****");
    try {
    System.err.println ( ClassName + " Table Name = " +
    arg_info_prvdrRowSet.getMetaData().getTableName(1));
    arg_info_prvdrRowSet.first();
    } catch (Exception Err) {
    System.err.println ( ClassName + " Error is " + Err.getClass().getName() + " " + Err.getMessage() );
    System.err.println ( ClassName + " getArg_info_prvdrRowSet end");
    return arg_info_prvdrRowSet;
    }

    Did you get the solution for this. if you can get please, tell me .
    i m struggling like hell. everything ok. I cannot get the rows. when i deploy in Tomcat 5.5
    con = DriverManager.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setDataSourceName("java:comp/env/jdbc/sea");
    //categoryRowSet.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setUrl("jdbc:mysql://localhost:3306/seafood");
    categoryRowSet.setUsername("root");
    categoryRowSet.setPassword("");
    //categoryRowSet.execute(con);
    categoryRowSet.setCommand("SELECT * FROM category");
    categoryRowSet.setTableName("category");
    categoryRowSet.execute();

  • Rowset column name problem

    All,
    I am a new user of JSC and am hopefully running into a simple issue. I've searched the forums here but so far have not found any postings regarding my problem. Apologies if this has been asked and answered before.
    I am building a webapp to display data from a MySQL database. There are several places in the schema where I need to join to the same table multiple times. I have setup the joins in the query builder and also setup a view in the database directly that does the joins. Either way, the query works fine and returns the expected data. The trouble is that the rowset underlying the dataprovider is not returning the metadata using either the table&column aliases from the query builder or the column names from the view, but rather in all cases returning the underlying table and column names. In my table component I am trying to display the data from each table.column alias distinctly but because the metadata visible to the dataprovider is the same (ie table.column), I end up with both table columns showing the same data. I've tried to track down the implementation of the metadata getter method but it is apparently in source that is not provided.
    In case it matters, I'm using mysql-connector-java-5.0.3-bin.jar as the driver.
    Is there something I'm missing or is there a workaround for this?
    Thanks in advance,
    Scott

    Thanks,
    I should have been more explicit in my description of the problem.
    Example of what I have is as follows:
    select table1.columnA, table2.columnA as columnX,....
    from table_name as table1 join table_name as table2....
    where there are other tables and columns in the select clause as well as the join conditions but where the base table and column (in the above table_name.columnA) are used twice with two different aliases. I have done this join directly in the query builder and also created a view, hiding the actual names of the columns. I can execute either query in the query builder and the columns in the result set "spreadsheet" are labeled with the base table column names, not the aliased names or the view's column names. This is causing a problem because the same thing happens when I try to bind the ui:table columns to the dataprovider. It uses the base tables' column names and I have no way to distinguish between the different aliases. If I try to manually change the jsp to refer to the aliased name or the view column name, I get an exception that the aliased tablename and or column is an invalid parameter.
    Sorry if that was not clear in my original post.

  • Update RowSet Problem

    I have created a rowset to update a field in a table. If I hard code a value in the criteria, it works.
    After i change the value to a parameter, the rowset become not updatable. I have read the AppModel and find out that i need to move the statement - RowSet.setConcurrency(java.sql.ResultSet.CONCUR_UPDATABLE);
    after the RowSet.setObject(1, ...); and call RowSet.execute();
    but it still NOT WORK.
    What else should i do ?

    PROBLEM SOLVED
    I stopped using the SQL Server driver that came with Creator.
    Instead, I switched to using the jtds driver from sourceForge and the problem went away.
    Thanks to SueBob since u have wrote this.

  • Hi, rowset implementation is giving a problem

    The cachedrowsets created as
    CachedRowSet crs = new CachedRowSetImpl();
    are giving a problem.The error displayed is
    "Invalid scale size. Cannot be less than zero"
    What might be the reason for the error.

    import java.sql.*;
    import javax.sql.*;
    import javax.sql.rowset.*;
    import com.sun.rowset.*;
    public class FilteredRowSetEx {
         public static void main(String args[])throws Exception{
              String uname = "vsg";
              String pwd = "vsg";
              String url      = "jdbc:oracle:thin:@localhost:1521";
              String driver = "oracle.jdbc.driver.OracleDriver";
              String query = "select clusterid from tab";
              Connection con = null;
              try{
                   Class.forName(driver);
                   System.out.println("driver loaded");
                   con = DriverManager.getConnection(url,uname,pwd);
                   System.out.println("Connection created : " + con);
                   FilteredRowSet frs = new FilteredRowSetImpl();
                   System.out.println("frs creatd");
                   frs.setFilter(null);
                   frs.setCommand(query);
                   frs.execute(con);
                   while(frs.next()){
                        System.out.println("Cluster-ID : " + frs.getString(1));
              catch(Exception ex){
                   System.out.println("Exception in : " + ex.getClass().getName() + " and is: " + ex.getMessage());
              finally{
                   con.close();
    The query is giving problem when we try to select a numeric field as the default scale is 0.
    Is there any method to set the scale or any other way to retrieve the numeric fields.
    Please help me.

  • Problem with sun.jdbc.rowset.CachedRowSet.

    Hi All,
    I cannot not able to import the package 'sun.jdbc.rowset.CachedRowSet'.
    while writing the path in the jsp:useBean or import to java class it shows at the compilation time that
    Error JavaCompile: sun.jdbc.rowset cannot be resolved.
    Is there any jar file needed and if then where i can find it.
    actually i need to import this for implementing the large row in paging system in jsp page.
    Thanks in advance.
    Regards
    ukbasak

    hi,
    Another link which to point over the rowset.jar file
    http://forums.systeminetwork.com/isnetforums/archive/index.php?t-36523.html

Maybe you are looking for

  • Black Screen with mouse cursor

    Hello We are an enterprise organization with staffs logging in to their systems using domain username and password. For some of our users having Windows 7 as OS, when they log in with their domain credentials a blank screen appears with movable mouse

  • Error in Letter of Credits

    Hi All, I have an issue in identifying the delivery documents which has created an impact in LOC financial document. Financial document Value is 299,415.00 and 2 consignment issue documents has been created with value of 149,707.50 (each order). Only

  • 3c589 & pcelx on Sol 10 x86

    ...another problem with NIC's on x86: according to pcelx(7D), 3c589C is supported by this driver under pcic, but prtconf doesn't show any children under the controller. I've also tried: 1. 3c589D, it's not recognized as well. 2. pctc driver, although

  • Error message -Invoice date is future

    Hi, when entering the invoices, some users enter the invoice for future date. The system is giving a information message for this....i want to make it a error or stop users entering invoices for future date. how can i do it? Gayani

  • ORA-12560 :TNS protocal adapter error

    Hi everyone,                  I'm using Oracle 11g Enterprise Edition Server in Windows 8.1. I'm getting the TNS protocal adapter error. My service is not up(I checked in the services using services.msc). Until Yesterday It worked well for me, I got