#631 NPE adding table to graph

2.6.5
open
Gerd Wagner
5
2012-12-29
2008-05-14
Anonymous
No

db: informix 11.10 on windows
jdbc driver: 3.00.JC3
squirrel sql: 2.6.5a on linux
java : 1.6.0-b105

Logs attached.

I'm using the demo tables provided by informix. Right click on first table "add to graph" is OK and table is added. Right click on second table and add to existing graph results in attached NPE.

Discussion

  • screenshot of my squirrel session

     
    Attachments
  • Logged In: NO

    Hmnn. Couldn't figure out how to add a second attachement.
    Squirrel log below:

    0 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - #############################################################################################################
    13 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - # Starting SQuirreL SQL Client Version 2.6.5a at 5/14/08 10:54 AM
    14 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - #############################################################################################################
    16 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - SQuirreL SQL Client Version 2.6.5a started: Wed May 14 10:54:48 EDT 2008
    16 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - Copyright (c) 2001-2008
    Colin Bell, Gerd Wagner, Rob Manning and others
    16 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - java.vendor: Sun Microsystems Inc.
    16 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - java.version: 1.6.0
    16 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - java.runtime.name: Java(TM) SE Runtime Environment
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - os.name: Linux
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - os.version: 2.6.9-34.ELsmp
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - os.arch: i386
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - user.dir: /localdisk/data/apps/squirrel265a
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - user.home: /home/jpfourn
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - java.home: /localdisk/data/jdk1.6.0/jre
    17 [main] INFO net.sourceforge.squirrel_sql.client.SquirrelLoggerFactory - java.class.path: /localdisk/data/apps/squirrel265a/squirrel-sql.jar:/localdisk/data/apps/squirrel265a/lib/antlr-2.7.5H3.jar:/localdisk/data/apps/squirrel265a/lib/cglib-2.1.3.jar:/localdisk/data/apps/squirrel265a/lib/commons-cli.jar:/localdisk/data/apps/squirrel265a/lib/commons-collections-2.1.1.jar:/localdisk/data/apps/squirrel265a/lib/commons-logging-1.0.4.jar:/localdisk/data/apps/squirrel265a/lib/dom4j-1.6.1.jar:/localdisk/data/apps/squirrel265a/lib/ejb3-persistence.jar:/localdisk/data/apps/squirrel265a/lib/forms.jar:/localdisk/data/apps/squirrel265a/lib/fw.jar:/localdisk/data/apps/squirrel265a/lib/hibernate3.2.4.sp1.jar:/localdisk/data/apps/squirrel265a/lib/hibernate-annotations-3.3.0.jar:/localdisk/data/apps/squirrel265a/lib/hibernate-commons-annotations-3.3.0.jar:/localdisk/data/apps/squirrel265a/lib/hibernate-entitymanager-3.3.1.jar:/localdisk/data/apps/squirrel265a/lib/jxl.jar:/localdisk/data/apps/squirrel265a/lib/log4j.jar:/localdisk/data/apps/squirrel265a/lib/nanoxml-2.1.jar:/localdisk/data/apps/squirrel265a/lib/openide.jar:/localdisk/data/apps/squirrel265a/lib/openide-loaders.jar:/localdisk/data/apps/squirrel265a/lib/org-netbeans-modules-editor-fold.jar:/localdisk/data/apps/squirrel265a/lib/org-netbeans-modules-editor.jar:/localdisk/data/apps/squirrel265a/lib/org-netbeans-modules-editor-lib.jar:/localdisk/data/apps/squirrel265a/lib/org-netbeans-modules-editor-util.jar:/localdisk/data/apps/squirrel265a/lib/syntax.jar:
    7481 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin informix created in 3 ms, loaded in 0 ms, initialized in 0 ms, total 3 ms.
    7483 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin hibernate created in 1 ms, loaded in 0 ms, initialized in 2 ms, total 3 ms.
    7484 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin sybase created in 3 ms, loaded in 0 ms, initialized in 39 ms, total 42 ms.
    7485 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin dataimport created in 0 ms, loaded in 2 ms, initialized in 4 ms, total 6 ms.
    7486 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin sqlparam created in 0 ms, loaded in 0 ms, initialized in 2 ms, total 2 ms.
    7487 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin sqlval created in 3 ms, loaded in 0 ms, initialized in 16 ms, total 19 ms.
    7488 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin sessionscript created in 0 ms, loaded in 0 ms, initialized in 9 ms, total 9 ms.
    7489 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin postgres created in 2 ms, loaded in 0 ms, initialized in 0 ms, total 2 ms.
    7491 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin oracle created in 26 ms, loaded in 0 ms, initialized in 57 ms, total 83 ms.
    7492 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin firebird created in 2 ms, loaded in 2 ms, initialized in 2 ms, total 6 ms.
    7496 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin sqlbookmark created in 3 ms, loaded in 0 ms, initialized in 55 ms, total 58 ms.
    7498 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin editextras created in 2 ms, loaded in 14 ms, initialized in 10 ms, total 26 ms.
    7499 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin laf created in 5 ms, loaded in 1,685 ms, initialized in 0 ms, total 1,690 ms.
    7500 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin syntax created in 6 ms, loaded in 0 ms, initialized in 66 ms, total 72 ms.
    7507 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin graph created in 2 ms, loaded in 0 ms, initialized in 5 ms, total 7 ms.
    7510 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin mssql created in 9 ms, loaded in 6 ms, initialized in 31 ms, total 46 ms.
    7511 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin codecompletion created in 1 ms, loaded in 0 ms, initialized in 6 ms, total 7 ms.
    7513 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin sqlscript created in 1 ms, loaded in 0 ms, initialized in 21 ms, total 22 ms.
    7515 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin dbcopy created in 1 ms, loaded in 0 ms, initialized in 21 ms, total 22 ms.
    7517 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin db2 created in 3 ms, loaded in 0 ms, initialized in 0 ms, total 3 ms.
    7519 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin refactoring created in 1 ms, loaded in 0 ms, initialized in 11 ms, total 12 ms.
    7521 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin mysql created in 4 ms, loaded in 2 ms, initialized in 32 ms, total 38 ms.
    7524 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin derby created in 23 ms, loaded in 0 ms, initialized in 0 ms, total 23 ms.
    7525 [main] INFO net.sourceforge.squirrel_sql.client.Application - Plugin h2 created in 2 ms, loaded in 0 ms, initialized in 0 ms, total 2 ms.
    23082 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.AxionDialect
    23175 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.DB2Dialect
    23195 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.DaffodilDialect
    23200 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.DerbyDialect
    23205 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.FirebirdDialect
    23209 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.FrontBaseDialect
    23213 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.HADBDialect
    23218 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.H2Dialect
    23220 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.HSQLDialect
    23226 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.InformixDialect
    23228 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.InterbaseDialect
    23231 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.IngresDialect
    23237 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.MAXDBDialect
    23239 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.McKoiDialect
    23246 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.MySQLDialect
    23247 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.MySQL5Dialect
    23260 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.Oracle9iDialect
    23263 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.PointbaseDialect
    23269 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.PostgreSQLDialect
    23272 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.ProgressDialect
    23282 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.SybaseDialect
    23286 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.SQLServerDialect
    23290 [Thread-5] INFO org.hibernate.dialect.Dialect - Using dialect: net.sourceforge.squirrel_sql.fw.dialects.TimesTenDialect
    25735 [Thread-5] INFO net.sourceforge.squirrel_sql.plugins.sqlparam.SQLParamPlugin - Initializing plugin
    26294 [AWT-EventQueue-1] INFO net.sourceforge.squirrel_sql.plugins.sqlparam.SQLParamPlugin - Adding SQL execution listener.
    79768 [AWT-EventQueue-1] ERROR net.sourceforge.squirrel_sql.client.Application - Exception occured dispatching Event java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=net.sourceforge.squirrel_sql.plugins.graph.GraphController$4@16b69d7,notifier=null,catchExceptions=false,when=1210776967892] on sun.awt.X11.XToolkit@fa7e74
    java.lang.NullPointerException
    at net.sourceforge.squirrel_sql.plugins.graph.TableFrameController.findConstraintViews(TableFrameController.java:1167)
    at net.sourceforge.squirrel_sql.plugins.graph.TableFrameController.recalculateConnectionsTo(TableFrameController.java:1078)
    at net.sourceforge.squirrel_sql.plugins.graph.TableFrameController.tableFrameOpen(TableFrameController.java:959)
    at net.sourceforge.squirrel_sql.plugins.graph.GraphController.initsAfterFrameAdded(GraphController.java:359)
    at net.sourceforge.squirrel_sql.plugins.graph.GraphController.access$800(GraphController.java:16)
    at net.sourceforge.squirrel_sql.plugins.graph.GraphController$4.run(GraphController.java:247)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at net.sourceforge.squirrel_sql.client.Application$1.dispatchEvent(Application.java:180)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)