TecKnologikS / power-architect

Automatically exported from code.google.com/p/power-architect
GNU General Public License v3.0
0 stars 0 forks source link

NullPointerException while trying to drag a table into PlayPen #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch architect from Eclipse
2. Load test environment connection 
3. select HR database
4. select either Employees or Location table

What is the expected output? What do you see instead?
The expected out out is Employees or Location table is in PlayPen. But instead 
it displays 'NullPointerException' as below:

java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.NullPointerException
    at ca.sqlpower.architect.swingui.PlayPen$AddObjectsTask.cleanup(PlayPen.java:1700)
    at ca.sqlpower.swingui.SPSwingWorker$1.run(SPSwingWorker.java:114)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:663)
    at java.awt.EventQueue$2.run(EventQueue.java:661)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at ca.sqlpower.sqlobject.SQLTable.populateRelationshipsWithList(SQLTable.java:820)
    at ca.sqlpower.sqlobject.SQLTable$5.run(SQLTable.java:737)
    at ca.sqlpower.architect.swingui.ArchitectSwingSessionImpl.runInForeground(ArchitectSwingSessionImpl.java:1166)
    at ca.sqlpower.object.AbstractSPObject.runInForeground(AbstractSPObject.java:669)
    at ca.sqlpower.sqlobject.SQLTable.populateRelationships(SQLTable.java:732)
    at ca.sqlpower.sqlobject.SQLTable.createTableFromSource(SQLTable.java:300)
    at ca.sqlpower.sqlobject.SQLTable.createInheritingInstance(SQLTable.java:287)
    at ca.sqlpower.architect.swingui.PlayPen.importTableCopy(PlayPen.java:1258)
    at ca.sqlpower.architect.swingui.PlayPen$AddObjectsTask.cleanup(PlayPen.java:1621)
    ... 15 more
Caused by: java.lang.NullPointerException
    at ca.sqlpower.sqlobject.SQLRelationship.attachRelationship(SQLRelationship.java:578)
    at ca.sqlpower.sqlobject.SQLRelationship.attachRelationship(SQLRelationship.java:531)
    at ca.sqlpower.sqlobject.SQLTable.populateRelationshipsWithList(SQLTable.java:796)
    ... 23 more
19341 [AWT-EventQueue-0] ERROR ca.sqlpower.swingui.SPSUtils  - dialog parent 
component null is neither JFrame nor JDialog

Original issue reported on code.google.com by ki...@sqlpower.ca on 9 Apr 2013 at 5:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Giving NPE due to cross schema relationship as related schema populate later 
and is not able to find foreign Key Table.

Original comment by ki...@sqlpower.ca on 14 May 2013 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by ki...@sqlpower.ca on 14 May 2013 at 9:06