Menu

NullPointerException

Help
Chris R
2007-04-02
2013-05-02
  • Chris R

    Chris R - 2007-04-02

    I receive a NullPointerException whenever i try to connect to a db using an edb-jdbc driver.
    I tried to get into the code, because i was looking for an app exactly like that in order to include it as a plugin in an app i have been writing, but, honestly, there is just way too much documentation in the source code...

     
    • nickyb

      nickyb - 2007-04-02

      please, I need to know your dbms and driver versions.
      thanks.

       
    • Chris R

      Chris R - 2007-04-03

      I am using EnterpriseDB 8.1 which in turn uses PostgreSQL 8.1

       
      • nickyb

        nickyb - 2007-05-16

        Fixed and Tested succesfully, download last release 2007.04.
        Please, let me know if you have other problems.

        Thanks

         
    • tuzka

      tuzka - 2007-05-07

      Hi, i have such one error too. I don't know if i "filled the forms" properly, if i selected the right driver... I used MS Access, phpMyAdmin etc, but never needed a Java application. I am totally newbie to Java aplication. You write on your pages "fill the form", but i need an example to understand it. I don't know what exactly set to this forms. I tried MySQL Connector/J but i not understand it exactly. Please, help me. I run SQLeonardo on W2k.

       
      • nickyb

        nickyb - 2007-05-07

        please, which is the error?

        anyway...suppose you have downloaded and unzipped sqleonardo into c:\sqleonardo and the mysql jdbc driver into c:\sqleonardo\mysql

        Run SQLeonardo and into the "metadata explorer" do:
        - choose the menu "actions>new driver..."
        - check "add library (browse filesystem)" and click "next >"
        - select the jar file into c:\sqleonardo\mysql and click "next >"
        - type into the textfield named "name:" => MySQL
        - select into the combobox named "driver:" => com.mysql.jdbc.Driver
        - into "example:" => jdbc:mysql://[host][:port]/[database]
        - click ok.
        now you have registered the driver!

        Select the item "MySQL" appeared into the tree and:
        - choose the menu "actions>new datasource..."
        - replace jdbc:mysql://[host][:port]/[database] => jdbc:mysql://localhost:3306/<your database name>
        - put username and password and click ok.
        now you have added your database profile.

        Select the item under "MySQL"...you need now to test the connection!

        hope all is quit clean ;)
        Regards

         
    • JohnN

      JohnN - 2007-05-18

      I too am receiving this exception when clicking on any item of the menu bar (file, actions, tools, window, ?).  Menus do not drop down and the exceptions repeat continuously until the program is shut down.  Environment if Fedora Core 5, MySql server version 5.0.27, sqleonardo version 2007.04 (downloaded yesterday).

      -------------------------------------------
      $ java --version
      java version "1.4.2"
      gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51)

      Copyright (C) 2006 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      -------------------------------------------
      $ java -jar sqleonardo.jar
      javax.swing.plaf.metal.MetalLookAndFeel
      loading resources...
      loading session...
              version: 2007.04
      loading window...
      Exception during event dispatch:
      java.lang.NullPointerException
         at java.util.Hashtable.hash(libgcj.so.7)
         at java.util.Hashtable.put(libgcj.so.7)
         at javax.swing.KeyboardManager.registerEntireMap(libgcj.so.7)
         at javax.swing.JComponent.addNotify(libgcj.so.7)
         at java.awt.Container.addNotifyContainerChildren(libgcj.so.7)
         at java.awt.Container.addNotify(libgcj.so.7)
         at javax.swing.JComponent.addNotify(libgcj.so.7)
         at java.awt.Container.addNotifyContainerChildren(libgcj.so.7)
         at java.awt.Container.addNotify(libgcj.so.7)
         at javax.swing.JComponent.addNotify(libgcj.so.7)
         at java.awt.Container.addImpl(libgcj.so.7)
         at javax.swing.JLayeredPane.addImpl(libgcj.so.7)
         at java.awt.Container.add(libgcj.so.7)
         at javax.swing.Popup$LightweightPopup.show(libgcj.so.7)
         at javax.swing.JPopupMenu.setVisible(libgcj.so.7)
         at javax.swing.JPopupMenu.show(libgcj.so.7)
         at javax.swing.JMenu.setSelectedHelper(libgcj.so.7)
         at javax.swing.JMenu.menuSelectionChanged(libgcj.so.7)
         at javax.swing.MenuSelectionManager.setSelectedPath(libgcj.so.7)
         at javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mousePressed(libgcj.so.7)
         at java.awt.Component.processMouseEvent(libgcj.so.7)
         at java.awt.Component.processEvent(libgcj.so.7)
         at java.awt.Container.processEvent(libgcj.so.7)
         at java.awt.Component.dispatchEventImpl(libgcj.so.7)
         at java.awt.Container.dispatchEventImpl(libgcj.so.7)
         at java.awt.Component.dispatchEvent(libgcj.so.7)
         at java.awt.LightweightDispatcher.handleEvent(libgcj.so.7)
         at java.awt.Container.dispatchEventImpl(libgcj.so.7)
         at java.awt.Window.dispatchEventImpl(libgcj.so.7)
         at java.awt.Component.dispatchEvent(libgcj.so.7)
         at java.awt.EventQueue.dispatchEvent(libgcj.so.7)
         at java.awt.EventDispatchThread.run(libgcj.so.7)
      Exception during event dispatch:
      java.lang.NullPointerException
         at java.util.Hashtable.hash(libgcj.so.7)
         at java.util.Hashtable.put(libgcj.so.7)
         at javax.swing.KeyboardManager.registerEntireMap(libgcj.so.7)
         at javax.swing.JComponent.addNotify(libgcj.so.7)
         at java.awt.Container.validateTree(libgcj.so.7)
         at java.awt.Container.validateTree(libgcj.so.7)
         at java.awt.Container.validate(libgcj.so.7)
         at javax.swing.RepaintManager.validateInvalidComponents(libgcj.so.7)
         at javax.swing.RepaintManager$RepaintWorker.run(libgcj.so.7)
         at java.awt.event.InvocationEvent.dispatch(libgcj.so.7)
         at java.awt.EventQueue.dispatchEvent(libgcj.so.7)
         at java.awt.EventDispatchThread.run(libgcj.so.7)
      Exception during event dispatch:
      java.lang.NullPointerException
         at java.util.Hashtable.hash(libgcj.so.7)
         at java.util.Hashtable.put(libgcj.so.7)
         at javax.swing.KeyboardManager.registerEntireMap(libgcj.so.7)
         at javax.swing.JComponent.addNotify(libgcj.so.7)
         at java.awt.Container.validateTree(libgcj.so.7)
         at java.awt.Container.validateTree(libgcj.so.7)
         at java.awt.Container.validate(libgcj.so.7)
         at javax.swing.RepaintManager.validateInvalidComponents(libgcj.so.7)
         at javax.swing.RepaintManager$RepaintWorker.run(libgcj.so.7)
         at java.awt.event.InvocationEvent.dispatch(libgcj.so.7)
         at java.awt.EventQueue.dispatchEvent(libgcj.so.7)
         at java.awt.EventDispatchThread.run(libgcj.so.7)

       
  • vbjs vhbje

    vbjs vhbje - 2010-01-20

    For the ones that try to use the zip file provided by the mysql site and fail at it…just extract the jar file from the zip and use that.

     

Log in to post a comment.