You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Allan Emord (JIRA)" <ji...@apache.org> on 2010/03/11 22:04:27 UTC

[jira] Created: (CAY-1405) Exception when attempting to "Infer Relationships"

Exception when attempting to "Infer Relationships"
--------------------------------------------------

                 Key: CAY-1405
                 URL: https://issues.apache.org/jira/browse/CAY-1405
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 3.0RC2
         Environment: Ubuntu 9.1
java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

Cayenne 3.0RC2 (Jan 30 2010..)
            Reporter: Allan Emord


CayenneModeler Error Please copy the message below and report this error by going to http://issues.apache.org/cayenne/

CayenneModeler Info
Version: cayenne.version
Build Date: cayenne.build.date
Exception: 
=================================
java.lang.NullPointerException
	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.createJoin(InferRelationshipsControllerBase.java:157)
	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.setRelationships(InferRelationshipsControllerBase.java:71)
	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsController.<init>(InferRelationshipsController.java:65)
	at org.apache.cayenne.modeler.action.InferRelationshipsAction.performAction(InferRelationshipsAction.java:47)
	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6108)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:5873)
	at java.awt.Container.processEvent(Container.java:2105)
	at java.awt.Component.dispatchEventImpl(Component.java:4469)
	at java.awt.Container.dispatchEventImpl(Container.java:2163)
	at java.awt.Component.dispatchEvent(Component.java:4295)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
	at java.awt.Container.dispatchEventImpl(Container.java:2149)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4295)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1405) Exception when attempting to "Infer Relationships"

Posted by "Ari Maniatis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ari Maniatis updated CAY-1405:
------------------------------

    Fix Version/s: 3.0RC3

> Exception when attempting to "Infer Relationships"
> --------------------------------------------------
>
>                 Key: CAY-1405
>                 URL: https://issues.apache.org/jira/browse/CAY-1405
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0RC2
>         Environment: Ubuntu 9.1
> java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)
> Cayenne 3.0RC2 (Jan 30 2010..)
>            Reporter: Allan Emord
>             Fix For: 3.0RC3
>
>
> CayenneModeler Error Please copy the message below and report this error by going to http://issues.apache.org/cayenne/
> CayenneModeler Info
> Version: cayenne.version
> Build Date: cayenne.build.date
> Exception: 
> =================================
> java.lang.NullPointerException
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.createJoin(InferRelationshipsControllerBase.java:157)
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.setRelationships(InferRelationshipsControllerBase.java:71)
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsController.<init>(InferRelationshipsController.java:65)
> 	at org.apache.cayenne.modeler.action.InferRelationshipsAction.performAction(InferRelationshipsAction.java:47)
> 	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> 	at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
> 	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688)
> 	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732)
> 	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
> 	at java.awt.Component.processMouseEvent(Component.java:6108)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> 	at java.awt.Component.processEvent(Component.java:5873)
> 	at java.awt.Container.processEvent(Container.java:2105)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4469)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2163)
> 	at java.awt.Component.dispatchEvent(Component.java:4295)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2149)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2478)
> 	at java.awt.Component.dispatchEvent(Component.java:4295)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1405) Exception when attempting to "Infer Relationships"

Posted by "Allan Emord (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allan Emord updated CAY-1405:
-----------------------------

    Attachment: CDB.map.xml

This model file was extracted from a database where constructs such as nested tables are used. I do not know if this contributes to the problem although these entities display as type "OTHER" so nested tables may not be a problem. 
Referential integrity is maintained (mostly) by the applications and not the database which leads to many entities lacking primary keys.
The exception happened right after selecting "Infer Relationships"


> Exception when attempting to "Infer Relationships"
> --------------------------------------------------
>
>                 Key: CAY-1405
>                 URL: https://issues.apache.org/jira/browse/CAY-1405
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0RC2
>         Environment: Ubuntu 9.1
> java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)
> Cayenne 3.0RC2 (Jan 30 2010..)
>            Reporter: Allan Emord
>            Assignee: Andrus Adamchik
>            Priority: Minor
>         Attachments: CDB.map.xml
>
>
> CayenneModeler Error Please copy the message below and report this error by going to http://issues.apache.org/cayenne/
> CayenneModeler Info
> Version: cayenne.version
> Build Date: cayenne.build.date
> Exception: 
> =================================
> java.lang.NullPointerException
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.createJoin(InferRelationshipsControllerBase.java:157)
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.setRelationships(InferRelationshipsControllerBase.java:71)
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsController.<init>(InferRelationshipsController.java:65)
> 	at org.apache.cayenne.modeler.action.InferRelationshipsAction.performAction(InferRelationshipsAction.java:47)
> 	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> 	at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
> 	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688)
> 	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732)
> 	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
> 	at java.awt.Component.processMouseEvent(Component.java:6108)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> 	at java.awt.Component.processEvent(Component.java:5873)
> 	at java.awt.Container.processEvent(Container.java:2105)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4469)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2163)
> 	at java.awt.Component.dispatchEvent(Component.java:4295)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2149)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2478)
> 	at java.awt.Component.dispatchEvent(Component.java:4295)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1405) Exception when attempting to "Infer Relationships"

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik updated CAY-1405:
---------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s:     (was: 3.0RC3)
         Assignee: Andrus Adamchik

Hi Allan,

Do you still have the model that caused this error, and can you reproduce the problem? While the stack trace shows where the NPE happened, it is not clear to me what exactly caused it, so attaching a sample .map.xml to this Jira should help.


> Exception when attempting to "Infer Relationships"
> --------------------------------------------------
>
>                 Key: CAY-1405
>                 URL: https://issues.apache.org/jira/browse/CAY-1405
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0RC2
>         Environment: Ubuntu 9.1
> java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)
> Cayenne 3.0RC2 (Jan 30 2010..)
>            Reporter: Allan Emord
>            Assignee: Andrus Adamchik
>            Priority: Minor
>
> CayenneModeler Error Please copy the message below and report this error by going to http://issues.apache.org/cayenne/
> CayenneModeler Info
> Version: cayenne.version
> Build Date: cayenne.build.date
> Exception: 
> =================================
> java.lang.NullPointerException
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.createJoin(InferRelationshipsControllerBase.java:157)
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsControllerBase.setRelationships(InferRelationshipsControllerBase.java:71)
> 	at org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsController.<init>(InferRelationshipsController.java:65)
> 	at org.apache.cayenne.modeler.action.InferRelationshipsAction.performAction(InferRelationshipsAction.java:47)
> 	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> 	at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
> 	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688)
> 	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732)
> 	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
> 	at java.awt.Component.processMouseEvent(Component.java:6108)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> 	at java.awt.Component.processEvent(Component.java:5873)
> 	at java.awt.Container.processEvent(Container.java:2105)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4469)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2163)
> 	at java.awt.Component.dispatchEvent(Component.java:4295)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2149)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2478)
> 	at java.awt.Component.dispatchEvent(Component.java:4295)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.