This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
On "Debug File" on single java file I got: init: deps-jar: compile-single: Non-existing path "C:\Programme\Java\jdk1.6.0\jre\lib\sunrsasign.jar" provided. Non-existing path "C:\Programme\Java\jdk1.6.0\jre\classes" provided. I have [jdk-6-beta-src-b59g-jrl-06_feb_2006.jar]\j2se\src\share\classes\ in src path. Source: /* * Only16CharsWithGetString.java * * Created on 26. April 2004, 23:44 */ package de.CoSoCo.bugs; import java.sql.*; /** * * @author Ulf Zibis */ class Only16CharsWithGetString { private final static String URL = "jdbc:odbc:TestData"; private final static String TABLE = "Test1"; private final static String STRING1 = "string1"; private final static String INT1 = "int1"; /** * @param args the command line arguments */ public static void main(String[] args) { Connection con = null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection( URL); createEmptyTable( con); Statement stmt1 = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs1 = stmt1.executeQuery("SELECT * FROM "+TABLE+" WHERE id=0"); rs1.next(); // avoid other bug rs1.moveToInsertRow(); rs1.updateString( STRING1, "Here are only 16 and more chars"); rs1.insertRow(); rs1.last(); // Is this allways the yet inserted row ? ?? ??? System.out.println("rs1.getObject( 1) (autoincremented id): "+rs1.getObject( 1)); System.out.println("rs1.getString( STRING1): "+rs1.getString( STRING1)); System.out.println(); stmt1.close(); Statement stmt2 = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs2 = stmt2.executeQuery("SELECT * FROM "+TABLE+" ORDER BY id"); rs2.next(); rs2.moveToInsertRow(); rs2.updateString( STRING1, "inserted"); rs2.insertRow(); rs2.moveToCurrentRow(); System.out.println("rs2.getString( STRING1): "+rs2.getString( STRING1)); System.out.println(); stmt2.close(); Statement stmt3 = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs3 = stmt3.executeQuery("SELECT * FROM "+TABLE+" ORDER BY id"); while ( rs3.next()) System.out.println("rs3.getString( STRING1): "+rs3.getString( STRING1)); } catch (SQLException se) { System.out.println( se+", Error: "+se.getErrorCode()+", SQLState: "+se.getSQLState()); se.printStackTrace(); } catch (Throwable t) { t.printStackTrace(); } finally { try { if (con != null) con.close(); } catch (Throwable t) { t.printStackTrace(); } } } static void createEmptyTable(Connection con) throws Throwable { Statement stmt = con.createStatement(); try { ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM "+TABLE); rs.next(); System.out.println( TABLE+" had "+rs.getInt( 1)+" record(s)."); stmt.executeUpdate("DROP TABLE "+TABLE); } catch (SQLException se) { if (se.getErrorCode() == -1305) System.out.println( TABLE+" was not existent."); else throw se; } stmt.executeUpdate("CREATE TABLE "+TABLE+"( id COUNTER PRIMARY KEY, " +STRING1+" VARCHAR(100), " +INT1+" INT)"); System.out.println("New empty table "+TABLE+" created !"); System.out.println(); stmt.close(); } }
Reassigning to debugger for evaluation.
This is a dupl. of issue #77678. *** This issue has been marked as a duplicate of 70930 ***
Yes, this is indeed duplicate of issue #70930. Thanks for your report anyway !
In my opinion, this is *not* a dupl. of Issue 77678, but a dupl. of 70930. But there is a dependency: In both cases non-default platforms are used, and in both cases extended sources under JRL (here: sun.jdbc.odbc.*) are used.
I agree with you. I think Martin just used wrong issue ID in his comment but marked it correctly as dup of #70930.