Can't load DB2 driver!

I have a Java app I run from the command line that can access my DB2 database. However, when I put my code into Websphere as a Servlet, it won't connect. Same driver, same dbURL, same everything, but it won't connect. I'm wondering if I have to configure my webapp in the Admin Console or something. I see there is a node called JDBC driver, but I can't do anything to it, I can't open it, edit it, or anything. What am I doing wrong? Help!

sorry i have not ur answer.
please give me connecting string databse DB2.
ur DB2 server on which OS. may be there driver problem?
but plz give me connecting string

Similar Messages

  • Can't load jdbc driver in servlet

    Dear All,
    I have tried to connect to MS SQL SERVER 2000 through JDBC DRIVER FOR
    SQLSERVER. However I receieved an error: can't load jdbc driver class:
    null.
    The following steps were what I did:
    1.Set up SQL Server and create a few tables and users.
    2.Config Server.xml
    Add the following codes in /tomcat/conf/Server.xml
    <Context path="/persistence" docBase="persistence" debug="0"
    reloadable="true">
              <Resource name="jdbc/persistenceDB" auth="Container"
    type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/PersistenceDB">
                   <Parameter>
                        <name>user</name>
                        <value>kitty</value>
                   </Parameter>
                   <Parameter>
                        <name>password</name>
                        <value>abc</value>
                   </Parameter>
                   <Parameter>
                        <name>driverClassName</name>
                        <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
                   </Parameter>
                   <Parameter>
                        <name>url</name>
    <value>jdbc:microsoft:sqlserver://localhost:1433;databaseName=persistence;selectMethod=cursor;</value>
                   </Parameter>
              </ResourceParams>               
    </Context>
    3.Config my web application's web.xml
    Added the following piece of code in WEB.XML
    <resource-ref>
    <res-ref-name>jdbc/persistenceDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    4.Use Datasource in my code
    package persistence.database;
    import java.sql.*;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    import javax.servlet.ServletContext;
    import persistence.*;
    import com.microsoft.jdbcx.sqlserver.*;
    import javax.naming.Context;
    public class DatabaseAuthenticator implements Authenticator {
    private DataSource ds;
    public void init(ServletContext sctx) throws Exception {
    InitialContext init = new InitialContext();
    try{
         Context ctx = (Context) init.lookup("java:/comp/env");
    ds = (DataSource) ctx.lookup("jdbc/persistenceDB");
    } catch (Exception e) { e.printStackTrace();
    public User authenticate(String username, String password)
    throws AuthenticationException, UnknownException {
    Connection conn = null;
    PreparedStatement pstmt = null;
    ResultSet rs;
    try {
    if (ds != null) {System.out.println("Success to get
    datasource");
            } else {System.out.println("Failed");}
    System.out.println(ds.toString());
    try
    conn = ds.getConnection();     
    catch (Exception e)
    e.printStackTrace();
    pstmt = conn.prepareStatement("SELECT user_id " + .........
    5. put msutil.jar, mssqlserver.jar and msbase.jar under /tomcat/common/lib/.
    When I tried to run the program, I receieved an error: can't load jdbc
    driver class: null.
    I've got no idea what's going on.
    Any Suggestion?
    Thanks in advance
    Kitty

    Hi Kitty,
    The connection you're trying to set up points to nothing :
    Connection conn = null;
    So, you receive a complaint that that driver cannot be loaded. Please read
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html
    download the right database driver and use that. Good luck!
    Wouter van Reeven
    public User authenticate(String username, String
    g password)
    throws AuthenticationException, UnknownException
    ption {
    Connection conn = null;
    PreparedStatement pstmt = null;
    ResultSet rs;

  • Can't load print driver client forbidden error signed in as admin, mfp kyocera taskalfa 300ci

    can't load print driver client forbidden error signed in as admin, mfp kyocera taskalfa 300ci only mac on network,

    can't load print driver client forbidden error signed in as admin, mfp kyocera taskalfa 300ci only mac on network,

  • I can't load the driver for a canon ir c2550.

    I can't load the driver for a canon ir c2550.  Installer gets to where it looks for the drive and never finds it.  Drive only has 18G of space left.  Help??
    I have an early 2008 MacBook Pro
    Thanks!!

    Thanks so much for your response
    I reset printer systems, and was only able to add Canon MG6200 series, either with Bonjour or Canon IJ Network, but cannot find the correct printer software for MG6250 (there is no option for any Canon MG printers) the only choice is Generic PostScript Printer.
    I have tried using this, but the print job is not going to the printer itself, it appears that it is, but then under the canon print box, it simply dissappears.
    Paul_31
    At this point is the printer connected to the Mac via a USB cable?
    Do you think that I should attach the printer with the old usb cable from my previous printer and try that appears to defeat the purpose of having a wifi printer    Or will this simply allow the computer to find the printer and then I can remove the cable?  Thanks

  • EXCEPTION_ACCESS_VIOLATION when loading DB2 driver

    Hi,
    I'm currently developing an executable jar application. I've got a problem in connecting to the DB2 server after packaging the application into a jar file. Below is the error that I encountered:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6c9a1f, pid=2296, tid=2260
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode, sharing)
    # Problematic frame:
    # V  [jvm.dll+0x89a1f]
    # An error report file with more information is saved as hs_err_pid2296.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #And here's the detailed log:
    ---------------  T H R E A D  ---------------
    Current thread (0x02cc7e00):  JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=2260]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
    Registers:
    EAX=0x00000000, EBX=0x00000000, ECX=0x02d12fe8, EDX=0x00ac2d60
    ESP=0x0742f090, EBP=0x0742f0c0, ESI=0x02cc7e00, EDI=0x00ac2d58
    EIP=0x6d6c9a1f, EFLAGS=0x00010206
    Top of Stack: (sp=0x0742f090)
    0x0742f090:   02cc7ebc 02cc7ebc 26b15cf0 02cc7ebc
    0x0742f0a0:   02cc7ebc 6d68086a 6d64aa71 02cc7e00
    0x0742f0b0:   0742f0e0 6d6c62ad 02cc7e00 00ac2d58
    0x0742f0c0:   0742f0e0 1000a647 02cc7ebc 00000000
    0x0742f0d0:   100130c8 00ac2d5c 02cc7e00 26b15cf0
    0x0742f0e0:   0742f100 100039b0 02cc7ebc 00000000
    0x0742f0f0:   00000000 00000000 02cc7e00 26b15cf0
    0x0742f100:   0742f130 00ad826f 02cc7ebc 0742f144
    Instructions: (pc=0x6d6c9a1f)
    0x6d6c9a0f:   a9 00 00 00 39 5d 14 0f 84 a0 00 00 00 8b 45 0c
    0x6d6c9a1f:   ff 30 e8 2a 97 ff ff 59 50 56 8d 4d 08 e8 da c3
    Stack: [0x073f0000,0x07430000),  sp=0x0742f090,  free space=252k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [jvm.dll+0x89a1f]
    C  [db2jdbc.dll+0xa647]
    C  [db2jdbc.dll+0x39b0]
    j  COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv([I)I+0
    j  COM.ibm.db2.jdbc.app.DB2Driver.<init>()V+628
    j  COM.ibm.db2.jdbc.app.DB2Driver.<clinit>()V+27
    v  ~StubRoutines::call_stub
    V  [jvm.dll+0x8295c]
    V  [jvm.dll+0xd752e]
    V  [jvm.dll+0x8282d]
    V  [jvm.dll+0x75a9c]
    V  [jvm.dll+0x7499d]
    V  [jvm.dll+0x9ff40]
    V  [jvm.dll+0x99269]
    C  [java.dll+0x13d8]
    j  java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
    j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
    j  ort.cip.client.DB2Connection.connect_query(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Z)Lcom/jrefinery/data/XYDataset;+19
    j  ort.cip.client.ORT_Charting_Main.jButton1_ActionEvents()V+369
    j  ort.cip.client.ORT_Charting_Main.connEtoC2()V+1
    j  ort.cip.client.ORT_Charting_Main.access$5(Lort/cip/client/ORT_Charting_Main;)V+1
    j  ort.cip.client.ORT_Charting_Main$IvjEventHandler.actionPerformed(Ljava/awt/event/ActionEvent;)V+62
    j  javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
    j  javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
    j  javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
    j  javax.swing.DefaultButtonModel.setPressed(Z)V+117
    j  javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
    j  java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
    j  javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
    j  java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j  java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477
    j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
    j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j  java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+304
    j  java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
    j  java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
    j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
    j  java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
    j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
    j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
    j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j  java.awt.EventDispatchThread.run()V+9
    v  ~StubRoutines::call_stub
    V  [jvm.dll+0x8295c]
    V  [jvm.dll+0xd752e]
    V  [jvm.dll+0x8282d]
    V  [jvm.dll+0x8258a]
    V  [jvm.dll+0x9d476]
    V  [jvm.dll+0x1042ae]
    V  [jvm.dll+0x10427c]
    C  [MSVCRT.dll+0x2a3b0]
    C  [kernel32.dll+0xb50b]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv([I)I+0
    j  COM.ibm.db2.jdbc.app.DB2Driver.<init>()V+628
    j  COM.ibm.db2.jdbc.app.DB2Driver.<clinit>()V+27
    v  ~StubRoutines::call_stub
    j  java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
    j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
    j  ort.cip.client.DB2Connection.connect_query(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Z)Lcom/jrefinery/data/XYDataset;+19
    j  ort.cip.client.ORT_Charting_Main.jButton1_ActionEvents()V+369
    j  ort.cip.client.ORT_Charting_Main.connEtoC2()V+1
    j  ort.cip.client.ORT_Charting_Main.access$5(Lort/cip/client/ORT_Charting_Main;)V+1
    j  ort.cip.client.ORT_Charting_Main$IvjEventHandler.actionPerformed(Ljava/awt/event/ActionEvent;)V+62
    j  javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
    j  javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
    j  javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
    j  javax.swing.DefaultButtonModel.setPressed(Z)V+117
    j  javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
    j  java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
    j  javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
    j  java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j  java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477
    j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
    j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j  java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+304
    j  java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
    j  java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
    j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
    j  java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
    j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
    j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
    j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j  java.awt.EventDispatchThread.run()V+9
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x000352e8 JavaThread "DestroyJavaVM" [_thread_blocked, id=832]
    =>0x02cc7e00 JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=2260]
      0x02cc4618 JavaThread "AWT-Shutdown" [_thread_blocked, id=848]
      0x00aa1a38 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3720]
      0x02cac008 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3756]
      0x00a699f0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4020]
      0x00a685c8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3556]
      0x00a67860 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=880]
      0x00a62ad0 JavaThread "Finalizer" daemon [_thread_blocked, id=2364]
      0x00a615f0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2796]
    Other Threads:
      0x00a5ed50 VMThread [id=2656]
      0x00a677a0 WatcherThread [id=3492]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 576K, used 292K [0x22a80000, 0x22b20000, 0x22f60000)
      eden space 512K,  44% used [0x22a80000, 0x22ab9540, 0x22b00000)
      from space 64K,  99% used [0x22b00000, 0x22b0fd78, 0x22b10000)
      to   space 64K,   0% used [0x22b10000, 0x22b10000, 0x22b20000)
    tenured generation   total 1408K, used 1304K [0x22f60000, 0x230c0000, 0x26a80000)
       the space 1408K,  92% used [0x22f60000, 0x230a6278, 0x230a6400, 0x230c0000)
    compacting perm gen  total 8192K, used 640K [0x26a80000, 0x27280000, 0x2aa80000)
       the space 8192K,   7% used [0x26a80000, 0x26b20080, 0x26b20200, 0x27280000)
        ro space 8192K,  62% used [0x2aa80000, 0x2af8a3a0, 0x2af8a400, 0x2b280000)
        rw space 12288K,  46% used [0x2b280000, 0x2b8103d8, 0x2b810400, 0x2be80000)
    Dynamic libraries:
    0x00400000 - 0x0040c000      C:\WINDOWS\system32\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x6d640000 - 0x6d7cc000      C:\Program Files\Java\jre1.5.0_05\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f56000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0_05\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d610000 - 0x6d61c000      C:\Program Files\Java\jre1.5.0_05\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0_05\bin\java.dll
    0x6d630000 - 0x6d63f000      C:\Program Files\Java\jre1.5.0_05\bin\zip.dll
    0x6d000000 - 0x6d167000      C:\Program Files\Java\jre1.5.0_05\bin\awt.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\UxTheme.dll
    0x73760000 - 0x737a9000      C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000      C:\WINDOWS\system32\DCIMAN32.dll
    0x73940000 - 0x73a10000      C:\WINDOWS\system32\D3DIM700.DLL
    0x63000000 - 0x63014000      C:\WINDOWS\system32\SynTPFcs.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\VERSION.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\shell32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x773d0000 - 0x774d2000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x5d090000 - 0x5d127000      C:\WINDOWS\system32\comctl32.dll
    0x6d240000 - 0x6d27d000      C:\Program Files\Java\jre1.5.0_05\bin\fontmanager.dll
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_05\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_05\bin\nio.dll
    0x10000000 - 0x10016000      C:\Program Files\SQLLIB\bin\db2jdbc.dll
    0x6c000000 - 0x6c236000      C:\PROGRA~1\SQLLIB\BIN\DB2CLI.dll
    0x6c770000 - 0x6ca25000      C:\PROGRA~1\SQLLIB\BIN\DB2SYS.dll
    0x6e260000 - 0x6e26b000      C:\PROGRA~1\SQLLIB\BIN\DB2WINT.dll
    0x07430000 - 0x07445000      C:\PROGRA~1\SQLLIB\BIN\DB2SYSP.dll
    0x6c240000 - 0x6c4e1000      C:\PROGRA~1\SQLLIB\BIN\DB2APP.dll
    0x6c620000 - 0x6c738000      C:\PROGRA~1\SQLLIB\BIN\DB2UTIL.dll
    0x6c4f0000 - 0x6c529000      C:\PROGRA~1\SQLLIB\BIN\DB2ABIND.dll
    0x07450000 - 0x07580000      C:\PROGRA~1\SQLLIB\BIN\db2osse.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x5b860000 - 0x5b8b4000      C:\WINDOWS\system32\NETAPI32.dll
    0x07580000 - 0x0758c000      C:\PROGRA~1\SQLLIB\BIN\db2locale.dll
    0x07590000 - 0x075c8000      C:\PROGRA~1\SQLLIB\BIN\db2trcapi.dll
    VM Arguments:
    java_command: Charting.jar
    Environment Variables:
    CLASSPATH=.;C:\PROGRA~1\SQLLIB\java\db2java.zip;C:\PROGRA~1\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\SQLLIB\java\sqlj.zip;C:\PROGRA~1\SQLLIB\bin;C:\PROGRA~1\SQLLIB\java\common.jar
    PATH=C:\PROGRAM FILES\THINKPAD\UTILITIES;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\WINDOWS\Downloaded Program Files;C:\IBMTOOLS\Python22;C:\Program Files\PC-Doctor for Windows\services;C:\Program Files\IBM\Trace Facility;C:\Program Files\Personal Communications;C:\IMNnq_NT;C:\PROGRA~1\Tcl\bin;C:\PROGRA~1\SQLLIB\BIN;C:\PROGRA~1\SQLLIB\FUNCTION;C:\j2sdk1.4.2_10\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\CMVC\exe;C:\CMVC\exe\bin;C:\CMVC\bin
    USERNAME=nugraha
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 261040k(31956k free), swap 639216k(137944k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_05-b05) for windows-x86, built on Aug 26 2005 15:36:02 by "java_re" with MS VC++ 6.0I found out that this error came out when the following part of the code was executed (see the one in bold):
    public static com.jrefinery.data.XYDataset connect_query(
        java.lang.String drive_SN,
        java.lang.String start_Date,
        java.lang.String end_Date,
        boolean[] checkBox_group) {
        TimeSeriesCollection collection = new TimeSeriesCollection();
        BasicTimeSeries[] param_value;
        try {
            // load the DB2 Driver
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
            // establish a connection to DB2
               Connection db2Conn = DriverManager.getConnection("jdbc:db2:FOXDBS_S","myID","mypass");    
            // use a statement to gather data from the database
            Statement st = db2Conn.createStatement();
            String myQuery = info_query;
            // execute the query
            ResultSet resultSet = st.executeQuery(myQuery);
            // clean up resources
            resultSet.close();
            st.close();
            db2Conn.close();
        } catch (ClassNotFoundException cnfe) {
            cnfe.printStackTrace();
        } catch (SQLException sqle) {
            sqle.printStackTrace();
        XYDataset data = collection;
        return data;
    }This code actually worked fine when I ran it from VisualAge for Java environment.
    I'm currently using J2SDK version 1.4.2_10 and J2RE version 1.4.2_10.
    Appreciate any help that you all can suggest. I've been looking for this error on the web. Seems like this has been a known and common problem but I couldn't find the working answer so far. Thank you in advance for any help.
    Chris

    Hi Russel,
    Thanks for the reply. I've executed the jar file using the -Xcheck:jni as follows:
    java -jar -Xcheck:jni Charting.jarand when I executed the function here's what appeared on the screen:
    FATAL ERROR in native method: JNI call made with exception pending
            at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method)
            at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)
            at COM.ibm.db2.jdbc.app.DB2Driver.<clinit>(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at ort.cip.client.DB2Connection.connect_query(DB2Connection.java:45)
            at ort.cip.client.ORT_Charting_Main.jButton1_ActionEvents(ORT_Charting_M
    ain.java:3159)
            at ort.cip.client.ORT_Charting_Main.connEtoC2(ORT_Charting_Main.java:244
            at ort.cip.client.ORT_Charting_Main.access$5(ORT_Charting_Main.java:240)
            at ort.cip.client.ORT_Charting_Main$IvjEventHandler.actionPerformed(ORT_
    Charting_Main.java:187)
            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
            at java.awt.Component.processMouseEvent(Unknown Source)
            at javax.swing.JComponent.processMouseEvent(Unknown Source)
            at java.awt.Component.processEvent(Unknown Source)
            at java.awt.Container.processEvent(Unknown Source)
            at java.awt.Component.dispatchEventImpl(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Window.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)I recognized that the error appeared during the execution of function "forName(driver)", which is exactly what I predicted before. Strange that this function worked well when executed from the development software (before packaging it into jar file). Is there a difference in the way the program works as executable jar file and as the file in the development sofware?
    And regarding the JDBC driver, I did try another driver, which was the JDBC type 2 and 4 driver. But when I ran the application, there's an error saying that the DB2 server does not support type 2 or 4 JDBC driver. Seems like I have no other choice but to use this driver.
    Do you have any suggestion on how to make the driver work as an executable Jar file? Meanwhile, I'll try to report the bug for this driver. Thanks....

  • Can't load vboxdrv driver on lts kernel

    I am having trouble starting vbox machine on 3.14.28-1-lts kernel after recent update.
    I got virtualbox-host-modules-lts and checked https://wiki.archlinux.org/index.php/VirtualBox so everything looks good in general...
    The error I get is this:
    Kernel driver not installed (rc=-1908)
    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
    'pacman -S virtualbox-host-modules'
    as root. If you don't use our stock kernel, install virtualbox-host-dkms and execute dkms autoinstall.
    I tried few things but the end result is I can't load the vboxdrv, here is some output:
    [root@fatal amp]# dkms install vboxhost/$(pacman -Q virtualbox|awk '{print $2}'|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')
    Kernel preparation unnecessary for this kernel. Skipping...
    Building module:
    cleaning build area....
    make KERNELRELEASE=3.14.28-1-lts -C /usr/lib/modules/3.14.28-1-lts/build M=/var/lib/dkms/vboxhost/4.3.20/build..........
    cleaning build area....
    Kernel cleanup unnecessary for this kernel. Skipping...
    DKMS: build completed.
    vboxdrv.ko:
    Running module version sanity check.
    - Original module
    - No original module exists within this kernel
    - Installation
    - Installing to /usr/lib/modules/3.14.28-1-lts/kernel/misc/
    vboxnetflt.ko:
    Running module version sanity check.
    - Original module
    - No original module exists within this kernel
    - Installation
    - Installing to /usr/lib/modules/3.14.28-1-lts/kernel/misc/
    vboxnetadp.ko:
    Running module version sanity check.
    - Original module
    - No original module exists within this kernel
    - Installation
    - Installing to /usr/lib/modules/3.14.28-1-lts/kernel/misc/
    vboxpci.ko:
    Running module version sanity check.
    - Original module
    - No original module exists within this kernel
    - Installation
    - Installing to /usr/lib/modules/3.14.28-1-lts/kernel/misc/
    depmod....
    DKMS: install completed.
    [root@fatal amp]# vboxreload
    Unloading modules:
    DKMS autoinstall
    Loading modules: modprobe: ERROR: could not insert 'vboxnetadp': Invalid argument
    modprobe: ERROR: could not insert 'vboxnetflt': Invalid argument
    modprobe: ERROR: could not insert 'vboxpci': Invalid argument
    modprobe: ERROR: could not insert 'vboxdrv': Invalid argument
    [root@fatal amp]# modprobe -vvv vboxdrv
    modprobe: INFO: custom logging function 0x40a1b0 registered
    insmod /lib/modules/3.14.28-1-lts/extramodules/vboxdrv.ko.gz
    modprobe: INFO: Failed to insert module '/lib/modules/3.14.28-1-lts/extramodules/vboxdrv.ko.gz': Invalid argument
    modprobe: ERROR: could not insert 'vboxdrv': Invalid argument
    modprobe: INFO: context 0x10f5340 released
    Please advice.

    I was also having problems.  I took Rokixz advice and built virtualbox-host-modules-lts from abs.  This fixed it for me.
    Problem was:
    # modprobe vboxdrv
    modprobe: ERROR: could not insert 'vboxdrv': Invalid argument
    Here's some info-
    $ uname -a
    Linux archbook 3.14.29-1-lts #1 SMP Fri Jan 16 20:57:17 CET 2015 x86_64 GNU/Linux
    $ pacman -Qi linux-lts
    Name : linux-lts
    Version : 3.14.29-1
    Description : The Linux-lts kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licenses : GPL2
    Groups : None
    Provides : kernel26-lts=3.14.29
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : virtualbox-guest-modules-lts virtualbox-host-modules-lts
    Optional For : None
    Conflicts With : kernel26-lts
    Replaces : kernel26-lts
    Installed Size : 72.71 MiB
    Packager : Andreas Radke <[email protected]>
    Build Date : Fri 16 Jan 2015 01:59:49 PM CST
    Install Date : Wed 21 Jan 2015 01:56:46 PM CST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature
    This is what my virtualbox-host-modules-lts looked like before my abs build.
    $ pacman -Qi virtualbox-host-modules-lts
    Name : virtualbox-host-modules-lts
    Version : 4.3.20-2
    Description : Host kernel modules for VirtualBox
    Architecture : x86_64
    URL : http://virtualbox.org
    Licenses : GPL
    Groups : None
    Provides : virtualbox-host-modules=4.3.20
    Depends On : linux-lts>=3.14 linux-lts<3.15
    Optional Deps : None
    Required By : virtualbox
    Optional For : None
    Conflicts With : virtualbox-modules-lts
    Replaces : virtualbox-modules-lts
    Installed Size : 167.00 KiB
    Packager : Bartłomiej Piotrowski <[email protected]>
    Build Date : Mon 08 Dec 2014 12:01:20 PM CST
    Install Date : Wed 21 Jan 2015 02:16:01 PM CST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature
    This is what my virtualbox-host-modules-lts looked like after my abs build.
    $ pacman -Qi virtualbox-host-modules-lts
    Name : virtualbox-host-modules-lts
    Version : 4.3.20-2
    Description : Host kernel modules for VirtualBox
    Architecture : x86_64
    URL : http://virtualbox.org
    Licenses : GPL
    Groups : None
    Provides : virtualbox-host-modules=4.3.20
    Depends On : linux-lts>=3.14 linux-lts<3.15
    Optional Deps : None
    Required By : virtualbox
    Optional For : None
    Conflicts With : virtualbox-modules-lts
    Replaces : virtualbox-modules-lts
    Installed Size : 187.00 KiB
    Packager : Unknown Packager
    Build Date : Wed 21 Jan 2015 02:23:28 PM CST
    Install Date : Wed 21 Jan 2015 02:40:43 PM CST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : None
    What's strange is that the "Version" is the same - 4.3.20-2, but the "Installed Size" varies...  167 KiB vs 187 KiB.
    Also, the build date on the virtualbox-host-modules package (still the current one in the repos) was Dec 8, 2014...  The linux-lts package build date is Jan 16, 2015.
    -David

  • Can't load JDBC Driver

    Hi,
    I can't load my JDBC driver for SQLserver database to
    opening my DB with a servlet ...
    platform : Windows 2000 server
    servlet container : Jakarta-tomcat 3.2.2
    jdk : jdk1.3
    After executing the servlet which load the JDBC driver, the following message was appearing:
    "ClassNotFoundException, java.lang.NullPointerException"
    Thanks for your help.

    Looks like the servlet is not able to find the required class in the package...Tomcat rewrites the classpath....So you might want to look at /bin/tomcatEnv.bat     and modify it accordingly....Of course, check your classpath env variable to see if all the necessary zip/jar files are included.

  • Can't load line6usb driver module after installing from AUR

    I downloaded the line6usb package from the AUR. After building then installing with pacman I should be able to load the module ala modprobe line6usb, but I get the error:
    FATAL: MOdule line6usb not found.
    I looked for the module itself and found it here(assuming this is it):
    /lib/modules/2.6.27-ARCH/extra/line6usb.ko
    Does anyone have an idea why I can't load this module? I'm still quite the noob with concerning things like this and I'm assuming it's something obvious I need to do.

    I downloaded the line6usb package from the AUR. After building then installing with pacman I should be able to load the module ala modprobe line6usb, but I get the error:
    FATAL: MOdule line6usb not found.
    I looked for the module itself and found it here(assuming this is it):
    /lib/modules/2.6.27-ARCH/extra/line6usb.ko
    Does anyone have an idea why I can't load this module? I'm still quite the noob with concerning things like this and I'm assuming it's something obvious I need to do.

  • Can't load ASIO driver / device could not be opened error in Audition CC but not Audition CS6

    I have a M-Audio Fast Track Ultra USB 2.0 that I use for audio.  I installed Audition CC and it wont let me use the ASIO driver for it.  I get the device could not be opened error.  On the same system I have Audition CS6 which works with the ASIO driver fine.  Also have Vegas, Premiere, etc - all on the same machine and no problems with the M-Audio driver.  I can load the Blackmagic ASIO driver but don't use that for audio mixing.  Changing Use Machine Specific Device Defaults and Force Hardware to Sample Rate does nothing.   Running Windows 7 64 bit.

    M-Audio 64-bit driver is apparently troublesome, but the 32-bit one works fine - which explains why CS6 works and CC doesn't. As far as I can find out, you aren't the only person with this problem - have a look at this Reaper forum thread - you may get some useful information from it (no promises!)
    http://forum.cockos.com/showthread.php?t=127129

  • Satellite L550 - Can't load sound driver in Win XP

    I bought a Satellite L550 with Vista preinstalled and want to use XP.
    I have loaded XP and have no sound device.
    I downloaded the Sound Driver TC40072000A.exe but when I execute it, it extracts and then does nothing.
    Maybe I need some other drivers loaded first?
    Please help, thanks,
    John

    Hi
    The notebook needs an Realtek HD sound driver.
    You can download such driver directly from the Realtek driver page.
    But before you would try to reinstall the sound driver, you will need to update the Win XP!
    All service packs SP2 and SP3 have to be installed!!!!
    This is very important since the SP3 contains necessary patches and fixes.
    After the SP3 installation you could follow with sound driver
    Greets

  • Can't load oracle driver...

    h
    i'm trying to connect to my oracle db from my jbuilder application and get the following error...
    jdbc:oracle:thin@devserver05:1521:xxx_xxx
    error loading class.forname
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
    this is created from my code...
    import java.sql.*;
    public class ConnectionManager {
    private static final String driveName = "oracle.jdbc.driver.OracleDriver";
    private static final String serverName = "dev_server05";
    private static final int serverPort = 1521;
    private static final String dataBaseSID = "xxx_xxx";
    private static final String userID = "xxxxx";
    private static final String password = "yyyyy";
    private static final String URL = "jdbc:oracle:thin@" + serverName + ":" + serverPort
    + ":" + dataBaseSID;
    public ConnectionManager() {
    public static Connection createConnection() throws SQLException{
    try {
    Class.forName(driveName);
    catch (ClassNotFoundException e1) {
    System.out.println(URL);
    System.out.println("error loading class.forname");
    e1.printStackTrace();
    Connection con = DriverManager.getConnection(URL, userID, password);
    return con;
    }

    and when i type the following into the command
    line...
    C:\jtm>java oracle.jdbc.driver.OracleDriver
    i get the following so i guess my path is ok.....
    Exception in thread "main"
    java.lang.NoClassDefFoundError:
    oracle/jdbc/driver/OracleDriverHi ,
    try adding the import statement for the oracle driver, which is
    import oracle.jdbc.driver.*;
    and don't forget to add your oracle driver in the classpath..
    hope this helps..
    Ganesh

  • Can't load jdbc driver from localhost

    I'm having problems loading the jdbc driver from localhost when using a java com object in ASP.
    The simple class compiles fine and runs perfect from dos command line but gives this exception when run from personal webserver:
    java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver
    Obviously, it is not finding the jdbc driver, but what is the problem? It finds the driver when run from dos locally. Do I need a 3rd party driver when using as a COM object?
    Here is a code snippet:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection TestConnection = DriverManager.getConnection("jdbc:odbc:systemDSN", "username", "password");
    Any help is appreciated, thanks!

    I don't think it's exactly a classpath problem. I think when you run from the DOS command line, you are using the java.exe program that contains Sun's JVM and all the associated classes including sun/jdbc/odbc/JdbcOdbcDriver. But when you use this Java COM object (which I am not familiar with), if it doesn't find that class then it must be using the Microsoft VM, which naturally doesn't include that class you are having a problem with.

  • We upgraded to OS 10.5.8 and can't load thumb drive data back on

    We backed up the MacBook onto a thumb drive,  reinstalled Leopard,  and now can't put the data back on the computer.
    Any suggestions. 

    It is a friend's computer - an iBook (not duel processor) but she upgraded it last year to 10.5.1 and then Safari stopped working and the Genius bar said to reinstall Leopard.  So we backed up her computer on a thumb drive and did a clean install of OS 10.5.1 and eventhing is fine - Safari works etc.  however we can't put her data back on the computer??   I don't know what to do - I just know a little more than she does

  • Unable to load iCloud drive

    I,m trying to access iCloud Drive through iCloud.com, but when I log in and click on iCloud Drive, I get the error message, "Can't load iCloud Drive.  There was a problem loading the application."  I have always had this problem, I have never been able to access it.  It is activated on all my mobile devices and my iMac, all of which are running the latest versions of iOS and Mac OS X.

    Duplicate of, Can't Load iCloud Drive, no solution since at least 1st of January! 3 months! Come on Apple!

  • Fglrx: How to load intel driver with various options, e.g. AccelMethod

    Hi,
    When using fglrx and pxpress on a system with hybrid graphics, how can options be set for the intel device?
    Normally in the "xorg.conf" I could just put something like
    Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "sna"
    EndSection
    But with fglrx installed the xorg.conf looks like
    Section "ServerLayout"
    Identifier "Radeon Layout"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:6:0:0"
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    (Adding an intel device section in here would cause major problems(I get segfaults). I guess because both fglrx/pxpress and xorg try to launch the i915 driver)
    So how can I configure options for the intel driver?
    Why do I want to do this?
    Well aside from the ability to tweak the integrated GPU performance in the usual manner, I have a bug that occurs when UXA is used as the accleration method, but not when SNA is used for the intel driver (even before fglrx is installed on the system). Without fglrx SNA is the default anyway, but fglrx for some reason likes to use UXA.
    Last edited by fpghost84 (2014-01-27 15:16:34)

    Hi, thanks for the new link. Yes, this is completely relevant, but unfortunately it's incomplete & didn't work for me. Please pass this along to the documentation team. Referring to the document, here are the steps I followed:
    A) Starting at section "Restore your computer when Windows 8 cannot start normally" ...
    B) I turned the laptop on & pressed F11 : "System Recovery"
    C) Spinning dots never end, just like during normal start-up, as I reported in original post 
    D) -> Document should mention the option of booting from Windows 8 installation DVD
    E) Booting from Windows 8 DVD, I was able to reach step 7 : "On the Advanced options screen, click System Restore ."
    F) I was unable to reach step 8 in the section :  "Click Windows 8 as the target operating system." b/c I need to load the Intel storage driver for the RAID array that's configured in the BIOS, so that System Restore can see my hard drive.
    How can I load that driver??
    Thanks,
    Brad

Maybe you are looking for

  • SRM Standalone Master Data creation

    Hello, We are changing from  SRM 5.0 Classic Scenario to Standalone scenario. I am facing few problems as below, When I try to create the material / service category under the R3MATCLASS & R3PRODSTYPE the system does not allow me to change saying it

  • Proxy Server in File Transfer System

    Hi, I need to write out a file transfer system through a proxy server for my project All the while i was writing a file transfer system directly from client to server without any security issue Anyway, the scope is given as below, and i know it needs

  • Comparison in date

    hi all, can anybody tell me, how we can compare the dates? i have a bdc for billing date and i want to compare my XL billing date to system billing date, my requirement is XL billing date should not Lesser than system billing date. can anybody help m

  • Help, please: Sequence audio won't play - 'pinked' out.

    Hi FCPeers, I'm (hopefully) winding up a two week system reformation - storage backup, initialization, reformatting, partioning, installation - well, the whole 9 yards in order to run my creaky but workable FCP 3.0.4 on OS X 10.2.8 the way it was mea

  • Reg: ADF Select One List box..

    Hi, I have a view object which is associated with application module. I am dragging onto the form as Select one List box. In the list binding Editor , I have only one data source. When I am trying to specify the Base data source attribute and list da