1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5.00 out of 5)
Loading...

6 comments

  • Help.
    Eclipse logs:
    07-18 03:11:37.548: W/dalvikvm(1015): dvmFindClassByName rejecting ‘assets/driver_property_info_en_US’
    07-18 03:11:37.548: W/dalvikvm(1015): dvmFindClassByName rejecting ‘assets/driver_property_info_en’
    07-18 03:11:37.569: W/dalvikvm(1015): dvmFindClassByName rejecting ‘assets/driver_property_info’
    07-18 03:11:38.559: D/dalvikvm(1015): GC_CONCURRENT freed 199K, 11% free 2827K/3168K, paused 88ms+105ms, total 361ms
    07-18 03:11:39.699: D/dalvikvm(1015): GC_CONCURRENT freed 272K, 13% free 2991K/3404K, paused 95ms+103ms, total 347ms
    07-18 03:11:40.609: D/dalvikvm(1015): GC_CONCURRENT freed 64K, 6% free 3361K/3568K, paused 95ms+104ms, total 339ms
    07-18 03:11:40.938: W/System.err(1015): org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable to complete network request to host “192.168.0.97”.
    07-18 03:11:40.959: W/System.err(1015): at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:123)
    07-18 03:11:40.959: W/System.err(1015): at org.firebirdsql.jdbc.AbstractDriver.connect(AbstractDriver.java:126)
    07-18 03:11:40.978: W/System.err(1015): at java.sql.DriverManager.getConnection(DriverManager.java:175)
    07-18 03:11:40.978: W/System.err(1015): at java.sql.DriverManager.getConnection(DriverManager.java:209)

  • > Are you shure that 192.168.0.97 does have the firebird port open 3050 ? – yes

    > firebird jdbc discussion group – please tell me the address of that website

  • This works fine as:
    Properties ParamConnection = new Properties();
    ParamConnection.setProperty(“user”, “SYSDBA”);
    ParamConnection.setProperty(“password”, “masterkey”);
    // ParamConnection.setProperty(“encoding”, “WIN1251”);

    String sCon = “jdbc:firebirdsql:192.168.0.97/3050:TestDB”;

    // register
    DriverClass.forName(“org.firebirdsql.jdbc.FBDriver”);

    // Get connection
    Connection con = DriverManager.getConnection(sCon, ParamConnection);

    And if you remove the comment in a row
    ParamConnection.setProperty (“encoding”, “WIN1251”)
    An error occurs:
    08-08 02:46:07.225: E / AndroidRuntime (1376): FATAL EXCEPTION: main
    08-08 02:46:07.225: E / AndroidRuntime (1376): java.lang.IllegalStateException: Could not execute method of the activity
    08-08 02:46:07.225: E / AndroidRuntime (1376): at android.view.View $ 1.onClick (View.java: 3599)
    …..
    ….. more

  • This works fine as:
    Properties ParamConnection = new Properties();
    ParamConnection.setProperty(“user”, “SYSDBA”);
    ParamConnection.setProperty(“password”, “masterkey”);
    // ParamConnection.setProperty(“encoding”, “WIN1251”);

    String sCon = “jdbc:firebirdsql:192.168.0.97/3050:TestDB”;

    // register Driver
    Class.forName(“org.firebirdsql.jdbc.FBDriver”);

    // Get connection
    Connection con = DriverManager.getConnection(sCon, ParamConnection);

    And if you remove the comment in a row

    ParamConnection.setProperty(“encoding”, “WIN1251”)

    An error occurs:
    08-08 02:46:07.225: E / AndroidRuntime (1376): FATAL EXCEPTION: main
    08-08 02:46:07.225: E / AndroidRuntime (1376): java.lang.IllegalStateException: Could not execute method of the activity
    08-08 02:46:07.225: E / AndroidRuntime (1376): at android.view.View $ 1.onClick (View.java: 3599)
    …..
    ….. more

Leave a Reply