cachedrowset fails in Tomcat when datasource name is passed with "url canno

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 5.0
    • Affects Version/s: 1.0
    • Component/s: core-libs
    • b59
    • generic
    • generic

        RowSet rs = new CachedRowSetImpl();
        rs.setDataSourceName("java:/comp/env/jdbc/ChemNetDB");
        rs.setCommand("Select * from TBL_DISPLAY_FIELDS where DEFAULT_FIELD=1");
        rs.execute();

        It give this error:

        java.sql.SQLException: The url cannot be null
        java.sql.DriverManager.getConnection(DriverManager.java:489)
        java.sql.DriverManager.getConnection(DriverManager.java:171)
        com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:735)
        com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:1360)
        org.apache.jsp.Search_jsp._jspService(Search_jsp.java:98)

        Is this a bug. I haven't seen anyone else have this problem. I'm using tomcat 5.
        ###@###.### 2004-07-01
        ###@###.### 2004-07-04

              Assignee:
              Shreyas Kaushik (Inactive)
              Reporter:
              Amit Handa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: