Scroll Sensitive ResultSet problem

Hi,
This is viquar.
Iam using Type4 driver for oracle8i i.e oralce.jdbc.driver.OracleDriver
and creating a scroll sensitive resultset using
Statement st=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
and iam calling the method refereshRow();
But it gives me an error :Unsupported Feature refreshRow.
When I checked out in detail..I came to know that the Type of ResultSet getting created is SCROLL INSENSITIVE(value 1004) instead of SCROLL SENSITIVE(value 1005).
Please help me in this.

hi,
to know whether your database supports result sets run this test:
try {
        DatabaseMetaData dmd = connection.getMetaData();
        if (dmd.supportsResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE)) {
            // Insensitive scrollable result sets are supported
        if (dmd.supportsResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE)) {
            // Sensitive scrollable result sets are supported
        if (!dmd.supportsResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE)
            && !dmd.supportsResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE)) {
            // Updatable result sets are not supported
    } catch (SQLException e) {
    }and to know whether a result set is scrollable, run this test:
try {
        // Get type of the result set
        int type = resultSet.getType();
        if (type == ResultSet.TYPE_SCROLL_INSENSITIVE
              || type == ResultSet.TYPE_SCROLL_SENSITIVE) {
            // Result set is scrollable
        } else {
            // Result set is not scrollable
    } catch (SQLException e) {
    }BTW, did you try ojdbc.14 driver ?
hth

Similar Messages

  • Scroll sensitive resultset

    hi,
    I'm developing client/server appliaction,back end is MS sql 2000 db.
    I need to display 100,000+ records in JTable.
    I created Statement object with SCROLL_SENSITIVE and i read 40 records
    from opened resultset.Note I close the resultset when the user closes JTable.
    Now my problem is
    How to make others inserts visible in jtable?
    Does it depends on Driver implementation?
    How do u guys implemented?
    thanx
    mohan

    Heh, it depends from the order in which you displaying records from the table or view. If you simply order your result set by ID then you could display them in the decsending order, so the last one comes as the first one in the result set. If your record fall on the middle of the result set then you should find it in the result set to get an index in the table. Then simply put selection on it. Also make sure the new record is prefetched via the underlying database before you searching the table.
    Does it make sense?

  • SCROLL SENSITIVE vs SCROLL INSENSITIVE

    Hi,
    I'm trying to understand the difference between these two - I wrote a small piece of code that I thought would explain the difference. However, when I run this code (By toggling the scroll sensitivity between TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE),
    I don't see any change in the output. Essentially - I'm trying to run through a resultset WHILE SIMULTAENOUSLY changing the underlying data. I assumed the insensitive scroll type wouldn't detect this change while the sensitive type would!! But BOTH don't detect the change.
    I even tried the same scenario by creating a different connection in the thread just to eliminate the fact that the same connection being used in the thread was probably the culprit - didnt help either. I'm no closer to understanding the difference between the two Scroll types now :( Please help!!! The result is in the end - even though the update went through - the SCROLLABLE SENSITIVE resultset didn't pick it up!!!
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    import javax.naming.*;
    public class JDBCTest {
    public static void main(String argv[]) throws Throwable {
    String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    Class.forName(driverName);
    String connectionURL = "jdbc:sqlserver://localhost:1433;databaseName=FXTraderDB;userName=sa;password=Marcos!23";
    Connection conn = DriverManager.getConnection(connectionURL);
    conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
    TableUpdater updater = new TableUpdater(conn);
    updater.start();
    Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet rs = stmt.executeQuery("Select * from hs_market_data");
    rs.afterLast();
    while(rs.previous()) {
    int id = rs.getInt("id");
    int insaddr = rs.getInt("insaddr");
    double bidRate = rs.getDouble("bidRate");
    double askRate = rs.getDouble("askRate");
    System.out.println(String.format("Id : %d. Insaddr : %d bidRate : %f askRate : %f", id, insaddr, bidRate, askRate));
    Thread.sleep(2000);
    rs.close();
    stmt.close();
    class TableUpdater extends Thread {
    private Connection conn = null;
    public TableUpdater(Connection conn) {
    this.conn = conn;
    public void run() {
    try {
    System.out.println("UPDATING AFTER WAITING FOR 5 SECONDS!!...");
    Thread.sleep(5000);
    Statement stmt = conn.createStatement();
    double bidRate = new Random().nextDouble()*100;
    double askRate = new Random().nextDouble()*150;
    System.out.println(String.format("### Updating the rows (55, 50, 45, 40, 35) with bidRate : %f askRate : %f ###" ,bidRate, askRate));
    stmt.executeUpdate(String.format("update hs_market_data set bidRate=%f, askRate=%f where id in (55, 50, 45, 40, 35)", bidRate, askRate));
    stmt.close();
    } catch(Throwable t) {
    t.printStackTrace();
    UPDATING AFTER WAITING FOR 5 SECONDS!!...
    Id : 58. Insaddr : 5 bidRate : 69.500000 askRate : 70.500000
    Id : 57. Insaddr : 4 bidRate : 68.500000 askRate : 69.500000
    Id : 56. Insaddr : 4 bidRate : 67.500000 askRate : 68.500000
    *### Updating the rows (55, 50, 45, 40, 35) with bidRate : 81.512883 askRate : 2.874984 ###*
    Id : 55. Insaddr : 1 bidRate : 555.220000 askRate : 333.330000
    Id : 54. Insaddr : 6 bidRate : 65.500000 askRate : 66.500000
    Id : 53. Insaddr : 5 bidRate : 64.500000 askRate : 65.500000
    Id : 52. Insaddr : 6 bidRate : 63.500000 askRate : 64.500000
    Id : 51. Insaddr : 2 bidRate : 62.500000 askRate : 63.500000
    Id : 50. Insaddr : 7 bidRate : 555.220000 askRate : 333.330000
    Id : 49. Insaddr : 1 bidRate : 60.500000 askRate : 61.500000

    There are no guarantees that this flag will be honoured so it would be unwise to rely upon any specific behaviour.

  • Problem with Sensitive ResultSet in SQL Server 2000

    Hi,
    I am trying to use SCROLL_SENSITIVE and CONCUR_UPDATABLE ResultSet accessing SQL Server 2000. I am using JDK 1.3 and supported JDBC driver. When I tried to insert a row, I got the following message:
    sp_cursor: The cursor identifier value provided (0) is not valid
    Is there any setting in SQL Server that I need to configure or do I miss something in my code?
    Thanks,
    Andi Setiyadi
    Here are my codes:
    cs = connection.prepareCall("{call sp_deptInfo (?,?,?)}", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    cs.setInt(1, 0);
    cs.setString(2, "");
    cs.setString(3, "name/orderbyid");
    rs = cs.executeQuery();
    rs.last();
    int rows = rs.getRow();
    rs.afterLast();
    rs.moveToInsertRow();
    rs.updateInt(1, rows + 1);
    rs.updateInt(2, Integer.parseInt(parentDept));
    rs.updateString(3, newDept);
    rs.updateInt(4, 1);
    rs.insertRow();

    I am getting the resultset by calling a stored procedure. I am not changing the stored procedure itself.Database drivers create 'connections' and 'statements' which match the SQL that you pass it. You are passing it a stored proc. The only information that it has is on a stored proc. It doesn't matter where the stored proc got its info from. The stored proc doesn't return tables and indexes into tables. It returns a result set (that is what your code suggests.) That is all the information that the driver has.
    Consider your stored proc might return this
    select * from mytable where ....
    But it could also do this
    select 'value1', 'value2', ... from dual
    On the java side it isn't not going to know which of the above that you did. Nor should it. And you can't update/insert into that second example.
    Or at least that is how I look at it.
    Your code looks like it is trying to 'update' the result set that a stored proc returned. And I simply don't see how that is possible. Or even why anyone would want to do it.

  • Scrolling Synaptic Touchpad Problem (Arch Wiki didn't solve it)

    Good to the whole Arch's community.
    First of all to appear, I am codebuster and am new in this community and in this magnificent distro that I have been charmed with for his simplicity and performance. Always I had begun for behind the topic of the configuration of Arch's installation, but consulting his magnificent tips and coming to the official information it me has been possible. I have everything working of correct form except the function of scroll of my touchpad Synaptic (function that I use always and that really I throw enough in lack). I have followed the steps indicated so much in the Wiki (http://wiki.archlinux.org/index.php/Touchpad_Synaptics) as in numerous forums of linux in inet but I have not managed to make it work, for what I resort to you to seeing if someone can throw something of light.
    Let's begin.
    PC: Acer Aspire 5610
    Distribution: ArchLinux updated a today.
    Desktop: XFCE
    Graphics: NVIDIA Geforce GO 7300 (proprietary Drivers: NVIDIA Driver Version:256.35)
    Driver: xf86-input-synaptics-1.2.2-2
    hardinfo
    Name PS/2 Synaptics TouchPad
    Type Mouse
    Bus 0x11
    Vendor 2
    Product 0x1
    Version 0x0
    Connected to isa0060/serio/input0
    cat /proc/bus/input/devices
    I: Bus=0011 Vendor=0002 Product=0001 Version=0000
    N: Name="PS/2 Synaptics TouchPad"
    P: Phys=isa0060/serio4/input0
    S: Sysfs=/devices/platform/i8042/serio4/input/input5
    U: Uniq=
    H: Handlers=mouse0 event5
    B: EV=7
    B: KEY=70000 0 0 0 0 0 0 0 0
    B: REL=3
    xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 256.35 (buildmeister@builder101) Wed Jun 16 19:25:59 PDT 2010
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc/"
    FontPath "/usr/share/fonts/TTF/"
    FontPath "/usr/share/fonts/OTF/"
    FontPath "/usr/share/fonts/Type1/"
    FontPath "/usr/share/fonts/100dpi/"
    FontPath "/usr/share/fonts/75dpi/"
    EndSection
    Section "Module"
    Load "dri2"
    Load "dbe"
    Load "record"
    Load "glx"
    Load "extmod"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mouse0"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "G72M [Quadro NVS 110M/GeForce Go 7300]"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Xorg.0.log
    [ 18.827]
    This is a pre-release version of the X server from The X.Org Foundation.
    It is not supported in any way.
    Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
    Select the "xorg" product for bugs you find in this release.
    Before reporting bugs in pre-release versions please check the
    latest version in the X.Org Foundation git repository.
    See http://wiki.x.org/wiki/GitPage for git access instructions.
    [ 18.828]
    X.Org X Server 1.8.1.902 (1.8.2 RC 2)
    Release Date: 2010-06-21
    [ 18.828] X Protocol Version 11, Revision 0
    [ 18.828] Build Operating System: Linux 2.6.34-ARCH i686
    [ 18.828] Current Operating System: Linux arch-live 2.6.34-ARCH #1 SMP PREEMPT Mon Jul 5 21:03:38 UTC 2010 i686
    [ 18.828] Kernel command line: root=/dev/disk/by-uuid/2cf26781-3ca3-4654-8b83-37ea60864aab ro
    [ 18.828] Build Date: 21 June 2010 11:54:27AM
    [ 18.828]
    [ 18.829] Current version of pixman: 0.18.2
    [ 18.830] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 18.830] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 18.830] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 26 15:21:50 2010
    [ 18.909] (==) Using config file: "/etc/X11/xorg.conf"
    [ 18.909] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 18.962] (==) ServerLayout "X.org Configured"
    [ 18.962] (**) |-->Screen "Screen0" (0)
    [ 18.962] (**) | |-->Monitor "Monitor0"
    [ 18.963] (**) | |-->Device "Card0"
    [ 18.963] (**) |-->Input Device "Mouse0"
    [ 18.963] (**) |-->Input Device "Keyboard0"
    [ 18.963] (==) Automatically adding devices
    [ 18.963] (==) Automatically enabling devices
    [ 19.052] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 19.052] Entry deleted from font path.
    [ 19.063] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 19.063] Entry deleted from font path.
    [ 19.063] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 19.064] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 19.064] Entry deleted from font path.
    [ 19.064] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 19.064] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 19.064] Entry deleted from font path.
    [ 19.064] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 19.064] Entry deleted from font path.
    [ 19.064] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 19.064] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 19.064] Entry deleted from font path.
    [ 19.064] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 19.064] (**) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/
    [ 19.064] (**) ModulePath set to "/usr/lib/xorg/modules"
    [ 19.064] (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 19.064] (WW) Disabling Mouse0
    [ 19.064] (WW) Disabling Keyboard0
    [ 19.064] (II) Loader magic: 0x81e9d00
    [ 19.064] (II) Module ABI versions:
    [ 19.064] X.Org ANSI C Emulation: 0.4
    [ 19.064] X.Org Video Driver: 7.0
    [ 19.064] X.Org XInput driver : 9.0
    [ 19.064] X.Org Server Extension : 3.0
    [ 19.088] (--) PCI:*(0:1:0:0) 10de:01d7:1025:0090 nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] rev 161, Mem @ 0xd1000000/16777216, 0xc0000000/268435456, 0xd0000000/16777216
    [ 19.088] (II) Open ACPI successful (/var/run/acpid.socket)
    [ 19.088] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
    [ 19.088] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
    [ 19.088] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
    [ 19.088] (II) "record" will be loaded. This was enabled by default and also specified in the config file.
    [ 19.088] (II) "dri" will be loaded by default.
    [ 19.088] (II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
    [ 19.088] (II) LoadModule: "dri2"
    [ 19.141] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 19.175] (II) Module dri2: vendor="X.Org Foundation"
    [ 19.175] compiled for 1.8.1.902, module version = 1.2.0
    [ 19.175] ABI class: X.Org Server Extension, version 3.0
    [ 19.176] (II) Loading extension DRI2
    [ 19.176] (II) LoadModule: "dbe"
    [ 19.176] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 19.187] (II) Module dbe: vendor="X.Org Foundation"
    [ 19.187] compiled for 1.8.1.902, module version = 1.0.0
    [ 19.187] Module class: X.Org Server Extension
    [ 19.187] ABI class: X.Org Server Extension, version 3.0
    [ 19.187] (II) Loading extension DOUBLE-BUFFER
    [ 19.187] (II) LoadModule: "record"
    [ 19.187] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 19.188] (II) Module record: vendor="X.Org Foundation"
    [ 19.188] compiled for 1.8.1.902, module version = 1.13.0
    [ 19.188] Module class: X.Org Server Extension
    [ 19.188] ABI class: X.Org Server Extension, version 3.0
    [ 19.188] (II) Loading extension RECORD
    [ 19.188] (II) LoadModule: "glx"
    [ 19.189] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 20.431] (II) Module glx: vendor="NVIDIA Corporation"
    [ 20.431] compiled for 4.0.2, module version = 1.0.0
    [ 20.431] Module class: X.Org Server Extension
    [ 20.431] (II) NVIDIA GLX Module 256.35 Wed Jun 16 19:21:24 PDT 2010
    [ 20.431] (II) Loading extension GLX
    [ 20.431] (II) LoadModule: "extmod"
    [ 20.432] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 20.441] (II) Module extmod: vendor="X.Org Foundation"
    [ 20.441] compiled for 1.8.1.902, module version = 1.0.0
    [ 20.441] Module class: X.Org Server Extension
    [ 20.441] ABI class: X.Org Server Extension, version 3.0
    [ 20.441] (II) Loading extension MIT-SCREEN-SAVER
    [ 20.441] (II) Loading extension XFree86-VidModeExtension
    [ 20.441] (II) Loading extension XFree86-DGA
    [ 20.441] (II) Loading extension DPMS
    [ 20.441] (II) Loading extension XVideo
    [ 20.441] (II) Loading extension XVideo-MotionCompensation
    [ 20.441] (II) Loading extension X-Resource
    [ 20.441] (II) LoadModule: "dri"
    [ 20.442] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 20.451] (II) Module dri: vendor="X.Org Foundation"
    [ 20.451] compiled for 1.8.1.902, module version = 1.0.0
    [ 20.451] ABI class: X.Org Server Extension, version 3.0
    [ 20.451] (II) Loading extension XFree86-DRI
    [ 20.451] (II) LoadModule: "nvidia"
    [ 20.452] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 20.560] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 20.560] compiled for 4.0.2, module version = 1.0.0
    [ 20.560] Module class: X.Org Video Driver
    [ 20.620] (II) NVIDIA dlloader X Driver 256.35 Wed Jun 16 18:59:34 PDT 2010
    [ 20.625] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 20.625] (++) using VT number 7
    [ 20.629] (II) Primary Device is: PCI 01@00:00:0
    [ 20.645] (II) Loading sub module "fb"
    [ 20.646] (II) LoadModule: "fb"
    [ 20.654] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 20.675] (II) Module fb: vendor="X.Org Foundation"
    [ 20.675] compiled for 1.8.1.902, module version = 1.0.0
    [ 20.675] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 20.675] (II) Loading sub module "wfb"
    [ 20.675] (II) LoadModule: "wfb"
    [ 20.676] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 20.694] (II) Module wfb: vendor="X.Org Foundation"
    [ 20.694] compiled for 1.8.1.902, module version = 1.0.0
    [ 20.694] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 20.694] (II) Loading sub module "ramdac"
    [ 20.694] (II) LoadModule: "ramdac"
    [ 20.694] (II) Module "ramdac" already built-in
    [ 20.744] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [ 20.744] (==) NVIDIA(0): RGB weight 888
    [ 20.744] (==) NVIDIA(0): Default visual is TrueColor
    [ 20.744] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 20.744] (**) NVIDIA(0): Enabling RENDER acceleration
    [ 20.744] (II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
    [ 20.744] (II) NVIDIA(0): enabled.
    [ 22.341] (II) NVIDIA(0): NVIDIA GPU GeForce Go 7300 (G72) at PCI:1:0:0 (GPU-0)
    [ 22.341] (--) NVIDIA(0): Memory: 262144 kBytes
    [ 22.341] (--) NVIDIA(0): VideoBIOS: 05.72.22.58.30
    [ 22.341] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 22.341] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
    [ 22.341] (--) NVIDIA(0): Connected display device(s) on GeForce Go 7300 at PCI:1:0:0:
    [ 22.341] (--) NVIDIA(0): LPL (DFP-0)
    [ 22.341] (--) NVIDIA(0): LPL (DFP-0): 330.0 MHz maximum pixel clock
    [ 22.341] (--) NVIDIA(0): LPL (DFP-0): Internal Dual Link LVDS
    [ 22.355] (II) NVIDIA(0): Assigned Display Device: DFP-0
    [ 22.355] (==) NVIDIA(0):
    [ 22.355] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    [ 22.355] (==) NVIDIA(0): will be used as the requested mode.
    [ 22.355] (==) NVIDIA(0):
    [ 22.355] (II) NVIDIA(0): Validated modes:
    [ 22.355] (II) NVIDIA(0): "nvidia-auto-select"
    [ 22.356] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 800
    [ 22.356] (--) NVIDIA(0): DPI set to (98, 96); computed from "UseEdidDpi" X config
    [ 22.356] (--) NVIDIA(0): option
    [ 22.356] (==) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
    [ 22.356] (--) Depth 24 pixmap format is 32 bpp
    [ 22.358] (II) NVIDIA(0): Initialized GPU GART.
    [ 22.371] (II) NVIDIA(0): ACPI display change hotkey events enabled: the X server is new
    [ 22.371] (II) NVIDIA(0): enough to receive ACPI hotkey events.
    [ 22.371] (WW) NVIDIA(0): ACPI: Error: Unable to find the brightness file path under
    [ 22.372] (WW) NVIDIA(0): /proc/acpi/video. The NVIDIA X driver will not be able to
    [ 22.372] (WW) NVIDIA(0): respond to ACPI brightness change hotkey events.
    [ 22.372] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
    [ 23.783] (II) Loading extension NV-GLX
    [ 23.817] (II) NVIDIA(0): Initialized OpenGL Acceleration
    [ 23.831] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 23.831] (II) NVIDIA(0): Initialized X Rendering Acceleration
    [ 23.851] (==) NVIDIA(0): Backing store disabled
    [ 23.851] (==) NVIDIA(0): Silken mouse enabled
    [ 23.858] (==) NVIDIA(0): DPMS enabled
    [ 23.858] (II) Loading extension NV-CONTROL
    [ 23.859] (II) Loading extension XINERAMA
    [ 23.859] (II) Loading sub module "dri2"
    [ 23.859] (II) LoadModule: "dri2"
    [ 23.860] (II) Reloading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 23.860] (II) NVIDIA(0): [DRI2] Setup complete
    [ 23.860] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
    [ 23.860] (==) RandR enabled
    [ 23.860] (II) Initializing built-in extension Generic Event Extension
    [ 23.860] (II) Initializing built-in extension SHAPE
    [ 23.860] (II) Initializing built-in extension MIT-SHM
    [ 23.860] (II) Initializing built-in extension XInputExtension
    [ 23.860] (II) Initializing built-in extension XTEST
    [ 23.860] (II) Initializing built-in extension BIG-REQUESTS
    [ 23.860] (II) Initializing built-in extension SYNC
    [ 23.860] (II) Initializing built-in extension XKEYBOARD
    [ 23.860] (II) Initializing built-in extension XC-MISC
    [ 23.860] (II) Initializing built-in extension SECURITY
    [ 23.860] (II) Initializing built-in extension XINERAMA
    [ 23.860] (II) Initializing built-in extension XFIXES
    [ 23.860] (II) Initializing built-in extension RENDER
    [ 23.860] (II) Initializing built-in extension RANDR
    [ 23.860] (II) Initializing built-in extension COMPOSITE
    [ 23.860] (II) Initializing built-in extension DAMAGE
    [ 23.864] (II) Initializing extension GLX
    [ 24.465] (II) config/udev: Adding input device Power Button (/dev/input/event4)
    [ 24.465] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 24.465] (II) LoadModule: "evdev"
    [ 24.466] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 24.483] (II) Module evdev: vendor="X.Org Foundation"
    [ 24.483] compiled for 1.8.0, module version = 2.4.0
    [ 24.483] Module class: X.Org XInput Driver
    [ 24.483] ABI class: X.Org XInput driver, version 9.0
    [ 24.483] (**) Power Button: always reports core events
    [ 24.483] (**) Power Button: Device: "/dev/input/event4"
    [ 24.491] (II) Power Button: Found keys
    [ 24.491] (II) Power Button: Configuring as keyboard
    [ 24.491] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 24.491] (**) Option "xkb_rules" "evdev"
    [ 24.491] (**) Option "xkb_model" "evdev"
    [ 24.491] (**) Option "xkb_layout" "us"
    [ 24.579] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
    [ 24.580] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 24.580] (**) Video Bus: always reports core events
    [ 24.580] (**) Video Bus: Device: "/dev/input/event5"
    [ 24.587] (II) Video Bus: Found keys
    [ 24.587] (II) Video Bus: Configuring as keyboard
    [ 24.587] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
    [ 24.587] (**) Option "xkb_rules" "evdev"
    [ 24.587] (**) Option "xkb_model" "evdev"
    [ 24.587] (**) Option "xkb_layout" "us"
    [ 24.593] (II) config/udev: Adding input device Power Button (/dev/input/event3)
    [ 24.594] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 24.594] (**) Power Button: always reports core events
    [ 24.594] (**) Power Button: Device: "/dev/input/event3"
    [ 24.600] (II) Power Button: Found keys
    [ 24.600] (II) Power Button: Configuring as keyboard
    [ 24.600] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 24.600] (**) Option "xkb_rules" "evdev"
    [ 24.601] (**) Option "xkb_model" "evdev"
    [ 24.601] (**) Option "xkb_layout" "us"
    [ 24.602] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
    [ 24.602] (II) No input driver/identifier specified (ignoring)
    [ 24.602] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
    [ 24.602] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 24.602] (**) Sleep Button: always reports core events
    [ 24.602] (**) Sleep Button: Device: "/dev/input/event2"
    [ 24.611] (II) Sleep Button: Found keys
    [ 24.611] (II) Sleep Button: Configuring as keyboard
    [ 24.611] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
    [ 24.611] (**) Option "xkb_rules" "evdev"
    [ 24.611] (**) Option "xkb_model" "evdev"
    [ 24.611] (**) Option "xkb_layout" "us"
    [ 24.613] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event8)
    [ 24.613] (II) No input driver/identifier specified (ignoring)
    [ 24.619] (II) config/udev: Adding input device MosArt Optical Mouse (/dev/input/event7)
    [ 24.619] (**) MosArt Optical Mouse: Applying InputClass "evdev pointer catchall"
    [ 24.619] (**) MosArt Optical Mouse: always reports core events
    [ 24.619] (**) MosArt Optical Mouse: Device: "/dev/input/event7"
    [ 24.631] (II) MosArt Optical Mouse: Found 3 mouse buttons
    [ 24.631] (II) MosArt Optical Mouse: Found scroll wheel(s)
    [ 24.631] (II) MosArt Optical Mouse: Found relative axes
    [ 24.631] (II) MosArt Optical Mouse: Found x and y relative axes
    [ 24.631] (II) MosArt Optical Mouse: Configuring as mouse
    [ 24.631] (**) MosArt Optical Mouse: YAxisMapping: buttons 4 and 5
    [ 24.631] (**) MosArt Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 24.631] (II) XINPUT: Adding extended input device "MosArt Optical Mouse" (type: MOUSE)
    [ 24.631] (**) MosArt Optical Mouse: (accel) keeping acceleration scheme 1
    [ 24.631] (**) MosArt Optical Mouse: (accel) acceleration profile 0
    [ 24.631] (**) MosArt Optical Mouse: (accel) acceleration factor: 2.000
    [ 24.631] (**) MosArt Optical Mouse: (accel) acceleration threshold: 4
    [ 24.631] (II) MosArt Optical Mouse: initialized for relative axes.
    [ 24.632] (II) config/udev: Adding input device MosArt Optical Mouse (/dev/input/mouse1)
    [ 24.632] (II) No input driver/identifier specified (ignoring)
    [ 24.638] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 24.638] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 24.638] (**) AT Translated Set 2 keyboard: always reports core events
    [ 24.638] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 24.651] (II) AT Translated Set 2 keyboard: Found keys
    [ 24.651] (II) AT Translated Set 2 keyboard: Configuring as keyboard
    [ 24.651] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
    [ 24.651] (**) Option "xkb_rules" "evdev"
    [ 24.651] (**) Option "xkb_model" "evdev"
    [ 24.651] (**) Option "xkb_layout" "us"
    [ 24.652] (II) config/udev: Adding input device PS/2 Synaptics TouchPad (/dev/input/event6)
    [ 24.652] (**) PS/2 Synaptics TouchPad: Applying InputClass "evdev pointer catchall"
    [ 24.652] (**) PS/2 Synaptics TouchPad: always reports core events
    [ 24.652] (**) PS/2 Synaptics TouchPad: Device: "/dev/input/event6"
    [ 24.664] (II) PS/2 Synaptics TouchPad: Found 3 mouse buttons
    [ 24.664] (II) PS/2 Synaptics TouchPad: Found relative axes
    [ 24.664] (II) PS/2 Synaptics TouchPad: Found x and y relative axes
    [ 24.664] (II) PS/2 Synaptics TouchPad: Configuring as mouse
    [ 24.664] (**) PS/2 Synaptics TouchPad: YAxisMapping: buttons 4 and 5
    [ 24.664] (**) PS/2 Synaptics TouchPad: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 24.664] (II) XINPUT: Adding extended input device "PS/2 Synaptics TouchPad" (type: MOUSE)
    [ 24.664] (**) PS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
    [ 24.664] (**) PS/2 Synaptics TouchPad: (accel) acceleration profile 0
    [ 24.664] (**) PS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
    [ 24.664] (**) PS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
    [ 24.664] (II) PS/2 Synaptics TouchPad: initialized for relative axes.
    [ 24.665] (II) config/udev: Adding input device PS/2 Synaptics TouchPad (/dev/input/mouse0)
    [ 24.665] (II) No input driver/identifier specified (ignoring)
    10-evdev.conf
    # Catchall classes for input devices
    # We don't simply match on any device since that also adds accelerometers
    # and other devices that we don't really want to use. The list below
    # matches everything but joysticks.
    Section "InputClass"
    Identifier "evdev pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev keyboard catchall"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "VertEdgeScroll" "true"
    Option "VertScrollDelta" "100"
    EndSection
    Section "InputClass"
    Identifier "evdev tablet catchall"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    10-synaptics.conf
    Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    Option "TapButton1" "1"
    Option "TapButton2" "2"
    Option "TapButton3" "3"
    Option "VertEdgeScroll" "true"
    Option "VertScrollDelta" "100"
    EndSection
    Good, I believe that this is quite, if you need more information tell to me and it will make it come near.
    Excuse me for my poor english,Thanks in advance and best regards.
    codebuster.
    Last edited by codebuster (2010-07-26 14:44:07)

    kgas wrote:
    there is no need to include the synaptics option. here is mine and works fine (Acer Aspire 5738G)
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    Load "dbe"
    Load "glx"
    Load "dri"
    Load "dri2"
    Load "extmod"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "G98M [GeForce G 105M]"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    ¡¡¡¡ Thanks a lot for the info !!! 
    I remove all the Synaptics entries in the xorg.conf and worked fine with the /dev/input/mice option (in the Arch Wiki was # commented, the device, was /dev/psaux, and my mouse in hardinfo was recognized as PS/2 Synaptic for that I thought that it was the correct  option ).
    Only one question, now I have set the scrolling mode with two fingers, ¿do you know how to activate one finger scrolling? I tried with these options in Mouse section but doesn't work for me:
    Option "VertEdgeScroll" "true" # enable vertical scroll zone
    Option "HorizEdgeScroll" "false" # enable horizontal scroll zone
    Option "VertTwoFingerScroll" "false" # vertical scroll anywhere with two fingers
    Option "HorizTwoFingerScroll" "false" # horizontal scroll anywhere with two fingers
    ¡ Many, many thanks and my best regards !
    codebuster.
    Last edited by codebuster (2010-07-26 08:26:55)

  • Select Max and ResultSet Problem With Access

    The following code is producing a 'null pointer excepetion' error and I know why it is occurring I just do not know how to fix the problem.
    Basically I want to automitically generate a unique ID that is one number higher than the max ID (data is stored within an Access database). The ID field is made up of first and last initial taken from parsing previous login info ('JS-01', 'JS-02', ect.). If there are no IDs in the database that match your login info I want to set the new ID equal to 'JS-01' if your login is 'James Smith' for example.
    The problem is explained within the code below.
    <%
    //define resultset and statement
    ResultSet rss=null;
    ResultSet rs=null;
    Statement stmt=null;
    //HERE IS WHERE YOU PARSE THE LOGIN INFO
    String finitial = (String)session.getAttribute("vfirst");//vfirst=JIM
    String linitial = (String)session.getAttribute("vlast");//vlast=SMITH
    char f = finitial.charAt(0);
    char n = linitial.charAt(0);
    String sID = f+""+n;//NOW sID CONTAINS 'JS'
    try {
    //Using the current database connection create a statement
    stmt=con.createStatement();
    //QUERY TO SELECT MAX ID
    //NOTE: CURRENTLY THERE ARE NO IDs LIKE 'JS' IN THE DATABASE !!!!!!
    String sql="SELECT Max(ID) As MaxID FROM tblError Where ID LIKE '%"+sID+"%'" ;
    rs = stmt.executeQuery(sql);
    String newID;
    //HERE THE RESULT SET SHOULD BE NULL BUT IT IS NOT. I KNOW THIS BECAUSE WHEN I REPLACE String iID WITH A LITERAL LIKE 'JS-03' THE LOGIC WILL EXECUTE CORRECTLY AND GIVE ME 'JS-04'. IF I LEAVE THE CODE LIKE IT IS THEN I GET THE NULL POINTER VALUE ERROR BECAUSE YOU CANNOT RESOLVE "MaxID" WHEN THE RESULT SET IS NULL. IF THE RESULT SET IS NULL IT SHOULD NOT EVEN EXECUTE ANY OF THIS CODE WITHIN THE 'if' STATEMENT, BUT IT IS. SO BASICALLY JSP IS LEAVING ME WITH A MAJOR OXYMORON AND I WOULD APPRECIATE ANY ADVICE THAT WOULD HELP ME SOLVE THIS PROBLEM.
    if(rs.next()){
    String iID = rs.getString("MaxID");
    String letters = iID.substring(0,3);
    int numbers = Integer.parseInt(iID.substring(3,5));
    numbers = numbers + 1;
    if(numbers < 10){
    newID = letters + "0" + numbers;}
    else{
    newID = letters + numbers;
    else{//IF THERE IS NO RESULT SET THAN THE ID SHOULD BE 'JS-01'
    newID = sID + "-01";
    %>
    Because this an Access database I cannot use any null exception functions such as NVL or COALESCE which are specific to Oracle and SQL Server I beleive.

    The max() will return a result set, even if the max value is null.
    You should check to see if iID is null.
    if(rs.next())
       String iID = rs.getString("MaxID");
       if (iID == null)
           newID = sID + "-01";
       else
          String letters = iID.substring(0,3);
          ... etc ...
    }

  • Array of ResultSets Problem

    hi ,
    esub[i] is an array of scrollable resultsets . where "i" is a premitive integer. When i remove the scrollable and updatable from the corresponding statement object the NullPointerException has gone . But later i need to compare the Resultsets among themselves , for which i need them to be scrollable .
    One more problem is , can i give like this ,
    for(;condition till the whole of array ;)
    while(esub.next()){
    // do something ..
    while(esub[j].next()){
    // do something ...
    esub[j].first();
    esub[i].first();
    please tell me if u understood .I tried this way , but the second while loop i.e, while(esub[j].next()){ // do something } is not getting executed .Why ? Is there any other way of doing it .

    import java.sql.*;
    import java.io.*;
    public class Gra
    Gra(){ }
    public float inputexp(){
                   float exp =0 ;
                   System.out.flush();
         try {
                   BufferedReader bin;
                   bin = new BufferedReader(new InputStreamReader(System.in));
                   exp = Float.parseFloat(bin.readLine().trim());
              } catch(IOException ex) {
                   System.out.println("Caught java.io.IOException:");
                   System.out.println(ex.getMessage());
    return exp;
    public String inputname(){
         String name=null;
              System.out.flush();
         try {
                   BufferedReader bin;
                   bin = new BufferedReader(new InputStreamReader(System.in));
                   name = bin.readLine().trim();
              } catch(IOException ex) {
                   System.out.println("Caught java.io.IOException:");
                   System.out.println(ex.getMessage());
    return name;
    public static void main(String args[]){
    Gra summary = new Gra();
              String url = "jdbc:oracle:thin:@localhost:1521:ORCL";
         Connection con = null;
              try {
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con = DriverManager.getConnection(url,"chandu","chandu");
    System.out.println("Please Enter the Experiment name to compare the subexperiment results ");
    PreparedStatement forsubno = con.prepareStatement("select id,number_of_subexperiments from experiment where name = ? ");
    Statement stmt = con.createStatement();
    Statement sub = con.createStatement();
    Statement explevel = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    forsubno.setString(1,summary.inputname());
    ResultSet expsubinfo = forsubno.executeQuery();
    expsubinfo.next();
    int subnum = expsubinfo.getInt(2);
    String expid = expsubinfo.getString(1);
    int [][] mat = new int [subnum] [subnum];
    ResultSet [] esub = new ResultSet[subnum];
    int i=0;
    ResultSet subid = sub.executeQuery("select id from subexperiment where experiment_id = '"+ expid+"'");
    System.out.println("Enter the lower expression level ----->");
    float low = summary.inputexp();
    System.out.println("Enter the upper expression level ----->");
    float upper = summary.inputexp();
    * Dynamic Resultsets according to the number of the subexperiments present in the given Experiment
    while(subid.next()){
    System.out.println(i);
    System.out.println(subid.getString(1));
    esub[i++] = explevel.executeQuery("select spot_id,expression_level from spotmeasurement where expression_level between "+ low + "and "+ upper + " and subexperiment_id = '" + subid.getString(1) + "'");
    ResultSet rm,rn,rmg,rng;
    * Comparing the Resultsets esub[] among themself for the number of same expressed genes present in common
    for(int m=0;m<subnum;m++){
         for(int n=0;n<subnum;n++){
    if(m!=n){
              while(esub[m].next()){   
    // System.out.println(esub[m].getString(1));
                                                      rm = stmt.executeQuery("select probe_id from spot where id ='"+esub[m].getString(1)+"'");
                                            rm.next();
                        rmg = stmt.executeQuery("select gene_id from geneasprobe where probe_id='"+rm.getString(1)+"'");
                                       rmg.next();
                                                      System.out.println(n);
                                            while(esub[n].next()){ 
         System.out.println(esub[n].getString(1));
                                                 rn = stmt.executeQuery("select probe_id from spot where id ='"+esub[n].getString(1)+"'");
                                                           rn.next();
                                                      rng = stmt.executeQuery("select gene_id from geneasprobe where probe_id='"+rn.getString(1)+"'");
                                                           rng.next();
    if(rmg.getString(1).equals(rng.getString(1))){
                                                                          mat[m][n]=mat[m][n]+1;
                                                                } //end of if
    } //end of inner while
    esub[n].beforeFirst();
                                       } //end of while
                                       esub[m].beforeFirst();
              } //end of if
         } //end of for
    } //end of for
    /** this is for the disply of the result */
    for(int m=0;m<subnum;m++){
    for(int n=0;n<subnum;n++){
              System.out.println(mat[m][n]+"\t");
              System.out.println("\n");
    con.close();
    catch(Exception ex){
                        StringWriter stringWriter = new StringWriter();
                        PrintWriter printWriter = new PrintWriter(stringWriter);
                        ex.printStackTrace(printWriter);
                        StringBuffer error = stringWriter.getBuffer();
                        printWriter.close();
                        System.err.print("Exception:"+ex );
                        System.err.println(ex.getMessage());
                        System.out.println("TRACE = " + error.toString());
    } // end of main
    }// end of Class Gra
    this compiles with out any errors but when executed throws an exception . the error reads as
    Exception:java.lang.NullPointerExceptionnull
    TRACE = java.lang.NullPointerException
    at oracle.jadbc.draver.UpdatableResultSet.next(UpdatableResultSet.java:249)
    at Gra.main(Gra.java:103)
    Can you please tell me whats wrong , If as you say this design is wrong the please suggest me your idea so that let me learn and correct boss.

  • Web Gallery Scroll Bar Slider Problem

    Hi,
    I'm running Windows XP Professional and Lightroom 1.3.1. I seem to have a problem with the functionality of the sliders in the scroll bars of the web galleries that I make. I use the Flash templates.
    I can drag the slider to move through the thumbnails. But when I click in the open area of the scroll bar to scroll forward or backward a page at a time, nothing happens. That functionality seems to be missing. My cursor will change to a pointed finger when it moves across the slider bar, and the up and down arrows at the ends of the scroll bar. It will not change when I place it in the open area of the scroll bar, indicating that the functionality does not exist.
    This seems very odd and contrary to the global behavior of slider bars in all other applications, including within Lightroom.
    Any idea what's going on and any solutions?
    Thanks,
    Steve

    Hi...
    Please check in your application parameters. Did you declare wdtablenavigation parameter?
    and check table properties like scrollbarvisible always  or none...
    Check this link for application parameters.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7b/fb57412df8091de10000000a155106/content.htm
    Regards
    Srinivas

  • JDBC Resultset Problem with ORACLE 10.1.0.2

    Hello
    I have a problem with Petstore GenericCatalogDAO. java. The problem is the behaviour of the resultset object when retrieving data from the database.Below are two synareos one that
    works (when) hard coded and one that does not work when parameter values passed into the the result set.
    1. The code the WORKS.
    statement = connection.prepareStatement("select name from employee where a.name ='SMITH' order by name"
    ,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    The code that gives me a 'exhausted resultset' error which I think means no results
    String[] parameterValues = new String[] { "SMITH" };
    statement = connection.prepareStatement("select name from employee where a.name =? order by name ",
    ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    for (int i = 0; i < parameterValues.length; i++) {
    statement.setString(i + 1, parameterValues);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    There is obviously a problem using these named parametevalues with these preparedstatement resultset, Does anybody know anything about this and a fix for it????
    Cheers. Roger

    Roger,
    It's probably a mistake you made when posting your code, but your query string is incorrect it should be either:
    select name from employee where name = 'SMITH' order by nameor
    select a.name from employee a where a.name = 'SMITH' order by a.nameIn other words you have prefixed a column with a table alias but have not indicated a table alias in the query.
    Also, shouldn't your code be:
    for (int i = 0; i < parameterValues.length; i++) {
        statement.setString(i + 1, parameterValues[ i ]);
    }Or was the "[ i ]" part giving you trouble? (Since "[ i ]" -- without the spaces -- is treated as a text-formatting tag.)
    While I didn't try your specific query, I have no problem using "PreparedStatment"s with parameters.
    What is your environment? Mine is:
    Oracle 10g (10.1.0.4) database on Linux (Red Hat)
    JDK 1.4.2
    ojdbc14.jar JDBC driver (latest version)
    Good Luck,
    Avi.

  • JDBC MS SQL Server ResultSet Problem

    I'm writing a web-app using apache tomcat. I'm using MS SQL Server 2000 as my database. I am having no problem connecting to the database, but whenever I query the database, the ResultSet that is returned never has anything in it. I've tried even the simplest select queries and i'm still getting no results. I thought it might be a problem with the JDBC Driver I've been using, but I'm using the exact same driver for SQL Squirrel Client to connect, and Squirrel Client is returning results just fine from the database. Is there something that I've forgotten in my servlet code? Here's something like what I've been using:
    Connection con = DriverManager.getConnection(host, userName, password);
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("select * from some_table");

    If the select statement returns rows then the loop will execute... Put in some debugging output just before the while() loop, inside the loop, and immediately after the loop.
    Are you ignoring exceptions?
    Google for "jdbc tutorial". Take the simplest example program there that selects something. Run it as a command line program. Does it work? (Answer: yes.) Now what is different between that example program and your code?

  • Stalled Scrolling and Other Problems

    Redo because not only does my thread seem to have disappeared, but also I wanted to start afresh.
    First off, are my threads even showing up anymore? Usually I get fairly prompt replies, but my last couple of threads have gotten nothing. While I am sorry if I come off as rude or demanding, and understand that there are other people needing help and you all are busy, it is rather frustrating to not get a single reply on a thread, even if that reply is "We don't know" or "we are working on this problem". It might not seem like an important problem to you, but for me it is a problem and lessens my enjoyment of the Firefox product. Plus, having questions answered grants me more knowledge of the product, and thus grants me more ability to fix problems on my own.
    Anyways, on to the issue:
    Hello, Ever since I downloaded Firefox 25, I have had an issue with scrolling. If there was some way to record this, I would, but at this time I cannot, so a description will have to do. If someone knows a way to record what is happening, I will gladly do it to make what I am saying easier to visualize.
    On some sites I visit, scrolling will be what can only be described as "choppy"- I will attempt to scroll down, but there will be a small delay before the page responds and scrolls down. Thus, the scrolling does not go smoothly. This mostly happens on sites (tumblr pages especially) with non-scrolling backgrounds (ie backgrounds that do not scroll with the page) on them.
    First off, I do not think this is a problem with any extensions, my computer, or the sites themselves. When I open the same pages in Chrome, the issue does not occur and the issue does not occur in all pages.
    I have tried clearing the cookies and cache, resetting my browser, disabling hardware acceleration, checking the plugins (problem still happened even when all plugins were disabled), updating my graphics card, and disabling website colors. The first few produced no lasting result/fix, and while disabling website colors did fix the issue, it made the rest of the site/other sites (ones that were working fine) difficult/impossible to use.
    One interesting fact of note is this: If I downgrade to Firefox 24, the issue not only disappears, but stays away, and does not occur.
    Another fact of note: I have written a previous thread on this issue, but ended up not getting an answer to a second question I had. In the first thread, I was given this possible solution, referring to a bookmarklet I could use/try: https://support.mozilla.org/en-US/questions/976244#answer-496960
    So my questions here are these: 1) What is going on in Firefox 25 that makes scrolling choppy in that version, but not in version 24 or any other browser except version 25? 2) How exactly do I use that bookmarklet I linked to? Where do I need to place it? How do I get to where I need to place it? How would it work? Is there a way to/Can someone make it into a Greasemonkey (I have Greasemonkey) userscript, if it does work?
    Also, is there a way to "bump" my thread without actually commenting on it?

    Please use your original thread, https://support.mozilla.org/en-US/questions/976335

  • IFRAME scroll to anchor problem

    I am having difficulty using IFRAME and anchors. When I place
    an anchor within the IFRAME and then click to go to that anchor,
    the parent page scrolls to the IFRAME's location on the screen and
    the IFRAME scrolls to that anchor. How do I make the IFRAME, and
    only the IFRAME, scroll to the anchor?
    We have a User Acceptance Test site located at
    uat.itclarity.co.uk/our_services2.html where you can see our
    problem by clicking on the 'more' link.
    Any help would be gratefully received.

    There is nothing wrong with what you have shown us, hence the problem lies elsewhere.
    For us to help you without having to guess what you have done, it is important that you give us the whole picture such as giving us a URL to the site.
    However, very little can go wrong with the script and we can limit our guessing game to a few points, namely
    have you included the jQuery library?
    did you set the correct ID to the top reference?
    The following is what a correct version of the page will look like
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <div id="top">This is the top. Please scroll down to the 'Back to Top' link.</div>
    <div style="height: 1200px"></div>
    <a href="#top" class="anchorLink">Back to Top</a>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
      $(".anchorLink").click(function(e){
        e.preventDefault();
        var id    = $(this).attr("href");
        var offset = $(id).offset();
        $("html, body").animate({
          scrollTop: offset.top
        }, 100);
    </script>
    </body>
    </html>

  • Jdbc resultset problem

    Hi all
    i'm gtting a problem with the action listener event of my "Next" and "Previous" Jbuttons. The code that i have written makes the program search only for the next record and not further...and sameproblem for previous button.
    That is: If originally i'm on the 3rd record, when i press next it goes to 4th record and when i press next again nothing happens. The same applies to my previous event.
    Can anyone give me a hint on how to solve this problem?
    i post my code below:
    next.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt)
                        try{
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql:///Super","root","");
    Statement s = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    s.execute("SELECT * FROM tblcustomer");
         ResultSet rs = s.getResultSet();
         rs.next();
              cus.setText(rs.getString(1));
              fname.setText(rs.getString(2));
              lname.setText(rs.getString(3));
              txtadd.setText(rs.getString(4));
              txtcity.setText(rs.getString(5));
              txtcountry.setText(rs.getString(6));
              catch (Exception e)
              JOptionPane.showMessageDialog(null,"No further record available!");
    });

    thanx for your help but i still can't access the second record
    here is my code below, have a look at it:
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    final Connection conn=DriverManager.getConnection("jdbc:mysql:///Super", "root","");
    previous.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt)
                        try
                             final Statement s= conn.createStatement();
                        s.execute("SELECT * FROM tblcustomer");
              ResultSet rs = s.getResultSet();
                        if (!rs.isFirst())
                        while ( rs.previous() ){
                        rs.relative(-1);
                        cus.setText(rs.getString("Customer_ID"));
                        fname.setText(rs.getString("First_Name"));
                        lname.setText(rs.getString("Last_Name"));
                        txtadd.setText(rs.getString("Address"));
                        txtcity.setText(rs.getString("City"));
                        txtcountry.setText(rs.getString("Country"));
                        catch (Exception e)
              JOptionPane.showMessageDialog(null,"No further record available!");
              );

  • Scrolling Thumbnail Panel Problems

    I'm creating a personal portfolio website in flash. the
    address is
    http://homepages.nildram.co.uk/~motiv8/AlexBimpson/AlexBimpson%20New/
    On the "photo" page, by clicking on view portfolio a
    scrolling humbnail gallery appears, however as you can see it moves
    extremely jerkily.
    This seems to be because the "photo" page is a seperate flash
    movie loaded into the main navigation page, a parent swf file,
    hence you see the loading animations when you switch pages on the
    website.
    If you access the photo swf file alone the scrollbar seems to
    work fine. its address is
    http://homepages.nildram.co.uk/~motiv8/AlexBimpson/AlexBimpson%20New/flash/photo/photo.swf
    the coding for the panel is taken from a video tutorial, and
    seems to work fine. i have displayed this below
    panel.onRollOver = panelOver;
    function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
    var b = stroke.getBounds(_root);
    function scrollPanel() {
    if (_xmouse<b.xMin || _xmouse>b.xMax ||
    _ymouse<b.yMin || _ymouse>b.yMax) {
    this.onRollOver = panelOver;
    delete this.onEnterFrame;
    if(panel._x >= 214) {
    panel._x = 214;
    if(panel._x <= -1272) {
    panel._x = -1272;
    var xdist = _xmouse - 384;
    panel._x += -xdist / 8;
    where 'panel' is the mask object used to create the bounding
    area for the thumbnail panel and 'stroke' is a surrounding outline,
    hidden as white colour.
    Is anyone able to tell me why loading one movie into another
    is having this effect, and how I go about overcoming this problem?
    I've noticed that the panel seems 2 work with the mouse below
    the thumbnail panel in the parent site, so it all seems a little
    buggy - im guessing there's something that needs changing in the
    referencing for the stroke and panel, but as of yet I havent found
    a solution.
    Any help would be greatly appreciated. thanks very much
    alex

    ok, i think ive figured out where the problem lies, but not
    how to solve it.
    the movie "stroke" is used there because apparently a flash
    scrollPanel does not recognise button actions. Therefore, when you
    are over the panel, it is no longer set as a scrollPanel. however,
    once you move outside the stroke, it will again.
    the boundaries of the stroke are gathered using the getbounds
    function, as in this code
    var b = stroke.getBounds(_root);
    function scrollPanel() {
    if (_xmouse<b.xMin || _xmouse>b.xMax ||
    _ymouse<b.yMin || _ymouse>b.yMax) {
    this.onRollOver = panelOver;
    delete this.onEnterFrame;
    however, because this movie is loaded within another swf,
    something is going wrong with getting the bounds. at the moment it
    uses _root to reference the stroke, but this doesnt seem 2 work
    when loaded within the parent movie. I've tried using _parent but
    this has no effect.
    i guess i need 2 change that 2 something else???

  • Scroll Pen brush problem

    I have a problem when applying the scroll pen brush to a path I drew with the pen tool, I get the desired effect but I get a total of six lines instead of just the one. Is there any way to not get this many? I am using CS3.
    Kindes regards,
    Oskar

    Certainly.

Maybe you are looking for