Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4026941

JDK 1.1 beta3 breaks Sybase JDBC drivers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.1
    • core-libs
    • None
    • sparc
    • solaris_2.4



      Name: mc57594 Date: 01/20/97


      The following error occurs while trying to execute a query
           when using the Sybase JDBC Drivers and JDK 1.1 Beta 3.
           
           java.lang.UnknownError: com/sybase/jdbc/SybResultSet
           at com.sybase.jdbc.SybStatement.nextResult(SybStatement.java:104) at
           com.sybase.jdbc.SybStatement.executeLoop(SybStatement.java:670) at
           com.sybase.jdbc.SybStatement.execute(SybStatement.java:663)
           at com.sybase.jdbc.SybStatement.execute(SybStatement.java:421) at
           MyFirstJDBCApp.main(MyFirstJDBCApp.java:64)
           
           The above error was generated by the following code:
           
           public class MyFirstJDBCApp
           {
           public static void main(String args[]) {
           //
           // Make sure the correct driver is loaded. //
           try{
           Class.forName("com.sybase.jdbc.SybDriver");
           }
           catch(ClassNotFoundException ex){
           System.out.println(
           "Could not find Sybase driver class: " + ex); }
           
           try{
           //
           // Try setting up a connection and issuing a query. //
           Connection conn = null;
           
           try{
           conn = DriverManager.getConnection(
           "jdbc:sybase:Tds:us0362:4077", "fma_reg_dbo", "storming"); }
           catch(Throwable ex){
           System.out.println(
           "MyFirstJDBCApp.main: couldn't create connection: " + ex);
           
           System.exit(-1);
           }
           
           Statement stmt = conn.createStatement();
           
           stmt.execute("select * from PROJECT");
           
           PrintResultSet.print(stmt.getResultSet());
           }
           catch(SQLException ex){
           System.out.println("Didn't work did it: " + ex);
           }
           }
           }
           
           
      ======================================================================

            Unassigned Unassigned
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: